• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Item trigger help needed

Status
Not open for further replies.
Level 2
Joined
Jan 27, 2014
Messages
12
Hello, im new to modding and want to learn more, i know a few basics. Anyway, i need help with a trigger. I need a hero to teleport from a region when he enters it (this part i do know) but he also require a item to do so. Anyone?

/Cajvall
 
Level 25
Joined
May 11, 2007
Messages
4,648
Event: A unit enters region
Conditions:
Boolean(unit is a hero) = true
Or (hero has item of type key in slot 1), (hero has item of type key in slot 2), (hero has item of type key in slot 3), (hero has item of type key in slot 4), (hero has item of type key in slot 5), (hero has item of type key in slot 6)
Actions:
setTemppoint 1 = center of regionToTeleportTo
Move triggering unit instantly to temppoint1
specialeffect magicks at temppoint1
destroy last created specialeffect
cleanup teamppoint1
 
Status
Not open for further replies.
Top