How to add game event in MapScript?

Nefliqus

Prince
Joined
Sep 16, 2010
Messages
400
Location
Poland
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?
 
Back
Top Bottom