• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Really weird problem

Status
Not open for further replies.

rolrctermaniac

R

rolrctermaniac

I am trying to spawn an odin using this trigger
  • Events
    • Unit - Any Unit uses Choose Loki at Generic1 - Any stage (Ignore shared abilities)
  • Local Variables
  • Conditions
  • Actions
    • Unit - Create 1 Thor Choices[1] for player (Triggering player) at Point 005 using default facing (No Options)
    • Unit - Hide (Last created unit)
    • Unit Group - Add (Last created unit) to UG_Thors
    • Variable - Set Thor_selected[(Triggering player)] = true
but everytime I use the ability I get 7 instead of just 1, I even tested it with just
  • Events
    • Unit - Any Unit uses Choose Loki at Generic1 - Any stage (Ignore shared abilities)
  • Local Variables
  • Conditions
  • Actions
    • Unit - Create 1 Loki for player (Triggering player) at Point 005 using default facing (No Options)
and it still does not work
 
Hey thanks, it works! and triggering player seems to work i am not getting any problems with it.
 
Instead of "for player (triggering player)" use "owner of unit (triggering unit)".

Your event is not selecting a player for a trigger function.

You need to use a specific event function for a player if you wish to recall a triggering player in the action.

Edit: Also use screenshots if you can, instead of using code wraps.
I know it takes a bit more time but for a second I got confused with the trigger.
I've completely forgotten wc3 GUI images, lol.
 
Status
Not open for further replies.
Back
Top