• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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
 
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.
Back
Top