• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Points should be MUI (Interger) ?

Status
Not open for further replies.

hdm

hdm

Level 9
Joined
Nov 19, 2011
Messages
384
Like "Random Point in Region". Should it be MUI ?

For example:

  • Revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Set MUI = mui +1
      • set Unit(MUI) = Unit
      • SetPoint = Random Pt in My Fictonal region
      • Wait x seconds
      • Set IUM = Ium +1
      • Set Unit(IUM) = Unit
      • Revive Unit(IUM) in Point
Should the Point be Interger too ?
 
The wait just delays the actions, so you can still refer to the unit as triggering unit (or dying unit) and set the point after the wait:
  • Revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Wait x seconds
      • Set Point = (Random point in My Fictional Region)
      • Hero - Instantly revive (Triggering unit) at Point, Show revival graphics
      • Custom script: call RemoveLocation (udg_Point)
 
  • Like
Reactions: hdm
The wait just delays the actions, so you can still refer to the unit as triggering unit (or dying unit) and set the point after the wait:
  • Revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Wait x seconds
      • Set Point = (Random point in My Fictional Region)
      • Hero - Instantly revive (Triggering unit) at Point, Show revival graphics
      • Custom script: call RemoveLocation (udg_Point)

I mean don't use wait for spell that loops or whatever :3
 
Should the Point be Interger too ?
Sentence illogical... Please try again.

For example:
The example does not appear to be valid GUI. I am not sure what it is even meant to be showing.

It does not look MUI because you are using a global to store the location persistently across a wait. If another thread of the trigger was to start then it would overwrite the location.
 
Status
Not open for further replies.
Back
Top