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

[General] Game Messages

Status
Not open for further replies.
Level 18
Joined
May 11, 2012
Messages
2,108
maan, I suck desperately haha....
Can you tell me how do I successfully implement that custom script into this trigger and display the message anywhere (I'll figure out the x and y values by myself)?
I just need help setting it up :D

  • Health Potion
    • Events
      • Unit - A unit Uses an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Health Potion
    • Actions
      • -------- ------------------------------------------------------------------------------------- --------
      • Set TempTrigUnit = (Hero manipulating item)
      • -------- ------------------------------------------------------------------------------------- --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of TempTrigUnit) Less than (Max life of TempTrigUnit)
        • Then - Actions
          • -------- ------------------------------------------------------------------------------------- --------
          • Unit - Set life of TempTrigUnit to ((Life of TempTrigUnit) + 5000.00)
          • -------- ------------------------------------------------------------------------------------- --------
          • Special Effect - Create a special effect attached to the origin of TempTrigUnit using Abilities\Spells\Items\AIhe\AIheTarget.mdl
          • Special Effect - Destroy (Last created special effect)
          • -------- ------------------------------------------------------------------------------------- --------
        • Else - Actions
          • -------- ------------------------------------------------------------------------------------- --------
          • Set TempPlayerGroup = (Player group((Owner of TempTrigUnit)))
          • -------- ------------------------------------------------------------------------------------- --------
          • Game - Display to TempPlayerGroup the text: |c00FDD017Hero's he...
          • -------- ------------------------------------------------------------------------------------- --------
          • Custom script: call DestroyForce(udg_TempPlayerGroup)
          • -------- ------------------------------------------------------------------------------------- --------
          • Item - Set charges remaining in (Item being manipulated) to ((Charges remaining in (Item being manipulated)) + 1)
          • -------- ------------------------------------------------------------------------------------- --------
      • -------- ------------------------------------------------------------------------------------- --------
      • Custom script: set udg_TempTrigUnit = null
      • Custom script: set udg_TempPlayerGroup = null
      • -------- ------------------------------------------------------------------------------------- --------
 
Status
Not open for further replies.
Top