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?
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?