Optimal I_C_T coding?
#1 -jcompton-
Posted 11 August 2002 - 07:57 AM
Idea is that Kelsey always interjects, and if Eddie is there, he responds to Kelsey's interject, then we continue on.
INTERJECT_COPY_TRANS BAZMONK 11 FWkintbazmonk
== J#KLS25J IF ~IsValidForPartyDialog("J#Kelsey") IsValidForPartyDialog("Edwin")~ THEN @92
== EDWIN25J IF ~IsValidForPartyDialog("J#Kelsey") IsValidForPartyDialog("Edwin")~ THEN @93
END
INTERJECT_COPY_TRANS BAZMONK 11 FWkintbazmonk
== J#KLS25J IF ~IsValidForPartyDialog("J#Kelsey") !IsValidForPartyDialog("Edwin")~ THEN @92
END
#2
Posted 11 August 2002 - 09:39 AM
INTERJECT_COPY_TRANS BAZMONK 11 FWkintbazmonk
== J#KLS25J IF ~IsValidForPartyDialog("J#Kelsey")~ THEN @92
== EDWIN25J IF ~IsValidForPartyDialog("J#Kelsey") IsValidForPartyDialog("Edwin")~ THEN @93
END
Of course, sometimes my own grasp of the semantics is fuzzy, but if you look in j#kls25j, the state where he says 92 should have 1+X branches: one where Edwin is also present, and the rest are copy_trans of bazmonk 11.
Let me know if that doesn't happen.
#3 -jcompton-
Posted 11 August 2002 - 09:55 AM
Nope. That is in fact the code that I originally wrote.This should work:
INTERJECT_COPY_TRANS BAZMONK 11 FWkintbazmonk
== J#KLS25J IF ~IsValidForPartyDialog("J#Kelsey")~ THEN @92
== EDWIN25J IF ~IsValidForPartyDialog("J#Kelsey") IsValidForPartyDialog("Edwin")~ THEN @93
END
Of course, sometimes my own grasp of the semantics is fuzzy, but if you look in j#kls25j, the state where he says 92 should have 1+X branches: one where Edwin is also present, and the rest are copy_trans of bazmonk 11.
Let me know if that doesn't happen.
It generates only this:
IF ~~ THEN BEGIN 112 // from:
SAY #78673 /* ~If Balthazar needed something like that, I don't think it's something I would be able to power through with my magic... it would be too specialized.~ */
IF ~IsValidForPartyDialog("J#Kelsey")
IsValidForPartyDialog("Edwin")~ THEN EXTERN ~EDWIN25J~ 14
END
So it would seem that the COPY_TRANSing is only happening at the end of the I_C_T. That wasn't your intention?
#4
Posted 11 August 2002 - 11:12 AM
#5
Posted 11 August 2002 - 11:16 AM
#6 -jcompton-
Posted 11 August 2002 - 11:24 AM