DaggerDigwillow
Reading: Second World Wars by Victor Davis Hanson
- Joined
- Dec 8, 2013
- Messages
- 216
Where do I check the console?Did the console returned you an error message ?
Which game type did you launch ? Did you activate Lua events ?
Where did you put the event.lua file ?
I launched a new extended original game. I'm not sure how to activate lua events what do I need to do for that?
I placed the lua events file in Extended Original folder.
Also would the following code work for creating the settler creation event?
-- Set up variables local civs = civ.getCivilizations() local unit = civ.getSelectedUnit() local winner = unit.owner -- Set up event local eventName = "Unit Victory" local eventType = "UNIT_WINS_BATTLE" local eventResult = "SPAWN_UNIT" local eventData = {unitType = "SETTLER", owner = winner} local eventId = civ.createEvent(eventName, eventType, eventResult, eventData)