• 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] Stat Trigger

Status
Not open for further replies.
Level 18
Joined
Sep 27, 2005
Messages
2,069
player 1 red types -stats as a substring
set a = movement speed of hero
game text message Ms is convert integer to string I think ( a )

I am not sure of all the rest try by using integer and real variables and

set variable =

and then look there if you have attack spped and mana and hp regenration and then just show the variables with game messages


damnit blood I was first :)
 
Level 8
Joined
Sep 18, 2008
Messages
298
thanks for the help...but im gonna come out straight, i have no idea what your talking bout..but i need like an exact trigger, im not sure bout variables and what does this mean? (Then find all functions your searching (Integers for stats, and reals for speed, hp and mp) i havent made maps in loooong time, so i have no idea where to find that
 
Level 3
Joined
Jun 6, 2007
Messages
48
Get a units movement speed is extremely easy however for the health regen, mana regen and attack speed i'd suggest setting the variables to the default stats and when the unit aquires an item or get a buff that you set the variable to whatever the item/buff increases then just output the variable like so:

  • Your_Stats
    • Events
      • Player - Player 1 (Red) types a chat message containing -stats as An exact match
    • Conditions
    • Actions
      • Game - Display to Player Group - Player 1 (Red) for 30.00 seconds the text: Your current stats ...
      • Game - Display to Player Group - Player 1 (Red) for 30.00 seconds the text: (Attack Speed - + (String(Hero_AttackSpeed)))
      • Game - Display to Player Group - Player 1 (Red) for 30.00 seconds the text: (Movement Speed - + (String((Current movement speed of (Triggering unit)))))
      • Game - Display to Player Group - Player 1 (Red) for 30.00 seconds the text: (Health Regen - + (String(Hero_HpRegen)))
      • Game - Display to Player Group - Player 1 (Red) for 30.00 seconds the text: (Mana Regen - + (String(Hero_ManaRegen)))
 
Level 3
Joined
Jun 6, 2007
Messages
48
There isn't, which is why i suggested to set a variable that starts at the default value and use triggers so that when the units gain an item or a buff that increase HP/MP regen, you just add to the variable to the default amount + increase.
 
Status
Not open for further replies.
Top