|
Rayden69 Newbie
Joined: 24 May 2006 Posts: 1
|
Posted: Wed May 24, 2006 8:25 pm
A quick question... |
I got this spell that I want to repeat when its used but it does cast 4 times but I only want it to repear once...let me show you...
I cast chain lightning and it will show:
Your lightning <<< PLUNGES INTO THE MARROW >>> of A Cow!
A lightning bolt leaps from your hand and arcs to A Cow.
Your lightning <<< PLUNGES INTO THE MARROW >>> of A Cow!
A lightning bolt leaps from your hand and arcs to A Cow.
Your lightning <<< PLUNGES INTO THE MARROW >>> of A Cow!
A lightning bolt leaps from your hand and arcs to A Cow.
Your lightning <<< PLUNGES INTO THE MARROW >>> of A Cow!
however I wanr it only to cast ONE time chain lightning so I can't trigger on the words there cause then it will cast it 4 times and basically lag me out..
thanx for any help :) |
|
|
|
Iceclaw Apprentice
Joined: 11 Sep 2005 Posts: 124
|
Posted: Wed May 24, 2006 9:33 pm |
#var chain 0
#tri {^Your lighting} {#if @chain<4 {chain=@chain+1} {@chain=0;cast 'chain'} }
All code written off the top of my head, but that should help. |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Wed May 24, 2006 10:03 pm |
That'd cause it to go 5 times before recasting I think. Would think it might treat @chain as a string too. If it doesn't work, try
#TRIGGER {^Your lightning} {#if (@chain < 3) {#add chain (1)} {chain = 0;cast 'chain'}} |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
Iceclaw Apprentice
Joined: 11 Sep 2005 Posts: 124
|
Posted: Thu May 25, 2006 1:51 am |
that last chain should definately be without the @.
|
|
|
|
|
|