Jump to content

Home

How to get item


LordRevan999

Recommended Posts

I have made a new reskined armor of bendakstarkiller.I have used his utc file to change his appearance to the reskined armor I made.Now my question is how do I make that hutt(which ever is his name in the arena)give bendak's armor to pc when bendak dies I know there was mod like this but can you still tell me how can I do this stuff.

Link to comment
Share on other sites

Hey there, compile this script and attach it to the Hutt's dialog sometime after defeating Bendak, either when you collect the credits of when you talk to him to do the next fight. - It's been a while since I've played this part of the game and I can't remember when you fight Bendak.

 

void main()
{
   object oPC=GetFirstPC();

   CreateItemOnObject("[b]Tag_Of_Armour[/b]", oPC);

}

--Stream

Link to comment
Share on other sites

There are many ways to compile a script, I personally use TSL Patcher as I use it to edit 2da and journal files, this thread explains how to compile scripts and the tools you need http://www.lucasforums.com/showthread.php?t=143681.

 

As for attaching the script to a dialog, use DLG Editor and look at the nodes, when you find the right one just enter the script name, without the extension, into the 'script that fires when spoken' field.

 

--Stream

Link to comment
Share on other sites

Alright I read the tutorial and I like to use the kotor tool method of scripting,but as always problems come,I opened the text editor from kotor tool and then chose script for K1.But now at the bottom right corner a list box is present and there are functions so how do I find that which function would give me a script similar to the one deadly stream posted above.

Link to comment
Share on other sites

If you scroll down you'll see the CreateObject function if you double click it, it will add that function into the script but you don't actually have to do that, just copy what I put above and paste it into the text editor, all you have to do is add the tag of the armour into the script and compile it.

 

--Stream

Link to comment
Share on other sites

I have compiled it and now how do I attach that to the nodes or whatever you were saying.And another question is there a site or link where I can find all the scripts like the one above.

 

By the way I just tried the other method of creating the script by clicking on the CreateObject Function It gives me something like this: "CreateObject("So if I want to use this method what should I write next to the "(".

Link to comment
Share on other sites

That was me and you're right, well spotted mate - I haven't got around to double checking yet but I'm not looking forward to it, I have a bad habit of not looking at the screen when I'm writing, no matter how hard I try I can't get out of it.

 

--Stream

Link to comment
Share on other sites

So you can have both scripts running on the same node, use this code for your script;

void main()
{
   object oPC=GetFirstPC();

   CreateItemOnObject("Tag_Of_Armour", oPC);

   ExecuteScript("[b]Original_Script_Here[/b]", OBJECT_SELF);

}

And attach that to the node - now both your script and the original will fire from the node.

 

As for changing the text, delete whatever is in the StrRef field and replace it with -1, now the text area below it will be empty and you can type whatever you'd like in there.

 

--Stream

Link to comment
Share on other sites

What kind of scripts are you looking for? The best way is to take a look at the source scripts in the KoTOR Tool bif sections. Another good place is to look through nwscript as it has all the script functions, if you take a look through there you'll see that the script above is 135 in nwscript.

 

--Stream

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...