Problems with triggers . Again...

morcius

New Member
Reaction score
1
"Scalp" blink to the 019 region but he wont cast "cloud" where is the problem in this triger cant undersand..
Code:
ScalpBattle
    Events
        Destructible - Lever 0361 <gen> dies
    Conditions
    Actions
        Unit - Make |cFFFF0000 SCALP |r  0024 <gen> Vulnerable
        Wait 5.00 seconds
        Set temp_point4 = (Center of Rect 019 <gen>)
        Unit - Order |cFFFF0000 SCALP |r  0024 <gen> to Night Elf Warden - Blink (Center of Rect 019 <gen>)
        Custom script: call RemoveLocation (udg_temp_point4)
        Wait 5.00 seconds
        Set temp_point5 = (Center of Rect 018 <gen>)
        Unit - Order |cFFFF0000 SCALP |r  0024 <gen> to Human Dragonhawk Rider - Cloud (Center of Rect 018 <gen>)
        Custom script: call RemoveLocation (udg_temp_point5)
 

ManyTimes

I'm so lonesome I could cry...
Reaction score
293
First of all it leaks.

Set temp_point4 = (Center of Rect 019 <gen>)
Unit - Order |cFFFF0000 SCALP |r 0024 <gen> to Night Elf Warden - Blink (Center of Rect 019 <gen>)
Custom script: call RemoveLocation (udg_temp_point4)

You need to use the "temp_point4" NOT the CenterOF rect...Thats why you use the point variable.. to store the center of Rect..etcetc..

Set temp_point4 = (Center of Rect 019 <gen>)
Unit - Order |cFFFF0000 SCALP |r 0024 <gen> to Night Elf Warden - Blink (Temp_point4)
Custom script: call RemoveLocation (udg_temp_point4)

Same goes for the next time he is supposed to blink.
Well.. Are you sure the "SCALP" unit has the blink ability? Sure it has mana enough to cast it? Sure he got Cloud ability? Sure he got mana to cast it? Sure you have removed the "tech requiredment" on cloud? etc
 

morcius

New Member
Reaction score
1
Set temp_point4 = (Center of Rect 019 <gen>)
Unit - Order |cFFFF0000 SCALP |r 0024 <gen> to Night Elf Warden - Blink (Temp_point4)
Custom script: call RemoveLocation (udg_temp_point4)

The problem whas this line.
 

morcius

New Member
Reaction score
1
Stupid mistake..
Unit - Order |cFFFF0000 SCALP |r 0024 <gen> to Night Elf Warden - Blink (Temp_point4)

Yes this action was wrong .

And 1 question can i use same variable will it work on onther triggers?
 

ArmedCitizen

Kisses Cats
Reaction score
198
If you are asking if your can use Temp_points again the answer is Yes. But if the two triggers are running at the same time it will cause errors.

(Pretty sure Yes, I'd test it.)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top