• 🏆 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!

[Solved] Mark Triggers problem

Status
Not open for further replies.
Level 10
Joined
Nov 24, 2010
Messages
546
  • Mark
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Mark
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Target unit of ability being cast) is A Hero) Not equal to True
        • Then - Actions
          • Special Effect - Destroy Mark_Effect[2]
          • Unit - Order (Casting unit) to Stop
          • Set Mark_Target[2] = (Target unit of ability being cast)
          • Game - Display to (All players) the text: ((Name of (Owner of (Casting unit))) + ( has marked: + (Name of Mark_Target[2])))
          • Special Effect - Create a special effect attached to the overhead of Mark_Target[2] using Objects\RandomObject\RandomObject.mdl
          • Set Mark_Effect[2] = (Last created special effect)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Target unit of ability being cast) is A Hero) Equal to True
        • Then - Actions
          • Special Effect - Destroy Mark_Effect[1]
          • Unit - Order (Casting unit) to Stop
          • Set Mark_Target[1] = (Target unit of ability being cast)
          • Game - Display to (All players) the text: ((Name of (Owner of (Casting unit))) + ( has marked: + (Name of (Owner of Mark_Target[1]))))
          • Special Effect - Create a special effect attached to the overhead of Mark_Target[1] using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
          • Set Mark_Effect[1] = (Last created special effect)
        • Else - Actions

This system is supposted to create special effect on unit matching condition, it somehow don't work.
If there are any bugg what i don't see, maybe something to improve tell me please.
Well i cast ability and it do not create special effect on unit.

Palooo3
 
Status
Not open for further replies.
Top