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

Really weird problem

Status
Not open for further replies.
Level 1
Joined
Apr 19, 2011
Messages
2
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
 
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.
Top