Jump to content


Photo

CHAIN


  • Please log in to reply
7 replies to this topic

#1 Sevarus

Sevarus
  • Member
  • 11 posts

Posted 06 July 2006 - 07:37 PM

I'm definitely reading conflicting opinions on how to do this, so I'd like a be-all, end-all solution.

CHAIN
	IF ~InParty("Cyra")
	   See("Cyra")
	   !StateCheck("Cyra",STATE_SLEEPING)
	   Global("CyraMinscBanter2","LOCALS",0)~ THEN BMINSC CrazyContest
	~Boo says you are the crazy one.~
DO ~SetGlobal("CyraMinscBanter2","LOCALS",1)~
  == A!BCyra
  ~Me? Me? I merely float in madness, you dive in it!~
  ==BMINSC
  What? Madness is no swimming pool!
  ==A!BCyra
  You have an unhealthy obsession with "evil" and putting your boot to its backside. That does not scream "sane being" to me.
  ==BMINSC
  Evil always needs a good kick!
  ==A!BCyra
  But where *is* evil? Just some man in the corner? Do you walk up to him and give him a swift kick to the buttocks?
  ==BMINSC
  Of course! Nothing cures evil like a good dose of pain!
  ==A!BCyra
  Surely the crack in your mirror wasn't caused by yourself...
  ==BMINSC
  Minsc's head is much thicker than glass, little elf! But not quite as thick as a big rock, sadly. Stone giants have good aim.
  ==A!BCyra
  Ah yes, the perils of bouncing boulders. I hope the limbs of my madness never entangle with the ever-growing branches of your tree of insanity, Minsc.
  ==BMINSC
  Er... yes, me too. *whispers* Yes, Boo, she's one sandwich short of a picnic.
EXIT

What's going on? Is there supposed to be an APPEND in there? I'm royally confused.

Also, does post-Spellhold Immy even HAVE a banter file? What in the world do I use to banter with her? BIMOEN25? Isn't that for ToB?

#2 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 06 July 2006 - 07:42 PM

You're forgetting tildes here and there. You're also not using weighting, which generelly is a good idea to have when it comes to Bioware NPC initiated banters, although it works anyway.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#3 jcompton

jcompton
  • Modder
  • 492 posts

Posted 06 July 2006 - 09:05 PM

I'm definitely reading conflicting opinions on how to do this, so I'd like a be-all, end-all solution.


http://forums.pocket...topic,61.0.html

Also, does post-Spellhold Immy even HAVE a banter file? What in the world do I use to banter with her? BIMOEN25? Isn't that for ToB?


Imoen2 does not have a banter resource assigned, no. It's possible in theory to patch the 2DA so that she does, but I found this to be unstable. Yes, BIMOEN25 is only for TOB.

Use Imoen2J instead, and either have the other NPCs initiate the banter, or use scripting to call Dialogue() on her if you absolutely can't work it out so that someone else has the opening line.

#4 Sevarus

Sevarus
  • Member
  • 11 posts

Posted 06 July 2006 - 09:14 PM

Yeah, tildes... this is what I get for writing everything out normally and just copy/pasting it all in.

And I have read Blue's tutorial... several times. But it doesn't explain using APPEND and EXTERN with CHAIN. It's *Haer'Dalis says something* *Blue says something back* END. What if I want it to keep going?

EDIT:
Apparently, WeiDU doesn't like my A! label. Changing it to A_ has fixed some issues.

Edited by Sevarus, 06 July 2006 - 09:30 PM.


#5 jcompton

jcompton
  • Modder
  • 492 posts

Posted 07 July 2006 - 06:52 AM

You would EXTERN back to a different state. However, the whole point of CHAIN is to save you having to do tedious and repetitive defining long-form states and EXTERNing between them.

You do not use APPEND "with" CHAIN as such. When you GOTO/EXTERN a state label, that state label may be a long-form state (IF ~~ THEN whatever SAY whatever etc.) or the label of a CHAIN.

#6 Vlad

Vlad
  • Member
  • 577 posts

Posted 07 July 2006 - 08:42 AM

Imoen2 does not have a banter resource assigned, no. It's possible in theory to patch the 2DA so that she does, but I found this to be unstable.


We did it with no problem. Why it should be unstable?

#7 jcompton

jcompton
  • Modder
  • 492 posts

Posted 07 July 2006 - 09:08 AM

I got crashes. Maybe I did it wrong, it was a while ago. In any event, Sevarus seems to have enough trouble understanding basic dialogue concepts without requiring a 2DA patch, so I urge sticking with the simple, known-to-work solution for the time being.

#8 Sevarus

Sevarus
  • Member
  • 11 posts

Posted 07 July 2006 - 09:11 AM

Okay, got it now. I must have misinterpreted what I read before.