- Joined
- Jan 30, 2013
- Messages
- 12,872
A big improvement is to make multiple different teleport abilities behave differently.
TPTP Initialization

Events


Time - Elapsed game time is 0.00 seconds

Conditions

Actions


-------- Set to the Point Ability that you would like to cast Teleport --------


Set TPTP_Ability_Unit = Teleport to Unit


Set TPTP_Ability_Building = Teleport to Building


Set TPTP_Ability_Item = Teleport to Item


Set TPTP_Ability_Point = Teleport to Point


Set TPTP_Ability_Destructible = Teleport to Destructible


-------- 0 = no max range (1-99999) --------


Set TPTP_MaxRange_Unit = 0.00


Set TPTP_MaxRange_Building = 0.00


Set TPTP_MaxRange_Item = 0.00


Set TPTP_MaxRange_Point = 2000.00


Set TPTP_MaxRange_Destructible = 0.00


-------- Can you also teleport to allies? --------


Set TPTP_CanTeleToAllies_Unit = True


Set TPTP_CanTeleToAllies_Building = True


-------- Do you need vision of the thing you're teleporting to? --------


Set TPTP_NeedVision_Item = True


Set TPTP_NeedVision_Point = False


Set TPTP_NeedVision_Destructible = True


-------- Defines how far from cast location to grab targets from (0 = does not grab) --------


Set TPTP_GrabRadius_Unit = 1200.00


Set TPTP_GrabRadius_Building = 99999.00


Set TPTP_GrabRadius_Item = 300.00


Set TPTP_GrabRadius_Destructible = 600.00


-------- This interrupts the teleport if the item was acquired before the teleport was completed. --------


-------- * Only works with the Item Target Teleport --------


Set TPTP_AcquireInterrupt_Item = False


-------- This kills all destructibles within the grab radius when the teleport occurs --------


-------- * Only works with the Destructible Target Teleport --------


Set TPTP_KillGrabbed_Destructible = True


-------- If cast within this range of the target, will be an exact point --------


-------- If more than grab, becomes the same as grab --------


-------- Set to 0 to just TP to the target itself always --------


Set TPTP_AccurateTP_Building = 400.00


Set TPTP_AccurateTP_Item = 0.00


Set TPTP_AccurateTP_Destructible = 300.00


-------- How much delay there is after you cast teleport --------


Set TPTP_CastDelay_Unit = 2.50


Set TPTP_CastDelay_Building = 3.00


Set TPTP_CastDelay_Item = 3.50


Set TPTP_CastDelay_Point = 2.00


Set TPTP_CastDelay_Destructible = 1.50


-------- Does the spell get interrupted if the target dies? --------


Set TPTP_DieInterrupt_Unit = True


Set TPTP_DieInterrupt_Building = True


Set TPTP_DieInterrupt_Item = True


Set TPTP_DieInterrupt_Destructible = False


-------- Replaces cast delay with channeling time, which will interrupt the teleport if another order is given --------


Set TPTP_Channeling_Unit = False


Set TPTP_Channeling_Building = False


Set TPTP_Channeling_Item = True


Set TPTP_Channeling_Point = False


Set TPTP_Channeling_Destructible = True


-------- Refunds the mana cost of the spell if it was interrupted --------


-------- * Only works when channeling is already set to TRUE --------


Set TPTP_ManaRefund_Unit = False


Set TPTP_ManaRefund_Building = False


Set TPTP_ManaRefund_Item = True


Set TPTP_ManaRefund_Point = False


Set TPTP_ManaRefund_Destructible = False


-------- The tooltips displayed when you can't teleport --------


Set TPTP_Tooltip_TooFar = |cffFF0000Too far!|r


Set TPTP_Tooltip_NoUnitsFound = |cffFF0000No units in range!|r


Set TPTP_Tooltip_NoBuildingsFound = |cffFF0000No buildings in range!|r


Set TPTP_Tooltip_NoItemsFound = |cffFF0000No items in range!|r


Set TPTP_Tooltip_NoDestrFound = |cffFF0000No trees in range!|r


Set TPTP_Tooltip_NoVision = |cffFF0000Need vision!|r


Set TPTP_Tooltip_CantTeleThere = |cffFF0000Can't teleport there!|r


Set TPTP_Tooltip_Interrupted = |cffFF0000Interrupted!|r


-------- The special effects that for "origin" "caster" --------


Set TPTP_Effect_Cast_Unit = Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl


Set TPTP_Effect_Cast_Building = Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl


Set TPTP_Effect_Cast_Item = Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl


Set TPTP_Effect_Cast_Point = Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl


Set TPTP_Effect_Cast_Destructible = Abilities\Spells\Human\MassTeleport\MassTeleportTarget.mdl


-------- If you want more effects on the caster --------


Set TPTP_Effect_Cast2_Unit = <Empty String>


Set TPTP_Effect_Cast2_Building = <Empty String>


Set TPTP_Effect_Cast2_Item = <Empty String>


Set TPTP_Effect_Cast2_Point = <Empty String>


Set TPTP_Effect_Cast2_Destructible = <Empty String>


-------- The special effects for "origin" "target" --------


Set TPTP_Effect_Land_Unit = Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl


Set TPTP_Effect_Land_Building = Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl


Set TPTP_Effect_Land_Item = Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl


Set TPTP_Effect_Land_Point = Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl


Set TPTP_Effect_Land_Destructible = Abilities\Spells\Human\MassTeleport\MassTeleportTo.mdl


-------- If you want more effects on the target --------


Set TPTP_Effect_Land2_Unit = <Empty String>


Set TPTP_Effect_Land2_Building = <Empty String>


Set TPTP_Effect_Land2_Item = <Empty String>


Set TPTP_Effect_Land2_Point = <Empty String>


Set TPTP_Effect_Land2_Destructible = <Empty String>


-------- The special effect from the departure point when teleport happens --------


-------- Only use special effects that can be instantly destroyed here --------


Set TPTP_Effect_Go_Unit = Abilities\Spells\NightElf\Blink\BlinkCaster.mdl


Set TPTP_Effect_Go_Building = Abilities\Spells\NightElf\Blink\BlinkCaster.mdl


Set TPTP_Effect_Go_Item = Abilities\Spells\NightElf\Blink\BlinkCaster.mdl


Set TPTP_Effect_Go_Point = Abilities\Spells\NightElf\Blink\BlinkCaster.mdl


Set TPTP_Effect_Go_Destructible = Abilities\Spells\NightElf\Blink\BlinkCaster.mdl


-------- The special effect on the arrival point when teleport happens --------


-------- Only use special effects that can be instantly destroyed here --------


Set TPTP_Effect_Leave_Unit = Abilities\Spells\NightElf\Blink\BlinkTarget.mdl


Set TPTP_Effect_Leave_Building = Abilities\Spells\NightElf\Blink\BlinkTarget.mdl


Set TPTP_Effect_Leave_Item = Abilities\Spells\NightElf\Blink\BlinkTarget.mdl


Set TPTP_Effect_Leave_Point = Abilities\Spells\NightElf\Blink\BlinkTarget.mdl


Set TPTP_Effect_Leave_Destructible = Abilities\Spells\NightElf\Blink\BlinkTarget.mdl