• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Need a Save/load Script/Trigger

Status
Not open for further replies.
It might be a silly question, but OP - are you certain that you have the "Automatically create unknown variables when pasting trigger data" box in the Editor Properties checked?
 
I did nothing wrong, I copied the triggers perfectly but they all gave errors like every other trigger that uses jass at all on here because of wc3's new update that broke even my custom triggers that I can't fix because it was a friend that made it for me and doesn't want to work on wc3 anymore.
 
Nothing in the spell section that is approved "is not working"
Unless it is very old. In which case it might become rejected if incompatible with modern WC3.
I did nothing wrong, I copied the triggers perfectly but they all gave errors like every other trigger that uses jass at all on here because of wc3's new update that broke even my custom triggers that I can't fix because it was a friend that made it for me and doesn't want to work on wc3 anymore.
Are you using normal WorldEdit? If so maybe try with WEX since a lot of stuff require JASS extensions and JNGP does not work anymore.
Otherwise you will need to post the map for people to identify the JASS errors.
 
Assuming only 1 hero per player, map heroes to players using a unit array. Then in response to the player saying the appropriate command you calculate the amount of stats to add. Such calculation is usually something like {resource / some constant number}. You then work out the amount of resources consumed, which is {stats to add * some constant number}. Remove the resources consumed from the players appropriate resource amount. Add to the player's hero, fetched from the player to hero mapping array, the amount of stats to add. One might need some intermediate integer variables. It is recommended that integer variables are used as both stats and resources are integer values.
 
Status
Not open for further replies.
Back
Top