| 07-10-2005, 08:11 PM | #1 |
I just thought of a really nice idea for a spell, it's chain lightning that keeps jumping, and losing damage, just like normal chain lightning, except it lasts forever - until you stop channelling. Does anyone know how you would got about making this spell, preferably without too many triggers. |
| 07-11-2005, 12:41 AM | #2 |
Easy. Code:
Event A unit starts casting an ability
Conditions: Ability being cast equal to Channel chain lightning
Actions
Set ChanChainTarget = Target unit of ability being cast
Trigger - Run Trigger Channeling Chain Lightning Loop
Trigger Channeling Chain Lightning Loop
Events: none
Conditions
Current Order Of (Triggering Unit) equal to (Order("whatever the order of your spell is"))
Actions
-- Insert trigger actions that make a dummy unit cast a weak version of chain lightning over ChanChainTarget , the dummy unit should be at the position of triggering unit and owned by the owner of triggering unit ---
Wait - 0 seconds (please don't use Game Time waits, use the normal wait
Trigger . Run This trigger (checking conditions)
And let me move to the triggers forum |
| 07-11-2005, 01:04 AM | #3 |
umm...why not use game-time waits? (and woouldnt it be an acual duration like .1 seconds or something... ...unless, of course, the wait is caused by spell casting time/animations/w/e |
| 07-11-2005, 01:08 AM | #4 |
Well he could use Game Time wait and 0.01 , but if he used game time wait an 0 seconds it would crash, the intention behind 0 seconds is giving it a minimum delay |
| 07-11-2005, 08:52 AM | #5 |
Thanks alot, however there is one problem, wouldn't this script require infinite versions of the chainlightning ability that keep getting weaker, and also i can't see how this would stop if the caster stops channelling |
| 07-11-2005, 09:24 AM | #6 | |
Quote:
|
| 07-11-2005, 06:30 PM | #7 |
Hmm it was just an idea, would be amazing if it worked, but I can see it's going to be very hard or even impossible, nevermind. Thanks for the help anyway |
| 07-11-2005, 06:35 PM | #8 |
yah, i can only see it as being totally 100% triggered (just with a channeling base ability)... i probably couldnt do it cuz im a noob shit, but if you looped it and used random target stuff it would work fine....ugh....probably a real variable in there too for reducing dmg each hit maybe deal damage like set realdamagevariable=realdamagevariable*.75 set targetunitvariables hit points to tagetunitvariables current hit points - realdamagevariablr of course, that would just be for damage. youd also have tons of shit to do with special effects, lightning effects, target selection, looping, and destroying effects = ) and i sure as hell aint going to try and do this. |
| 07-11-2005, 06:41 PM | #9 |
whee.. this reminds of me of Nox, the game with the wizard/conjurer/warrior, the wizard had a spell like this, you would just press the chain lightning and it would electrify nearby enemy units within range, after it dies it jumps to the other, slowly damaging it every 0.01 seconds, but also drains mana per second from the caster. i always wanted this spell, but i dont know if what vexorian posted will work. *browses the trigger* edit: nice trigger, and of course it needs more triggers, but the base is here. ill give my shot on it. |
| 07-11-2005, 10:17 PM | #10 |
Hey, it wasn't so hard after all! I decided to give it a try and managed to make it, pretty much perfect, looks almost the same as regular chain lightning, only noticable difference is that it hits targets more than once (but never the target it came from). I've attached a map showing how pro it is, it consists of an archmage with the spell (Called 'Lightning Chain' - Any better name ideas welcome ;) ) and lots of footmen, enjoy! NOTE: The spell will not be cancelled by interrupting spells, just paused for the duration of the interruption :( I am working on this Edit: Fixed map so that lightning bolts fade properly and added a minimum damage of 10 Edit: Updated map so that it has more footmen, comments in the triggers, and less damage reduction :) Edit: Fixed a bug that crashed the game the second time you cast it, made it target the nearest unit. Sorry about all the edits, it won't happen again unless i fix the last bug, which is i can't give it a cooldown :( Edit: Last edit! It now has a cooldown, mana cost and it's kills give experience, enjoy! |
| 07-12-2005, 12:54 PM | #11 |
bah its not the same as i described |
| 07-12-2005, 01:53 PM | #12 |
Hehe no, that would be even harder, and I can't be bothered to try it :p |
