PDA

View Full Version : Need help with a script


Darth_Enix
08-12-2005, 04:58 PM
Oks, I was wondering if anyone knew how to make a script for dialogue that would recognize if I were lightside, darkside or neutral, and give me the correct dialogue (for example, a multiple times during the game, Bastila will comment on how you have either remained true to the light, or have fallen to the dark side.

And I've noticed a common mistake I make is to not mention what game it's for. So I'm finally remembering to say, I need it for the first game.

stoffe
08-12-2005, 05:43 PM
Oks, I was wondering if anyone knew how to make a script for dialogue that would recognize if I were lightside, darkside or neutral, and give me the correct dialogue (for example, a multiple times during the game, Bastila will comment on how you have either remained true to the light, or have fallen to the dark side.

And I've noticed a common mistake I make is to not mention what game it's for. So I'm finally remembering to say, I need it for the first game.

Those dialog conditional scripts already exist in the standard game resources, so unless you need to check for a very specific alignment I would recommend that you use those scripts instead. No need to reinvent the wheel needlessly.

The script k_con_dark returns TRUE if the player is a darksider. There are two other scripts you can use to check how far down the dark path the player is. k_con_darkhigh returns TRUE if the player is very far down the dark path, while k_con_darklow returns TRUE if the player is just a little dark.

The corresponding scripts for lightside checks are k_con_light, k_con_lighthigh and k_con_lightlow.

Darth_Enix
08-12-2005, 05:51 PM
Oks, thanks, I'll take a look.