• 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] Is This Posible?

Status
Not open for further replies.
Level 8
Joined
Sep 25, 2007
Messages
382
hi ppl, i was thinking if this idea (taked from a halloween map) can be possible for some skills.

the idea, is a rage charge, that is changed with the mana. i mean, you are fighting, then each hit charge you 2.5 rage (an example only xD), so you have attacks that need Rage... dunno, some things.... also, i was thinking that for example: if you get lot of Rage, 2000 for example, you transform or morph xD... thats an idea... but is it posible?
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
This is an example for what Just_Spectating said.

  • Unknown
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Footman
    • Actions
      • Unit - Set mana of (Triggering unit) to ((Mana of (Triggering unit)) + 2.50)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of (Triggering unit)) Greater than or equal to 2000.00
        • Then - Actions
          • Actions
        • Else - Actions

As I understood the ATTACKED unit gets the mana, if you want the attacking just add the mana to the Attacking Unit instead of Triggering Unit.
 
Level 8
Joined
Sep 25, 2007
Messages
382
so, yes, its the attaking unit xD.

so when the unit reach (for example) 1000 of mana, it morph into a monster, then, if this monster continue reaching Rage, to 2000 (for example) it will morph into a more dangerous monster and so on (not forever xD)...
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
As I said just change my trigger's unit into Attacking Unit instead of Triggering Unit.

To continue your "evolution system" you can either make the next unit have again 1000 mana and then check "if unit have 1000 mana and his type is Unit-Type, then create bla bla at bla bla for bla bla".

You could also make the unit have 2000 max mana and set his current mana to 1000.
This will allow you to not need to write a lot of unit type conditions.
 
Status
Not open for further replies.
Top