His standard code gives a 50% chance of playing a party member's info; example: Minsc
CODE
IF WEIGHT #1 /* Triggers after states #: 9 even though they appear after this state */
~See("Minsc")
InParty("Minsc")
!StateCheck("Minsc",STATE_SLEEPING)
RandomNum(2,1)
Global("celvanminsc","AR0300",0)~ THEN BEGIN 0 // from:
SAY ~"There once was a warrior true,
with the sense knocked out of him, too.
but in a hamster he found,
some wisdom profound,
and now where goes he goes his Boo!"~ /* #25448 */
IF ~~ THEN DO ~SetGlobal("TalkedToCelvan","LOCALS",1)
SetGlobal("celvanminsc","AR0300",1)~ EXTERN ~MINSCJ~ 48
END
Most modders seem to want their code to always play once, leaving out the RandomNum(2,1). I'm sticking to BioWare™ Standard, though - it is more fun to see all the possible reactions by playing the lottery with him. He'll even comment on PC.
The format is limerick, the topics are things he shouldn't be able to know, and the poetic standards are lower than low. If you have wishes for masterpieces of Iambic Pentameter, this is definitely *not* the place for it! style_emoticons/default/smile.gif
To add him in,
CODE
/* Crazy Celvan Encounter */
CHAIN IF WEIGHT #-1 ~InParty("c-aran") See("c-aran") !StateCheck("c-aran",CD_STATE_NOTVALID)
RandomNum(2,1) Global("c-arancelvan","AR0300",0)~ THEN CELVAN c_celvanreaction
~"There once was a scribe, so I'm told,
whose cooking was warm, jokes quite old. || whose cooking was warm, humor old.
In combat a lion,
in bed not half tryin',
But never a word less than bold!"~
DO ~SetGlobal("c-arancelvan","AR0300",1)~
== C-ARANJ ~[ARAN] Helm's Heavy Hand, that lad knows more than be good for his health, eh? Mayhap listenin' at one too many keyholes.~
END CELVAN 1
Edited by cmorgan, 18 November 2011 - 07:08 PM.












