Adding Triggers Involving Items
Posted: February 2nd, 2007, 12:11 am
Ok, I extracted the 'war3map.w3t' (Custom Item Data) file from Difi4nc3s ORPG V0.16 and imported it into a new blank map.
I reopened it and the custom items were all in the editor so I made a trigger which creates a 'Donator's ring' in center of playable map area then I converted it to custom text to get it into JASS (So I could get the Donator's Ring Item ID (Which is [EDIT it's I04N =P] 'I01D' if I remember correctly))
So next, I extracted the .j script for Def. Orpg and and added
"trigger gg_trg_SpawnRing=null" in the top
Then I added the actual trigger to create 'I01D' at center of playable map area
Then I added 'call InitTrig_SpawnRing( )' after function main (after locals)
I tried to play the map with the edited script and it didn't work (I -DID- delete (Attributes) by the way)
Any info I should know about creating triggers in protected maps involving items?
Help/Info/Solution appreciated
-Aero
I reopened it and the custom items were all in the editor so I made a trigger which creates a 'Donator's ring' in center of playable map area then I converted it to custom text to get it into JASS (So I could get the Donator's Ring Item ID (Which is [EDIT it's I04N =P] 'I01D' if I remember correctly))
So next, I extracted the .j script for Def. Orpg and and added
"trigger gg_trg_SpawnRing=null" in the top
Then I added the actual trigger to create 'I01D' at center of playable map area
Then I added 'call InitTrig_SpawnRing( )' after function main (after locals)
I tried to play the map with the edited script and it didn't work (I -DID- delete (Attributes) by the way)
Any info I should know about creating triggers in protected maps involving items?
Help/Info/Solution appreciated
-Aero