• 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.

[Trigger] FF tactic class change

Status
Not open for further replies.
Level 13
Joined
Oct 27, 2008
Messages
1,176
how would i set one up?
so you need like
10 lvls in knights
and 5 lvls in priest
in order to be able to be a palidan
 
Level 9
Joined
Feb 19, 2006
Messages
115
Here's a way to do it if you have only one hero per player:

Try using an integer array variable for each level type. Just make a new variable, call it "lvKnight", and make it an array with a size equal to the number of players in your game.

Now, to get a players knight level, you have to say:

  • lvKnight[(Player number of (Owner of (Triggering unit)))]
(notice the square brackets!)

Then just make a different array for each level type... such as "lvPriest" or "lvPaladin" or whatever.

So what you have to do to level up your knight-priest into a paladin is something like this:

  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • And - All (Conditions) are true
        • Conditions
          • lvKnight[(Player number of (Owner of (Triggering unit)))] Greater than or equal to 10
          • lvPriest[(Player number of (Owner of (Triggering unit)))] Greater than or equal to 5
    • Then - Actions
      • Set lvPaladin[(Player number of (Owner of (Triggering unit)))] = 1
      • -------- Hammer Time! --------
    • Else - Actions
Hope this helps :)
 
Level 9
Joined
Feb 19, 2006
Messages
115
then all you have to do then is add

  • Events
    • A unit is issued an order
  • Conditions
    • And - All (Conditions) are true
      • (Triggering Unit) is a Hero equal to (true)
      • Unit type of (Target unit of issued order) equal to (Paladins Alter)
  • Actions
    • -------- Insert previous trigger here --------
except maybe you'd want to check a region instead of an order, cause then you could change classes across the map if you could see the building...
 
Level 13
Joined
Oct 27, 2008
Messages
1,176
its more like they go up to buy a unit from a building
but dont worry about this right now i'll just PM u in a few days or so n i'll tell you everything
 
Status
Not open for further replies.
Top