Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 Modding, Customising, Editing » Need help with StrategicEventHandler.lua
Re: Need help with StrategicEventHandler.lua[message #363451 is a reply to message #363450]
|
Sat, 03 July 2021 01:50
|
|
Kitty |
|
Messages:473
Registered:October 2017 Location: Germany |
|
|
No-Nothing wrote on Fri, 02 July 2021 19:15Hello! I need help for my struggle with lua!
I want to understand is it possible for non-coder to at least insert any NPC/RPC on any sector at wish with some simplest script.
I hoped Flugente's Max Payne method would be it, but I failed to exploit it for Eskimo (<uiIndex>65</uiIndex>)
I thought this code were enough
Profil =
{
FATHER = 100,
HAMOUS = 63,
PROF_ICECREAM = 162,
ESK = 65,
RAT = 81,
VINCE = 69,
STEVE = 80,
JENNY = 132,
DARREN = 87,
TONY = 91,
DEVIN = 61,
CARMEN = 78,
SAL = 99,
PABLO = 98,
SPIKE = 93,
ROBOT = 62,
JOEY = 90,
MADLAB = 146,
CONRAD = 70,
KINGPIN = 86,
MADAME = 107,
JOHN = 118,
MARY = 119,
}
-- Set ESK Payne's location
if (not ( ( gWorldSectorX == 2) and ( gWorldSectorY == 2) ) and not MercIsDead(Profil.ESK) ) then
-- if ( CheckMiscFlags1(Profil.ESK, Flags1.PROFILE_MISC_FLAG_SAID_HOSTILE_QUOTE) == 0 ) then
AddNPCtoSector (Profil.ESK,2,2,0)
SetProfileStrategicInsertionData(Profil.ESK, 12089)
end
end
-- Set ESK Payne's location
But it seems something else needed
May be this number (SetProfileStrategicInsertionData(Profil.ESK, 12089))?
First I thought it be grid#...
https://freeimage.host/i/oo8OUF
https://freeimage.host/i/oo8Nl1
My guess would be, that, if you want to achieve something simular as Flugentes Additional Mercs, you'll have to take other files besides StrateticEventHandler.lua in account as well.
His Additional Mercs GameDir2478 also uses AdditionalDialougue, Quest-markers and other sophisticated stuff. This will probably make it harder to track down parts of the addition.
The version from the link is the most up-to-date I'm aware of, but it's for GameDir 2478. You can't just copy the whole lua-script from 2478 to another GameDir, you'll need to transfer the lines you want from 2478 into newer GameDir, as well as all requirements. For instance, I'm not sure if those flags would work 1on1 with other mercs and/or if those may realted to AdditionalDialougue.
There are a few sub-threads at Flugente's Magika Workshop where Flugente describes what he has done for adding this. There is also more on AdditionalDialogue.
Looking at the screenshots, it seems you want to use it on AIMAS and therefore using bigmaps. The GridNo 12089 is likely refering to standard 1.13-maps. Using this on bigmaps probably will be an odd place for adding. Plus, AIMAS is using another vfs-order (the order in which game looks at folders), this may interfere with additions as well and/or would require the lua-script in another Data-Folder to work.
And, I can't see it very well but do may use some increased Teamsize as well? Or is this an AIMAS feature?
What are you planing to do? Can you explain a little more? Maybe there is another way to solve this.
How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN
I need more details. (Didi Hallervorden) Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Wed Nov 27 22:30:48 GMT+2 2024
Total time taken to generate the page: 0.00675 seconds
|