//=========================================================================== function InitTrig_Untitled_Trigger_001 takes nothing returns nothing set gg_trg_Untitled_Trigger_001 = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_Untitled_Trigger_001, Player(0), "-gold ", false ) call TriggerAddAction( gg_trg_Untitled_Trigger_001, function Trig_Untitled_Trigger_001_Actions ) endfunction
How would I go about inserting this into a protected map?
What I've tried is putting both all of the above under "endglobals" and putting the line: "trigger gg_trg_Untitled_Trigger_001 = null" at the end of globals, but when I tried to host the map, it says The game was not found. I've also deleted the attributes file in the map using MPQ.
What I've tried is putting both all of the above under "endglobals" and putting the line: "trigger gg_trg_Untitled_Trigger_001 = null" at the end of globals, but when I tried to host the map, it says The game was not found. I've also deleted the attributes file in the map using MPQ.
And apparently there's something wrong with this too: set o0OooOO[id]=(S2I(SubStringBJ("-gold ", 7, 12))) set o0Ooo0O[id]=(S2I(SubStringBJ("-lumber ", 9, 14)))
Because it gave me "The game was not found" after I added those two lines.
Edit: Nvm, found the syntax checker... and seriously... Forgot that "id" wasn't inserted as a parameter OR a local. Sheesh. Too many errors. Thanks.