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

Chain question

Status
Not open for further replies.
Level 1
Joined
Jan 10, 2005
Messages
2
I am wonderig is there any way to make chain spell without using JASS?
Sorry if there is one already uploaded,because I didn`t saw it...
If anybody know how to make chain spell without using JASS plz reply!
 
Level 12
Joined
Apr 29, 2005
Messages
999
It is possible. Leopard made a chain spell some time ago with only GUI triggers (non JASS). Sadly he has updated that spell and replaced the triggers with JASS scripts now so no one can learn how he did. I remeber that he used more than one trigger for the spell. The biggest problem with trigger chain spells is that you must get ridd of all memory leaks that they cause. Especially all that "pick unit matching condition".
 
Level 13
Joined
Dec 29, 2004
Messages
597
OK, I'll try to give explanation. Here the basic concept:


Your objective is: No enemy get hit more than once and each enemies who get hit will suffer a specific buff.

- Create a dummy unit. This dummy has attack damage equal to 1, has missile effect depending
on chain missile that you want, and has custom orb ability.

- The custom orb ability based on orb of slow ability with modified on its buff,
change the chance to hit enemy to 100%. Let say you modified the slow buff to purge buff.

- Don't forget to modify target allowed for the dummy, and attack cooldown.
Make the attack cooldown a large number, so each dummy will hit only one specified target.


Then, here's the trick:

- First prepare a unit group, make sure it was clear unit group.
- Create dummy on caster position order this dummy to attack the target of ability being cast,
gives 1 second expiration timer. Make sure the expiration timer is less than its attack cooldown,
so the dummy will die before attacks another enemy.
** - Add the target to unit group
- Wait for (distance between dummy and the target/missile speed) second
- then damage the target. In this case, the target will have purge buff.
- Do increment on the bounce counter
- Do checking, is the bounce limit has been reached? if yes, exit the loop

- Make another dummy on target position, and pick one random enemy nearby the dummy, match it.
Is the enemy already on the unit group?
- Then, order the dummy to attack it, and do it again as a loop, start on **


Note that you don't need to create exact trigger according to my explanation, as long as you get the trick behind it, then the code is up to you.
Don't forget to get rid the leaks, and if you use GUI, it is not multi-instanceable.

Hope this will help.
 
Status
Not open for further replies.
Top