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

Show Text for Random Event?

Status
Not open for further replies.
Level 2
Joined
Jan 12, 2008
Messages
5
Event
A unit owned by Neutral Hostile Dies

Condition
none

Action
Set Random = Random Integer between 1 and 10

If random = 1 then Create lvl 1 random tome for Killing Unit else do nothing

Create floating text that reads name of last created item above killing unit

Set Velocity of Last Created Text to 80 towards 90 degrees

Change Last Created Text Disable Permanence

Change lifespan of last created text to 1.5 seconds


That is what i need help with, when i kill a unit and the random integer is equal to 1, it shows the tome and effect, but if i quickly kill a unit after it, the text shows once more, as if the integer was constantly set to 1 for two seconds. Does anyone kno how to fix this? In case this didnt make sense, the problem i am saying is that

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

If i kill a unit and a tome is given to the hero a text is shown saying which tome however, if i keep on killing units quickly after the one i killed which set the Random Integer to 1, it keeps on showing the text "Name of Tome" when it should only happen 10% of the time.


Hope that made sense, and any help is appreciated thanks
 
Status
Not open for further replies.
Top