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!
Hello, im looking for someone who knows a trigger that if player types message equal to -stats it will show your selected heroes movement speed, hp regen, mana regen, and attack speed? plz help
Meh.
Event:
Player 1 types -stats as a blablabla
Condition:
Actions:
Game - Text, show blablabla (Then find all functions your searching (Integers for stats, and reals for speed, hp and mp)
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
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)))
Yes ty Xzalious, i remember a while ago i asked for the same trigger, and yours looks very similiar, but if you could possibly put it in a map and give it to me so i can dl/copy paste? im no longer familiar with these triggers anymore
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.
Excuse me? i belive i wasnt talking to you? and i was asking if he can make me one trigger...im not asking for hell of a lot so why dont you stfu? and Xzalious ill look into it tomorrow thx
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.