Skip to content
User Avatar
#1339
Auto-translated
In the second script, everything was fine with this, and besides, the ENTIRE map crashes (!) for me and doesn't open anymore!

Added after 0.000000000000000000000000000000001 seconds


obs = 0

function a ()
obs = obs + 1
end;

Trigger(NEW_DAY_TRIGGER,"a");

function b ()
QuestionBox(GetMapDataPath().."mrkobsgst.txt","yes",nil);
end;

function yes ()
SetPlayerResource(1,6,-10000);
obs = obs + 10
end;

function c (heroname)
ShowFlyingSign({GetMapDataPath().."getobstxt.txt",obs=obs},heroname);
end;

Trigger(OBJECT_TOUCH_TRIGGER,"mrkobs1","b");
Trigger(OBJECT_TOUCH_TRIGGER,"getobs1","c");
502 Bad Gateway
__________________________________
nginx/0.8.54