The editor should automatically copy over all variables if you do;
File->Prefrences->General->Automatically paste unknown variable data when copying triggers.
Ok Thanks
The editor should automatically copy over all variables if you do;
File->Prefrences->General->Automatically paste unknown variable data when copying triggers.
wouldnt that cause the hero to be selected twice?Code:Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Set Hero = (Your first unit)) Custom script: set udg_Save[udg_SaveCount] = CG_SaveHero(udg_Hero) Unit Group - Pick every unit in (Units in (Playable map area) owned by (Triggering player)) and do (Set Hero = (Your second unit)) Custom script: set udg_Save[udg_SaveCount] = CG_SaveHero(udg_Hero)
Remember to load them.
a
wouldnt that cause the hero to be selected twice?
(sucks at this)
Yes, it would because you're picking the same group and setting the variable to the first picked. So, either it'll pick the same unit twice, or it'll sometimes pick the two different units.
It'd be better to just do a loop.
I'm still having the same problems with custom script.
Did you re-copy everything over?
i copied all the triggers from your map
Yes, but did you do it over after checking automatically create unknown variables in the editors preferences?
I'm not getting any errors when copying everything over to another map.
Hello !
I copied this trigger in my map, but:
That bug for items and level, ex: I'm lvl 175 with 6 ice scroll, I save, I load, and... that give a frost mage lvl 6 with 3 scroll, 3 glove speed, 2 lightning shield, etc...
Now, it doesn't work...
That always say "Your code was Invalid"