• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Can't finish my map without these functions!!!

Status
Not open for further replies.
Level 9
Joined
Oct 15, 2006
Messages
339
Action:
HERO - Set Agility of (Last replaced unit) to ( ), the effect will be Permanent
I need ( ) to be (Agility of Entering Unit)

This is a UMSWE newgen addon


I'll also need it for Strength, Intelligence, Life and Mana

UNIT - Set life of (Last replaced unit) to ( )


Thanks +rep
 
Level 9
Joined
Oct 15, 2006
Messages
339
The function is to set the Hero's Intelligence/Agility/Strength.

Well there is no way to set the Hero's Int/Agi/Str based on another Unit's stats. The function is asking for a Real number, i need to convert another's unit's stats to a real number.

So,

Unit enters rect

Unit type = hero

Variable = set real to entering unit's int/agi/str
Replace Unit with Hero Unit
Hero - set Int/Agi/Str of Last Replaced Hero to (Entering Unit's Int/Agi/Str)

OR

Hero - set Int/Agi/Str of Last Replaced Hero to (Variable)

Thanks!
 
Level 9
Joined
Nov 28, 2008
Messages
704
What?

Forgive me, but in my WE I found a way to get the stats of an entering unit. It is under Convert Integer to XXX (insert your type here). Not real. So.. you shouldn't repost this at all.
 
Status
Not open for further replies.
Top