• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Healing effect when stepping on a tile-set

Status
Not open for further replies.
Level 4
Joined
Sep 6, 2010
Messages
100
How would I create a trigger where if a specific unit touches a tile-set he will receive a constant healing effect?
 
Level 23
Joined
Oct 20, 2012
Messages
3,075
you can make a periodic trigger and use this condition to check if that unit is in that type of terrain..

  • (Terrain type at (Center of (Playable map area))) Equal to Lordaeron Summer - Dirt
Like:
Event - Every 1 sec of gametime
condition
action - pick every unit in map and do actions:
-if
(Terrain type at (position (picked unit))) Equal to Lordaeron Summer - Dirt
-then
set life of picked unit to life of picked unit + 10
-else
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • Untitled Trigger 101
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Set point = (Position of Blademaster 0022 <gen>)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Terrain type at point) Equal to Lordaeron Summer - Dirt
        • Then - Actions
          • *Heal, for example order a dummy to cast healing salve on unit*
        • Else - Actions
          • *Remove healing effect if needed*
      • Custom script: call RemoveLocation(udg_point)
      • Custom script: set udg_point = null

EDIT: Wow, I had this tab open for quite long time.
 
Level 4
Joined
Sep 6, 2010
Messages
100
I don't think I'm using the right version of world edit...
I'm using New Gen, is there a newer version? Or a better tool? Or an addon that increases the options?
 
Level 4
Joined
Sep 6, 2010
Messages
100
How do you do things like "set point = ..." and "then - actions"

Anyways, I figured it out, thanks for the help:

  • Events:
  • Time - Every 1.00 seconds of game time
  • Conditions:
  • (Terrain type at (Position of [The unit in question]) ) Equal to [The tile in question]
  • Actions:
  • Unit - Set life of [The unit in question] to ((Life of [The unit in question]) + [number to heal])
Wait, I think I just figured out how you did those action thingies.
 
Status
Not open for further replies.
Top