| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
Welcome to Civilization Fanatics' Center. You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Prince
Join Date: Sep 2010
Location: Poland
Posts: 386
|
How to add game event in MapScript?
Do you think that it is possible to add game event in Map Script?
I have add this code in map script: function realstart() print("Realstart ()"); local player = Players[0]; player:SetGold(555); print("Really really just started a game! gold:",player:GetGold()); end Events.SequenceGameInitComplete.Add ( realstart() ); but result is Map Script: Realstart () Map Script: Really really just started a game! gold: 555 so it is executed before game init and gold in game is reset to 0. how to change game parameters from map script level? Last edited by Nefliqus; Nov 09, 2010 at 05:18 AM. |
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|