Special Action to activate events
Posted: Sun Jan 05, 2020 8:16 pm
Have slammed into a Lua wall and would really appreciate some help at the "Lua for Dummies" level.
I need a special action that will simultaneously activate nine previously inactive events, each of which then has a random time trigger. I have no idea how to script this and so far attempting to do so has failed completely. Selecting the Special Action also places new units on the map while costing the Player Victory Points, which I think I can successfully script.
The Lua documentation often refers to the GUID for units and groups, found easily enough by right-clicking and following the popup menu but how does one find the GUID for an Event? Is just the name of the event sufficient to describe it in Lua? Is the Boolean "Event Active Yes/No" a switch or information only?
Thank you in advance.
-C
I need a special action that will simultaneously activate nine previously inactive events, each of which then has a random time trigger. I have no idea how to script this and so far attempting to do so has failed completely. Selecting the Special Action also places new units on the map while costing the Player Victory Points, which I think I can successfully script.
The Lua documentation often refers to the GUID for units and groups, found easily enough by right-clicking and following the popup menu but how does one find the GUID for an Event? Is just the name of the event sufficient to describe it in Lua? Is the Boolean "Event Active Yes/No" a switch or information only?
Thank you in advance.
-C