This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I'm pretty new to scripting and by looking to the script made by the GUI, I made this custom script:
bool gt_Camp_Func (bool testConds, bool runActions) { //Actions if (!runActions) { return true; } PlayerModifyPropertyInt (1, c_playerPropMinerals, c_playerPropOperAdd, 200); return true; } //---------------------------------------------------------------------------- void gt_Camp_Init () { gt_Camp = TriggerCreate("gt_Camp_Func"); TriggerAddEventUnitRegion(gt_Camp. null, RegionFromId(1), true); }
But it won't compile. I made the exact same trigger using the GUI. But it just won't compile, it gives me a syntax error. Am I doing something wrong? or is it bug?
I'm pretty new to scripting and by looking to the script made by the GUI, I made this custom script:
But it won't compile. I made the exact same trigger using the GUI. But it just won't compile, it gives me a syntax error. Am I doing something wrong? or is it bug?