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

Floating Text Problem

Status
Not open for further replies.
Level 8
Joined
Aug 15, 2010
Messages
216
Hi Friends!
I'm having a problem With my Map's Triggering, Its like this:
an ability is used, and if the unit ability is used upon has buff X then the trigger will run, damaging the unit, making a floating text, seting the velocity of the floating text, waiting 0.50 Seconds and then destroying the floating text, thus giving the players time to read it, Problem is, when two players cast the same ability, the 0.50 wait makes a collosion, a conflict, and the floating text isnt destroyed, just keeps going up forever,
Please, Can Anyone Help this poor noob Bastard (me) in need?:goblin_cry:
(this poor noob bastard is working on his first serious map)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
Make the text fade away naturally. That way it gets destroyed automatically after a time by the game engine so no further scripting is needed.

This is done by...
1. Disable permanence (you must specifically turn permanence off).
2. Setting fade point. This is needed for it to fade away after some time. Set this to a large number if you need the text readable for a long period of time.
3. Setting lifespan. This is how long it remains in existence. After the lifespan ends it will be automatically destroyed.
 
Make the text fade away naturally. That way it gets destroyed automatically after a time by the game engine so no further scripting is needed.

This is done by...
1. Disable permanence (you must specifically turn permanence off).
2. Setting fade point. This is needed for it to fade away after some time. Set this to a large number if you need the text readable for a long period of time.
3. Setting lifespan. This is how long it remains in existence. After the lifespan ends it will be automatically destroyed.

lol cant believe i forgot about that. That is also in my tutorial.
 
Level 8
Joined
Aug 15, 2010
Messages
216
Make the text fade away naturally. That way it gets destroyed automatically after a time by the game engine so no further scripting is needed.

This is done by...
1. Disable permanence (you must specifically turn permanence off).
2. Setting fade point. This is needed for it to fade away after some time. Set this to a large number if you need the text readable for a long period of time.
3. Setting lifespan. This is how long it remains in existence. After the lifespan ends it will be automatically destroyed.

How Can i Do These? Sorry I'm A noob :(

Edit: I Found them, though not tested yet, thanks!
btw, another question, how can i make some spirit wolfs heal the master when they attack someone Equal to their damage?
to be exact, how can i set a variable to the attack damage Of A Unit?
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
How Can i Do These? Sorry I'm A noob :(

Edit: I Found them, though not tested yet, thanks!
btw, another question, how can i make some spirit wolfs heal the master when they attack someone Equal to their damage?
to be exact, how can i set a variable to the attack damage Of A Unit?

Use a damage deterction system, look at the spell database.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
btw, another question, how can i make some spirit wolfs heal the master when they attack someone Equal to their damage?
to be exact, how can i set a variable to the attack damage Of A Unit?
There is no easy way since it is impossible to read damage and even if you did, there would be a minimum and maximum damage value. Your best bet is to hard-code the value into a system and then modify that value by any buffs on the wolves.

Use a damage deterction system, look at the spell database.
Except that gets you the damage after reductions. I think he wants the wolves to deal damage (say 100) and heal based on the damage they dealt and not the damage inflicted (100% of 100 damage is 100 healed). If damage inflicted is used then a unit with 1650 armor would only take 1 damage so only 1 life is healed.
 
Status
Not open for further replies.
Top