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

Simple GUI Trigger failing

Status
Not open for further replies.
Level 28
Joined
Jan 26, 2007
Messages
4,789
Hello there, I am having some problems with a trigger and I just cannot figure out what's wrong with it...

Trigger Info:

The trigger should create a unit for light blue, which then casts wind walk and runs towards the end.
I have tested the trigger several times, ran into a few problems so I modified it a bit.
The new trigger should create 1 unit for red and 1 unit for light blue, yet it only creates 1 unit for light blue.


  • Tower check
    • Events
      • Time - Every 3.00 seconds of game time
    • Conditions
    • Actions
      • Set loc[1] = (Center of Region 007 <gen>)
      • Set loc[3] = (Center of nestajanje <gen>)
      • Unit - Create 1 Anti-Block for Player 1 (Red) at loc[1] facing 90.00 degrees
      • Unit - Create 1 Anti-Block for Player 10 (Light Blue) at loc[1] facing 90.00 degrees
      • Unit - Order (Last created unit) to Move To (Center of nestajanje <gen>)
      • Unit - Order (Last created unit) to Orc Blademaster - Wind Walk
      • Custom script: call RemoveLocation(udg_loc[1])
      • Custom script: call RemoveLocation(udg_loc[3])
As you can see, I have used:
Unit - Order (Last created unit) to Move To (Center of nestajanje <gen>)
(I didnt use the loc-variable to remove the leak).
If I used the variable, the unit just won't move.

These problem remain:
  • Why doesn't the unit spawn for red? (Not that I need it anyway, it's just REALLY annoying me).
  • Why doesn't the unit cast wind walk?
  • Why can't I use the location-variable?

Yes, the unit has the wind walk ability, I checked, double and triple checked that.
Yes, the ability can be activated with triggers, I have checked that.
No, I don't want red's unit to move and if I wanted to, it's not even spawning.


A bug with the world editor, or am I just really missing something here?
(Damn, I can create advanced triggers but I'm failing with this -.-).
 
Level 10
Joined
Feb 20, 2008
Messages
448
Sounds like fail GUI at work again...
We will need the map to help you out as all logic says that 2 units will spawn and with JASS this will definatly be the case.

what do you mean by "JASS this will definatly be the case."
this would only work with jass ?
Actually im tryng something hope it will work
my trigger work to make those unit move but its only miss Windwalk to Work

im thinking why do u created aunit evry 0,03 sec if the unit doesnt move this can create huge lag

and why do you use windwalk ? cant you make unit transparent ?



edit : here what i tryed, units move & both are created

the only bug is the unit cant cast wind walk somehow, i set the spell to unit since the dummy unit is a unit and not a hero most of time.

Suggestion : Im not pro with suggestion but u can also try
add all created unit in a group and remove them when need!!
creating unit evry 0,03 sec is spamming u could use 0,1 sec would be proper and probably would lag less

  • Trigger 001
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set Temp_Point1 = (Center of Region 029 <gen>)
      • Set Temp_Point2 = (Center of (Playable map area))
      • Unit - Create 1 DummyUnit for Player 1 (Red) at Temp_Point1 facing 90.00 degrees
      • Set AAAUnit[1] = (Last created unit)
      • Unit - Create 1 DummyUnit for Player 12 (Brown) at Temp_Point1 facing 90.00 degrees
      • Set AAAUnit[2] = (Last created unit)
      • Unit - Order AAAUnit[2] to Move To Temp_Point2
      • Unit - Order AAAUnit[2] to Orc Blademaster - Wind Walk
      • Custom script: call RemoveLocation(udg_Temp_Point1)
      • Custom script: call RemoveLocation(udg_Temp_Point2)
 
Last edited:
Status
Not open for further replies.
Top