HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need some trigger help with deathnote spell

04-06-2007, 01:44 PM#1
Skurai
I wanna make this spell.

Deathnote- channeling spell. When casted on an enemy hero, a text window will open up for the caster. While channeling, typing the name of the hero that has deathnote being channeled on him kills that hero.

If channeling caster is stunned or killed, it stops and the text window dissapears.

Hmm can some1 roughly give me and idea which triggers to use?
I only need this ability to be working on like 6 enemy heros. I know how to make typing the name kill a target but i dunno how 2 make it work this way.

========================================================
2nd problem. Made a lionheart spell, basically it knocks enemy into the air and the caster than jumps up and rapidly attacks the enemy target
but the thing is the enemy moves straight up and so does the caster.

I want the caster and enemy target to move a distance forward from where he was hit as well as up. How do i do make him move forward, in short a pushback effect. I tried so far and cant get.

I believe it has something to do wif make unit move 100 distance towards xxx angle of etc etc. Thats the part i aint sure about.

Well how to create a unit a certain distance directly infront of u. I just need the trigger to do that. Thanks for the help.
04-06-2007, 03:54 PM#2
MaD[Lion]
For first spell
If u have this then u must also give every hero hidden name. Where u can use Demon's Eye to see their name and lifespan :P

I would do it so when the unit channel, a fadefilter comes up with image of the death note, and there u can write on chat the hero's name. but, when u have written a game text will appear in the death note. and the hero dies shortly after.
Else you can use some diaglog alternative, but not know how to get text from a diaglog note
------

And for ur second spell, i cannot find any way to make it easy than by using a movement system. My motion system or any movement system will do
04-06-2007, 05:03 PM#3
Skurai
Quote:
Originally Posted by MaD[Lion]
For first spell
If u have this then u must also give every hero hidden name. Where u can use Demon's Eye to see their name and lifespan :P

I would do it so when the unit channel, a fadefilter comes up with image of the death note, and there u can write on chat the hero's name. but, when u have written a game text will appear in the death note. and the hero dies shortly after.
Else you can use some diaglog alternative, but not know how to get text from a diaglog note
------

And for ur second spell, i cannot find any way to make it easy than by using a movement system. My motion system or any movement system will do
1st spell
I can easily set it be4 hand that if this name is written, then this hero dies,etc. But i just need 2 make it such that it is a channeling spell and writing the name to kill only works if the name is written properly during the time the spell is channeled

2nd spell
Hmm i just looking for some1 to help me fill in the spell .. basically when using the create unit trigger for example, how do i set it such that i can create a trigger at 500 range right infront of the caster.

I just need the part that allows me to create a unit right infront of the caster using trigger. I can do the rest
04-06-2007, 08:34 PM#4
tamisrah
The GUI way:
Trigger:
Unit - Create 1 Unit for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 500.00 towards (Facing of (Triggering unit)) degrees) facing ((Facing of (Triggering unit)) + 180.00) degrees

The JASS way:
Collapse JASS:
set a = GetUnitFacing(c)
set x = GetUnitX(c)+500*Cos(a*bj_DEGTORAD)
set y = GetUnitY(c)+500*Sin(a*bj_DEGTORAD)
call CreateUnit(GetOwningPlayer(c),u,x,y,a)

I know that this is probably not the best way to do this in JASS but it's a way.

Else you could use this spell which seems to fit your description pretty well:
http://www.clancbs.com/downloads_seperate.php?id=520
04-07-2007, 10:37 AM#5
Skurai
:) Thanks for the help