Error with trigger that should be working.

BarzahdX

Active Member
Reaction score
18
Code:
Frosty Veil Weather
    Events
        Time - Every 0.10 seconds of game time
    Conditions
        (Level of Frosty Veil  for Hero[(Integer(Siren Queen))]) Greater than 0
        (Hero[(Integer(Siren Queen))] is alive) Equal to True
    Actions
        Set Caster_Position[6] = (Position of Hero[(Integer(Siren Queen))])
        Set Region_Array[1] = (Region centered at Caster_Position[6] with size (400.00, 400.00))
        Environment - Create at Region_Array[1] the weather effect Northrend Blizzard
        Custom script:   call RemoveRegion (udg_Region_Array[1])
        Wait 0.09 seconds
        Environment - Remove (Last created weather effect)

That's my trigger, it says "Line 652: invalid argument type(rect)" when I try to enable it, and it highlights " call TriggerSleepAction( 0.09 )". Thing is, even if I remove the wait timer, it then moves the highlight to the line below, and the same error persists.

What's wrong with it that makes it not work? Doesn't make sense to me...
 

Romek

Super Moderator
Reaction score
964
> TriggerHappy:
It's nothing to do with that. Rects do leak.

In GUI, Rects are actually called Regions.

In Jass, Rects and Regions are different things.

Use this instead:
JASS:
call RemoveRect (udg_Region_Array[1])
 
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