Skip to content
#2696
Auto-translated
Is there a way to make a function run every week without rewriting the code multiple times with a variable? Code: SetObjectEnabled("tav", nil) function Army(heroname) MessageBox("Maps/SingleMissions/Revenge of the/qwe.txt") QuestionBox("Maps/SingleMissions/Revenge of the/rtyui.txt", "arm") Trigger(OBJECT_TOUCH_TRIGGER, "tav", "nil") end function arm(heroname) sleep(2) gold= GetPlayerResource(1, 6) sleep(1) if gold<6000 then sleep(1) MessageBox("Maps/SingleMissions/Revenge of the/rtyu.txt") else gold= GetPlayerResource(1, 6) sleep(1) if gold>=6000 then SetPlayerResource(1, GOLD, gold - 6000) AddHeroCreatures("Godric", 2, 80) MessageBox("Maps/SingleMissions/Revenge of the/aer.txt") end end end

Statistics

Welcome our newest member: Фёдор Фёдорович