rules.js applies the baseType setting, during eventGameInit()
If a game is loaded, does eventGameInit() get called again?
If it does, how come there isn't a mass deletion of player-built structures due to the baseType setting being re-applied?
Clarification on eventGameInit / rules.js
Clarification on eventGameInit / rules.js
Last edited by aubergine on 02 Dec 2012, 20:23, edited 1 time in total.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
Re: @Per: Clarification on eventGameInit / rules.js
eventGameInit() is only run on initial game startup, and not on game load.
Re: @Per: Clarification on eventGameInit / rules.js
Ah, that's interesting. Is the same true for eventStartLevel()?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
Re: @Per: Clarification on eventGameInit / rules.js
Also, if I setTimer() or queue() in eventGameInit() is there a possibility that those will get triggered before eventStartLevel() or do timed/queued function calls get held until after eventStartLevel()?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
Re: @Per: Clarification on eventGameInit / rules.js
eventStartLevel() is also not called on load.
Timers will not trigger between the two.
Timers will not trigger between the two.
Re: @Per: Clarification on eventGameInit / rules.js
Ah, most awesome! 
*goes off to code an eventGameLoaded() add-on*
*goes off to code an eventGameLoaded() add-on*
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO

