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

[Trigger] Trigger causes desync

Status
Not open for further replies.

Antares

Spell Reviewer
Level 21
Joined
Dec 13, 2009
Messages
510
Apparently this part of the trigger causes players to be dropped from the game.

  • Set tempunitgroup = (Units in (Playable Map Area) matching ((Matching unit) is selected by (Owner of naaru) Equal to True))
  • Selection - Select naaru for (Owner of naaru)
  • Unit Group - Pick every unit in tempunitgroup and do (Selection - Select (Picked unit) for (Owner of naaru))
  • Custom script: call DestroyGroup( udg_tempunitgroup )
The purpose of this trigger is to select the Naaru for the player after this ability is used and then add all other units that were previously selected to the selection. (like using TAB to switch to the naaru)

Just changed the code to:

  • Set tempunitgroup = (Units in currently selected by (Owner of naaru))
  • Selection - Select naaru for (Owner of naaru)
  • Selection - Select tempunitgroup for (Owner of naaru)
  • Custom script: call DestroyGroup( udg_tempunitgroup )
Didnt change nothing.

Help please.
 

Antares

Spell Reviewer
Level 21
Joined
Dec 13, 2009
Messages
510
pick units of matching unit type of "naaru" instead cause you are setting a unit group that dont exist as you select it AFTER you've set the group, either move the select line above or change which is better

no, the group exists, it is just reselected.
it was the select unit group for player function. apparently, this function just doesnt work. i made a loop, that adds all units to the selection of the player one after the other and it works.
 
Status
Not open for further replies.
Top