• 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.

Teleport Requirement level trigger

Status
Not open for further replies.
Level 15
Joined
Oct 29, 2012
Messages
1,474
Oh you mean that the hero can't téléport to a region if his level is under 15, Well that's easy
  • Events
    • Unit - A Unit starts the effect of an ability
  • Conditions
    • (Ability Being Cast) Equal to Teleport (A custom ability based on Thunder Clap or Channel, it has no damage , do that in Object Editor)
  • Actions
    • Set Teleport_Temporary_Point = (Target Point of Ability Being Cast)
    • Set Teleporter = (Triggering Unit)
    • If/Then/Else multiple Actions :
      • Conditions
        • (Level of Hero (Teleporter)) Less than 15
      • Then - Actions
        • Do nothing
      • Else - Actions
        • Unit - Move Teleporter to Teleport_Temporary_Point
    • Custom script: call RemoveLocation(udg_Teleport_Temporary_Point)
    • Set Teleporter = No unit
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
It's similar, just change event
  • Events
    • Unit - A Unit enters Teleport_Region -gen
  • Conditions
  • Actions
  • Set Teleport_Temporary_Point = (Center of (Teleport2_Region2 -gen))
  • Set Teleporter = (Triggering Unit)
  • If/Then/Else multiple Actions :
    • Conditions
      • (Level of Hero (Teleporter)) Less than 15
    • Then - Actions
    • Else - Actions
      • Unit - Move Teleporter to Teleport_Temporary_Point
  • Custom script: call RemoveLocation(udg_Teleport_Temporary_Point)
  • Set Teleporter = No unit
 
Status
Not open for further replies.
Top