hey guys sorry for asking another newb question.. but i cant figure this one out. in my previous thread i got it 2 work with arrays =] w00t. but now i want to to switch players if theres not enough runes to cast the spell so i did this.
SCAR Code:
procedure zammymage;
var
Spell : String;
begin
case wichspell of
0: Spell:='Confuse';
1: Spell:='Weaken';
2: Spell:='Curse';
end;
Wait(300+random(200));
Wait(200+random(200));
for ZMageI := random(6 + 3)
ZCastOn(Spell,'amora',ZMage[ZMageI],5);
if(not(ZCastOn(Spell,'amora',ZMage[ZMageI],5))) then
writeln('Not enough runes left to cast!')
nextplayer(False);
howmany := howmany+1;
if(howmanyto=howmany) then
NextPlayer(False);
end;
and that logs me out and switches even if i have enough rune to cast.. ? =/
o and its not cuz of the ZMageI := Random(9) cuz that works just fine the way i want it to. but when i add the if(not(ZCastOn.. thats when it messed up.