Jump to content


Photo

Which command to use...


  • Please log in to reply
17 replies to this topic

#1 Garfield

Garfield
  • Member
  • 23 posts

Posted 22 July 2005 - 04:50 AM

Here is my problem:

I'd like to have two NPC joining the party together, and leaving it together. Which command should I use in a dialog to obtain it?

Thanks
French translator with Les D'Oghmatiques

#2 Origami Samurai

Origami Samurai
  • Member
  • 12 posts

Posted 22 July 2005 - 05:20 AM

This is for BGII I assume?

#3 -Guest-

-Guest-
  • Guest

Posted 22 July 2005 - 07:05 AM

JoinParty() and ActionOverride(Whoever,JoinParty())

#4 jcompton

jcompton
  • Modder
  • 492 posts

Posted 22 July 2005 - 07:05 AM

Must remember to log in.

#5 Garfield

Garfield
  • Member
  • 23 posts

Posted 22 July 2005 - 07:45 AM

Thanks, and indeed, it was for BG2 ^^

EDIT: I tried (badly I suppose) and it doesn't work.here is the piece of dialogue

IF ~~ THEN REPLY ~Une petite chercheuse de trésor, hein? Interessant... Allez, venez avec moi... et votre mari aussi!~ DO
~SetGlobal("GineraJoined","LOCALS",1)
JoinParty()
ActionOverride(B#Gem,JoinParty()) ~ EXIT


Ginera is the name of the first character, the second is named Brenn. Brenn's .cre file is B#Gem.

What's wrong?

Thanks

Edited by Garfield, 22 July 2005 - 08:09 AM.

French translator with Les D'Oghmatiques

#6 jcompton

jcompton
  • Modder
  • 492 posts

Posted 22 July 2005 - 09:46 AM

1. Try swapping the order of the last two lines.

2. You need to enclose the B#Gem death variable in quotes for it to work.

#7 Garfield

Garfield
  • Member
  • 23 posts

Posted 23 July 2005 - 05:35 AM

It still doesn't work. Here is what I tried:

~SetGlobal("GineraJoined","LOCALS",1)
JoinParty()
ActionOverride("B#Gem",JoinParty()) ~ EXIT


And

~SetGlobal("GineraJoined","LOCALS",1)
ActionOverride("B#Gem",JoinParty())
JoinParty() ~ EXIT


I don't know where the problem comes from...

Thanks for the help :Bow:

Edited by Garfield, 23 July 2005 - 05:36 AM.

French translator with Les D'Oghmatiques

#8 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 23 July 2005 - 06:07 AM

If you describe what actually happens, we might be able to identify the problem easier. :)

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


#9 Garfield

Garfield
  • Member
  • 23 posts

Posted 23 July 2005 - 06:17 AM

Hehe, the problem is: nothing happends.

I want to have a couple of NPC like Khalid and Jaheira in BG1. If one joins the party, the other comes to, and if one leaves the party, the other leaves to. And there, nothing happends. Only the NPC that talks joins the party, not the other.

Edited by Garfield, 23 July 2005 - 06:18 AM.

French translator with Les D'Oghmatiques

#10 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 23 July 2005 - 06:30 AM

What are the deathvariables of the two creatures?

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


#11 Garfield

Garfield
  • Member
  • 23 posts

Posted 23 July 2005 - 06:40 AM

The two creature are:
-Ginera, death variable= "G#Gem"
-Brenn, death variable="B#Gem"
French translator with Les D'Oghmatiques

#12 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 23 July 2005 - 07:05 AM

And which one of them are speaking to the player?

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


#13 Garfield

Garfield
  • Member
  • 23 posts

Posted 23 July 2005 - 07:28 AM

Brenn is speaking to the player... an ginera is not joining :(
French translator with Les D'Oghmatiques

#14 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 23 July 2005 - 08:02 AM

Try ActionOverride("G#Gem",JoinParty()) :)

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


#15 Garfield

Garfield
  • Member
  • 23 posts

Posted 23 July 2005 - 09:33 AM

Woohoo, after lots of attempts, I eventually succeed.

Actually, the solution was pretty simple and logical:

~SetGlobal("BrennJoined","LOCALS",1)
SetGlobal ("GineraJoined","LOCALS",1)
ActionOverride("G#Gem",JoinParty())
JoinParty()~ EXIT


Thanks to both of you! :)

Edited by Garfield, 23 July 2005 - 09:34 AM.

French translator with Les D'Oghmatiques

#16 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 23 July 2005 - 09:53 AM

Just for your information; the variables will be stored in Brenn's creature file. You might want to do: ActionOverride("G#Gem",SetGlobal("GineraJoined","LOCALS",1))

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


#17 Garfield

Garfield
  • Member
  • 23 posts

Posted 23 July 2005 - 12:57 PM

Yes, it's exactly what I wanted to do.
Thanks again :)
French translator with Les D'Oghmatiques

#18 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 24 July 2005 - 12:15 AM

There are triggers like:
Joins(O)
Leaves(O)

I guess these are useful, though I never used them.
Avenger