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

Why is unit created without any health or mana ? (Screen shot included)

Status
Not open for further replies.
Level 5
Joined
Feb 1, 2009
Messages
111
Untitled.jpg


The unit has non-existant health or mana. In object editor Health has been set to 500000, min mana at 200 and max at 100000.


Basically, this is the trigger used to spawn the unit:

  • Unit - Create 1 Backpack for Player[(Integer A)] at (Position of CreatedPlayerHero[(Integer A)]) facing Default building facing degrees
  • Set CreatedPlayerBackpack[(Integer A)] = (Last created unit)
  • Hero - Set CreatedPlayerBackpack[(Integer A)] Hero-level to 300, Hide level-up graphics
  • Hero - Disable experience gain for (Last created unit)
  • Unit - Set life of (Last created unit) to 99.00%
  • Unit - Set mana of (Last created unit) to 99.00%
  • Unit - Make CreatedPlayerBackpack[(Integer A)] Invulnerable
 
Level 14
Joined
Nov 17, 2010
Messages
1,266
The values are too large to show up. There isn't enough room to put 500000/500000 so it just leaves it blank. Once the HP goes down enough and there is enough room to show it, it will show up.
 
Level 14
Joined
Nov 17, 2010
Messages
1,266
No problem. Since you make it invulnerable anyway you could lower the HP and mana until you can see it. Otherwise I guess it doesn't really matter that it doesn't show up. Unless it matters to you. Good luck!
 
Status
Not open for further replies.
Top