Jump to content


Chain 2


  • Please log in to reply
2 replies to this topic

#1 -Arch_Angel-

-Arch_Angel-
  • Guest

Posted 27 July 2002 - 05:59 AM

Ok this chain2 seems to loop, only I can't see why it would :( Is the syntax correct? Am I missing something?

APPEND BKRON
IF ~InParty("Nalia")
See("Nalia")
!StateCheck("Nalia",STATE_SLEEPING)
CombatCounter(0)
Global("KR_KNaliaI","LOCALS",0)~ THEN BEGIN KRONDORNALIA0
SAY @235
IF ~~ THEN DO ~SetGlobal("KR_KNaliaI","LOCALS",1)~
EXTERN BNALIA KrondorNaliaA
END

CHAIN2 BNALIA KrondorNaliaA
@236
==
@237
==
@238
==
@239
==
@240
END BKRON KRONDORNALIA0

IF ~~ THEN BEGIN KRONDORNaliaend
SAY @241
IF ~~ THEN EXIT
END
END


Kron

#2 -jcompton-

-jcompton-
  • Guest

Posted 27 July 2002 - 07:44 AM

Ok this chain2 seems to loop, only I can't see why it would :( Is the syntax correct?


:) It's looping because you told it to.

   @240
     END BKRON KRONDORNALIA0

 IF ~~ THEN BEGIN KRONDORNaliaend


You told it "At the end of the chain, go to BKRON state KRONDORNALIA0", which is the start of the discussion.

You want

END BKRON KRONDORNaliaend

#3 -Arch_Angel-

-Arch_Angel-
  • Guest

Posted 27 July 2002 - 04:25 PM

Oh well that was obvious LOL, don't know how I missed it

Cheers

JC