PDA

View Full Version : Playing as a Party Member?


Weavel
07-26-2009, 08:09 PM
What function is required so that the player assumes control of Kreia?

Marius Fett
07-26-2009, 08:15 PM
Press tab while she's in your party or just click her portrait...

Weavel
07-26-2009, 08:20 PM
In a script, what does one need to do to have a script give the player control of kreia after a cutscene.

Marius Fett
07-26-2009, 08:26 PM
Ah, right. Sorry mate, I thought you were just asking how to switch Party Members. Which come to think of it, might have been a bit daft of me. Sorry about that. :p

Eh, I know literally nothing at all about scripts. So looks like you'll need to wait for someone else to come along. :)

gsusfrk
07-26-2009, 10:47 PM
Use the function SwitchPlayerCharacter(int n). Substitute n for which number party slot you want to switch to (use trial and error to find the right character). Use the value -1 to switch back to the original player character (The Exile).

Canderis
07-26-2009, 10:49 PM
Does it work with K1 also?

Star Admiral
07-26-2009, 11:49 PM
Indeed it should. If I'm not mistaken, Kreia should be number 6.

- Star Admiral

Tobias Reiper
07-27-2009, 06:26 AM
Use the function SwitchPlayerCharacter(int n). Substitute n for which number party slot you want to switch to (use trial and error to find the right character). Use the value -1 to switch back to the original player character (The Exile).

Woah, wuh- hub eh wut?
Excuse me for being a tard, but I really had no idea what you just said.

stoffe
07-27-2009, 06:38 AM
What function is required so that the player assumes control of Kreia?

If you want the Exile to still be in the group but have Kreia as the currently controlled character you can do:

void main() {
SetPartyLeader(NPC_KREIA);
}


If you want the Exile to no longer be in the group and have Kreia as the main character you can do it like:

void main() {
SwitchPlayerCharacter(NPC_KREIA);
}

Weavel
07-30-2009, 04:39 PM
Thanks.

R2-X2
07-30-2009, 05:29 PM
Does your script work for K1 as well?
Or does the game use another script? The function must be there anyway, see the Leviathan for that.

Demongo
07-30-2009, 06:07 PM
The SwitchPlayerCharacter works for K1, but not sure about SetPartyLeader. I think that works too.

Allronix
07-31-2009, 08:01 PM
Oh, this could get fun. Thanks, Stoffe. I always wondered about how to pull off that trick. I'd love a couple of K1 puzzles requiring you play as someone other than Revan,