This is my first time writing SLIC so bear with me and my silly questions .
Q1
How to add building(s) to a newly founded city? I thought Dale's WAW mod hase this feature, so I browse through the files but so far no luck. Probably I miss it somewhere.
Anyway, I tried to write my own SLIC (no pain no gain), and it didn't work (the pain).
Q2
The GrantAdvance() event has 3 arguments: GrantAdvance(player, int1, int2), right?. Which int argument is the advance? I wrote "GrantAdvance(player,AdvanceDB(SomeAdvance),0) " and it worked. Can I always leave the third argument or does it do anything?
Q1
How to add building(s) to a newly founded city? I thought Dale's WAW mod hase this feature, so I browse through the files but so far no luck. Probably I miss it somewhere.
Anyway, I tried to write my own SLIC (no pain no gain), and it didn't work (the pain).
Code:
HandleEvent(CreateCity) 'The_Doh_Function' post { int_t thePlayer; location_t theLocation; city_t theCity; thePlayer = player[0]; // <= do I really need this? theLocation = location[0]; // and this? theCity = city[0]; Event:CreateBuilding(theCity, BuildingDB(IMPROVE_SHRINE)); }
The GrantAdvance() event has 3 arguments: GrantAdvance(player, int1, int2), right?. Which int argument is the advance? I wrote "GrantAdvance(player,AdvanceDB(SomeAdvance),0) " and it worked. Can I always leave the third argument or does it do anything?
Comment