Problems with an auto blink.

oorosco

New Member
Reaction score
23
Hey guys, havne't been on for a while... either way though need help with this trigger please! It's really simple i just don't understand why the conditions aren't being met :banghead:

The way it works is that i have a caller and a method:

The exact problem i'm having is that it ALWAYS blinks, it will even blink onto cliffs, i would think that its condition would work but maybe not? (It should just blink from dirt to dirt but it can blink onto grass too... gahhH!H!!)

THIS IS THE CALLER METHOD
Code:
Caller
    Events
        Unit - A unit Finishes casting an ability
    Conditions
    Actions
        For each (Integer A) from 1 to 4, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Ability being cast) Equal to spell_array[(Integer A)]
                    Then - Actions
                        Set unit_temp = (Casting unit)
                        Set int_temp = (90 x (Integer A))
                        Trigger - Run Method <gen> (checking conditions)
                    Else - Actions


THIS IS THE METHOD
Code:
Method
    Events
    Conditions
    Actions
        Set loop_int = 600
        Set point_temp = ((Position of unit_temp) offset by 600.00 towards ((Facing of unit_temp) + ((Real(int_temp)) - 90.00)) degrees)
        For each (Integer A) from 1 to loop_int, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Terrain pathing at ((Position of unit_temp) offset by (600.00 - (Real((Integer A)))) towards ((Facing of unit_temp) + ((Real(int_temp)) - 90.00)) degrees) of type Walkability is off) Not equal to True
                        (Terrain pathing at ((Position of unit_temp) offset by (600.00 - (Real((Integer A)))) towards ((Facing of unit_temp) + ((Real(int_temp)) - 90.00)) degrees) of type Buildability is off) Not equal to True
                        Lordaeron Summer - Dirt Equal to (Terrain type at ((Position of unit_temp) offset by (600.00 - (Real((Integer A)))) towards ((Facing of unit_temp) + ((Real(int_temp)) - 90.00)) degrees))
                    Then - Actions
                        Set boolean_temp = True
                    Else - Actions
                        Set boolean_temp = False
                        Set loop_int = (Integer A)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                boolean_temp Equal to True
            Then - Actions
                Unit - Move unit_temp instantly to point_temp
            Else - Actions

Thanks guys...
 
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