PDA

View Full Version : what would the script be...


Master Orran
10-24-2006, 12:20 PM
what would the script be if i wanted to give a character these thing in a dialog:

Full darkside
Full Lightside
a single bladed lightsaber
a double bladed lightsaber
a short bladed lightsaber
full influence
add a party member

thhank if you can help
-Master Orran

stoffe
10-24-2006, 12:31 PM
what would the script be if i wanted to give a character these thing in a dialog:

That depends on which game it is for. For KotOR2:TSL there are standard dialog action scripts in the game already that can be used from a dialog to accomplish most of those things. In KotOR1 you'll likely have to write your own scripts to do it (which isn't that difficult since those scripts would be fairly uncomplicated).

Master Orran
10-24-2006, 12:34 PM
o yeah i forgot. its for kotor 2.

stoffe
10-24-2006, 12:48 PM
o yeah i forgot. its for kotor 2.

There are some scriptsi n the game you can use in the "Script #" boxes in tk102's DLG Editor to accomplish these tasks. They generally require you to specify a parameter in one of the boxes to the right as well:


Task Script Dialog script parameters
----------------- ---------------- ----------------------------
Full darkside a_givedark P1: DS points to give (100 is max)
Full Lightside a_givelight P1: LS points to give (100 is max)
give a lightsaber a_give_item String Param: Name of UTI file to give item from
full influence a_influence_inc P1: Party member number to adjust (0-11)


The source code for all those can be found in scripts.bif with KotorTool if you want to see how they work more exactly.

As for adding a party member, depends on if you want to add one of the existing party members, or a new one created by a mod.

EDIT: Didn't you ask pretty much the same thing in this thread (http://www.lucasforums.com/showthread.php?t=171701)? I thought this seemed familiar... :)

Master Orran
10-24-2006, 12:53 PM
thanks stoffe.