Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

what would the script be...

Page: 1 of 1
 Master Orran
10-24-2006, 11:20 AM
#1
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, 11:31 AM
#2
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, 11:34 AM
#3
o yeah i forgot. its for kotor 2.
 stoffe
10-24-2006, 11:48 AM
#4
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, 11:53 AM
#5
thanks stoffe.
Page: 1 of 1