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

Unselecting unit for triggering player?

Status
Not open for further replies.
Level 7
Joined
Jun 23, 2009
Messages
297
This trigger isn't working, and I'm not sure why :(


  • Unselect
    • Events
      • Unit - Shrine 0031 <gen> Is selected
      • Unit - Portal De Los Rituales 0005 <gen> Is selected
    • Conditions
      • (Triggering player) Not equal to Player 11 (Dark Green)
      • (Triggering player) Not equal to Player 12 (Brown)
    • Actions
      • Selection - Clear selection for (Triggering player)

I assume the (triggering player) part fails... So, is there any other way to clear the section for the player, when he is not player 11 or 12?
 
Level 7
Joined
Jun 23, 2009
Messages
297
You sure? Cause I can't find it...

58488717.png
 
  • Setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- use this in the future if you want to add MPI events --------
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • Trigger - Add to Trigger <gen> the event (Player - (Player((Integer A))) Selects a unit)
          • -------- Notice I didn't include Player 11 and 12, so you don't need conditions --------
      • -------- helps performance --------
      • Custom script: call DestroyTrigger(GetTriggeringTrigger())
  • Trigger
    • Events
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Triggering unit) Equal to Shrine 0031 <gen>
          • (Triggering unit) Equal to Portal De Los Rituales 0005
    • Actions
      • -------- if you want the trigger to fire for more than 2 different units, make sure you add OR --------
      • Selection - Clear selection for (Triggering player)
 
Level 7
Joined
Jun 23, 2009
Messages
297
Thank you +rep
Edit: Just finished, fore some reason, It doesn't work. I attached my map
The first trigger is in the category "Comienzo", in its only trigger, the first action.
The second trigger is in the category "Extra" under the trigger name "Seleccionar"
 
Last edited:
Level 7
Joined
Jun 23, 2009
Messages
297
  • Trigger - Add to (This trigger) the event (Player - (Player((Integer A))) Selects a unit)
You added the events to Inico instead of Seleccionar.

Change it to this:
  • Trigger - Add to Seleccionar <gen> the event (Player - (Player((Integer A))) Selects a unit)


Oh lol I fail xD
Thanks dude +rep
EDIT2: It still doesn't work because in the second trigger, it requires a "triggering unit", but there is no triggering unit... How to fix that...
 
Level 14
Joined
Nov 18, 2007
Messages
1,084
It should work. Are you testing this in single-player? Keep in mind that Inico won't be run because of
  • ((Player 11 (Dark Green) slot status) Equal to Is playing) or ((Player 12 (Brown) slot status) Equal to Is playing)
You should note that the first trigger adds events to the second trigger. So Triggering unit would correctly refer to the unit that was selected.
 
Status
Not open for further replies.
Top