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

blinkstrike

Status
Not open for further replies.
Level 3
Joined
Aug 28, 2005
Messages
48
ive tried to create an ability like blinkstrike in dota, but i can either have it a) the teleport works but the ability doesnt cooldown or b) the teleport doesnt work and the cooldown does. i have the ability based off chain lightning (and fixed it so its only 1 target).
 
Level 3
Joined
Aug 28, 2005
Messages
48
how exactly would i write that into my game? can you give me an example of that (either a test map or just a text example) cuz im not very good with custom scripts/jass
 
Level 7
Joined
Oct 26, 2005
Messages
190
Events: a unit casts a spell
Conditions: Ability being cast is equal to blinkstrike
actions:
-move casting unit instantly to position of targeted unit of ability being cast
-cause casting unit to damage targeted unit dealing X damage of type chaos and damage type universal
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
:D, well, pretty much, Move Unit Instantly would look like this ( and some of these functions do not exist in GUI, so im just making up names for them )

if (location) is in Playable Map Area then
Set The X Coordinate of (unit) to The X coordinate of (location)

Set The Y Coordinate of (unit) to The Y coordinate of (location)
else
(whole ton of script to get the edges, wont get into that)
(end of if statement)

Pause (unit)
Order (unit) to stop
Unpause (unit)


After looking at all that code, you can probably see why just setting the X/Y coordinates is better :)
 
Status
Not open for further replies.
Top