Aller au contenu

Photo

ga_roster_gui_screen: Where do companions go when removed?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
ColorsFade

ColorsFade
  • Members
  • 1 271 messages
I found this function which opens the dialog to allow you to add/remove companions just like in the OC. This is what I wanted, but it doesn't quite work the way I hoped (and so now I kind of understand why the OC only exposes this dialog when you click on the door and go to leave the Sunken Flagon). 

Here's my setup: I have a book in my inn and when the user clisk on it, this dialog comes up. The user is free to add/remove companions to comprise their party. However, when the user clicks "Okay", if you have removed a companion, they disappear. Now, this isn't a huge problem - if you click on the book again and re-add the companion to the group, they "reappear" so they aren't destroyed or lost. 

However, I have "hangout" waypoints defined for the companions in the inn. What I expected to have happen is for the companion to simply walk over to their hangout (which is what happens if I dismiss a companion through dialog instead). 

Is there a way, via this dialog, for me to have the companion walk to their hangout WP instead? 

Again... now I kind of understand why the OC only pops this when you click on the door to leave... 

#2
Tchos

Tchos
  • Members
  • 5 080 messages
There is a way, because companions walk to their hangouts in SoZ if you dismiss them from the book in the Merchant HQ (their hangouts at that time are in the same building). Examining the scripts in that module might help.

#3
ColorsFade

ColorsFade
  • Members
  • 1 271 messages

Tchos wrote...

There is a way, because companions walk to their hangouts in SoZ if you dismiss them from the book in the Merchant HQ (their hangouts at that time are in the same building). Examining the scripts in that module might help.


Ah, cool. Thanks Tchos. I'll check that out. 

#4
ColorsFade

ColorsFade
  • Members
  • 1 271 messages

Tchos wrote...

There is a way, because companions walk to their hangouts in SoZ if you dismiss them from the book in the Merchant HQ (their hangouts at that time are in the same building). Examining the scripts in that module might help.


Well, I looked at that, and it looks like it uses the cohort gui screen instead of the party edit screen. 

I'm looking at Lance Botelle's and Sunjammer's tutorials on GUI editing now to see if there's a way I change the party edit gui. 

The standard partyselect.xml gui dialog makes a call to UIButton_Input_RemoveRosterMemberFromParty() to remove members. This has to be an internal function and is what causes the party member to "disappear". 

It looks like I could copy this XML and edit it to use UIObject_MISC_ExecuteServerScript(), and thus calla  custom script that would send the Companion to their hangout instead of making them disappear.