Dan the Man Entertainment
Joined: 31 May 2003 Posts: 204
|
Posted: Thu Jul 08, 2004 12:01 pm Post subject: Too many conditions, too many problems |
|
|
I have a script that messes up badly. When triggered, its supposed to let you pick ONE character and check something. However, due to a large amount of conditions, it checks both people. Can anyone tell me what's wrong?
Code: |
script, CCcheck, begin
set variable (savex, herox (me))
set variable (savey, heroy (me))
set variable (savemap, current map)
variable (i)
set variable (i, pickhero)
if (herobyslot (i)==hero:beefzokbw, and, beefzokup>= 100,
and,
beefzokup<=300,
and,
tag: beefzoklv1==true,
or,
herobyslot (i)==hero:beefzokbw,
and,
beefzokup>=300,
and,
tag:beefzoklv2==true)
then
(
teleport to map (map: beefzok's classes, 8, 6)
)
else
(
showtextbox (119)
wait for textbox
if (beefzokup<=49) then
(
showtextbox (120)
wait for textbox
)
else
(
showtextbox (121)
wait for textbox
)
)
if (herobyslot (i)==hero:pierabh, and, pieraup>= 100,
and,
pieraup<=300,
and,
tag: pieralv1==true,
or,
herobyslot (i)==hero:pierabh,
and,
pieraup>=300,
and,
tag:pieralv2==true)
then
(
teleport to map (map: piera's classes, 8, 6)
)
else
(
showtextbox (122)
wait for textbox
if (beefzokup<=49) then
(
showtextbox (120)
wait for textbox
)
else
(
showtextbox (121)
wait for textbox
)
)
end
|
|
|