• 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] Hitpoint & manapoint regain text

Status
Not open for further replies.
Level 1
Joined
Aug 9, 2008
Messages
1
I have been trying to make a hitpoint and mana regain text system for my RPG but i did not success. Someone plz help me. (I want that my potion, or healing spell show the amount of life/mana that was regaines, just like WoW)
 
Level 24
Joined
May 9, 2007
Messages
3,563
You could make a trigger like this.

  • Regen Text
    • Events
      • Unit - A unit Uses an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Potion of Healing
        • Then - Actions
          • Floating Text - Create floating text that reads Healed amount of Po... at (Position of (Triggering unit)) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
          • Floating Text - Set the velocity of (Last created floating text) to 30.00 towards 90.00 degrees
          • Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
        • Else - Actions
And repeat, for each type of healing effect. This is the only way that I can think of doing it for all types of healing.

EDIT: This leaks. See Things That Leak, by Ralle for more information.
 
Status
Not open for further replies.
Top