Jump to content

Home

All The Scripts You Need For Moding


whitguy

don't you hate looking every where just to find a script  

12 members have voted

  1. 1. don't you hate looking every where just to find a script

    • YES I HATE IT SO MUCH!!!!
      5
    • I don't really care because its not vary hard to find them.
      6
    • I love looking for scripts.
      1


Recommended Posts

I'm a beginer at moding and i was getting sick of having to look all around for scripts so i had an idea to make a thread for all the scripts you need for moding and i only know 1 script (knowing that im a newbie) so here it is:

 

 

This is the script that will tell your game to recruit your npc.

 

Open notepad and paste the following script:

 

 

code:--------------------------------------------------------------------------------

void main()

{

RemoveAvailableNPC(7);

AddAvailableNPCByTemplate(7, "p_whitguy");

ClearAllActions();

DelayCommand(1.5,ShowPartySelectionGUI());

}

--------------------------------------------------------------------------------

 

 

In RemoveAvailableNPC, number 7 will replave t3m4, for other npcs, use one of the following slot numbers:

 

BASTILA = 0

CANDEROUS= 1

CARTH = 2

HK_47 = 3

JOLEE= 4

JUHANI= 5

MISSION= 6

T3_M4 = 7

ZAALBAR = 8

 

In AddAvailableNPCByTemplate(7, "p_whitguy"), also replace number 7 by the slot number of the npc you want to replace and replace p_whitguy by the TemplateResRef you usedin the .utc file.

ALL THE SCRIPTS YOU NEED FOR MODING

And if you want to make a NPC then heres the link

http://www.lucasforums.com/showthread.php?threadid=131944

Link to comment
Share on other sites

PLEASE if you have a script please post it on this thread so that this thread can help everyone. Also when people post a script they should refer to the original tutorial so if someone wants to use the script, they can put it in the real context

 

PS:Im going to try and search for as meny scripts as i can so the people will pay for attention to this thread and perhaps put some of there own scripts.

 

:firehead:lightning

 

:newbie:

Link to comment
Share on other sites

quote:

--------------------------------------------------------------------------------

 

1. Whats the script for Killing the npc (owner) in a certain dialog?

2. What is the script to make this particular npc henchman to attack you after you killed their boss?

--------------------------------------------------------------------------------

 

The Talk-Fight-Talk sequence is documented is here theres a lot of scripts for this one http://www.lucasforums.com/showthread.php?s=&threadid=126615.

 

 

As for killing an NPC via dialog, you can do that with this script:

 

code:--------------------------------------------------------------------------------void main() {

object oDeadMeat=GetObjectByTag("npc_to_kill");

int nHP=GetCurrentHitPoints(oDeadMeat);

SetMinOneHP(oDeadMeat,FALSE);

ApplyEffectToObject(

0,

EffectDamage(nHP),

oDeadMeat

);

}--------------------------------------------------------------------------------

 

You certainly embellish this script by adding your favorite visual effects, etc.

Link to comment
Share on other sites

I don't blame you for being tired of searching around for scripts with the search function being disabled for normal users. (I certainly hope the admins haven't forgotten that it is still disabled for us!) But scripts are pretty free-form and are often tailor-made for particular scenarios. The major scripts are listed in T7Nowhere's sticky thread. And if you think one should be there, PM T7 or Darth333 to make the request to add one. That is why it is sticky.

 

If you have a specific scripting question, please post it! Hopefully with enough examples on this forum, script writing will begin to sink in for everyone.

Link to comment
Share on other sites

Originally posted by tk102

I don't blame you for being tired of searching around for scripts with the search function being disabled for normal users. (I certainly hope the admins haven't forgotten that it is still disabled for us!) But scripts are pretty free-form and are often tailor-made for particular scenarios. The major scripts are listed in T7Nowhere's sticky thread. And if you think one should be there, PM T7 or Darth333 to make the request to add one. That is why it is sticky.

 

If you have a specific scripting question, please post it! Hopefully with enough examples on this forum, script writing will begin to sink in for everyone.

 

thats kind of what im trying to do im just trying to make a thread for scripting only then if any one has a question thay can look here.

 

:firehead:lightning

 

:newbie:

Link to comment
Share on other sites

Originally posted by tk102

It is better to have links to the original thread so the readers can see the context of what the script has been written for. (And the sticky thread already provides that.)

 

good idea thanks (im just trying to make everything easyer)

 

:firehead:lightning

 

:newbie:

Link to comment
Share on other sites

To tell you the the truth i made this thread for all the newbies our there that just wanted to get a script for something and so if any one ever had a question about a script thay could just come here and ask a question and soon it would be answerd and by doing so if any one else needed that script thay could just come here and there it would be sooo

 

PLEASE if you have a question about a script then just come here and ask it so that this really would be a thread for scripts and so it would be easyer to find a script if you needed one and if it wasent here then just ask about it then it i (or someone else) could help with it.

 

:firehead:lightning

 

:newbie:

Link to comment
Share on other sites

What tk102 was trying to say is that normally a script has a specific context. There are infinite possible combinations and rarely will a script be used "as is" twice.

 

Normally when you discuss a scripting issue, you will also discuss other type of files and that is the purpose of t7nowhere sticky thread "Do you want to mod sw-kotor? Then start here". I think it's better to have separate threads for different topics with a good index that links to those threads instead of a long thread that you have to search 15 pages in it to find what you are looking for and with multiple discussions in it.

 

Also Vinniemc made a good index for nwscript to get the script functions without having to search through nwscript: http://www.pcgamemods.com/8345/

 

Also, please edit your previous posts instead of double posting.

Link to comment
Share on other sites

Originally posted by Darth333

I think it's better to have separate threads for different topics with a good index that links to those threads instead of a long thread that you have to search 15 pages in it to find what you are looking for and with multiple discussions in it.

While I think the idea is good and intentions noble, whitguy, I'd have to agree with Darth333 on this one.

This thread already has 10 (or 11 rather) posts and there's only 2 scripts. By the time this thread was populated, it would be even more difficult to find a "special" script than searching via the game's directories (KT Tool) or a custom thread specific to the intended goal. (Not to mention if someone were to actually read 20 pages and NOT find a script they needed...ouch...)

Link to comment
Share on other sites

Originally posted by ChAiNz

While I think the idea is good and intentions noble, whitguy, I'd have to agree with Darth333 on this one.

This thread already has 10 (or 11 rather) posts and there's only 2 scripts. By the time this thread was populated, it would be even more difficult to find a "special" script than searching via the game's directories (KT Tool) or a custom thread specific to the intended goal. (Not to mention if someone were to actually read 20 pages and NOT find a script they needed...ouch...)

 

OK that makes sence but see i just thought that someone wouldn't go looking though all the pages just for 1 script but now i just thought of something that if like darth333 (or if a different moderator) could delete this thread so that i could make a different thread that in stead of called ALL THE MODS YOU NEED it would be called like "discusing script" or something like that and thanks for all the advice.

 

:firehead:lightning

 

:newbie:

Link to comment
Share on other sites

Originally posted by whitguy

OK that makes sence but see i just thought that someone wouldn't go looking though all the pages just for 1 script but now i just thought of something that if like darth333 (or if a different moderator) could delete this thread

I'll simply lock it ;)

 

that in stead of called ALL THE MODS YOU NEED it would be called like "discusing script" or something like that and thanks for all the advice.

err...wouldn't that be the same? I think that when someone has a question about scripting they should start looking at t7's sticky and then if they don't find the answer, the best solution is to simply start a new thread with a relevant title ( not simply "Heeeeeelp"). f the discussion is relevant and useful, I am pretty sure t7 will add a link to it in his sticky Do you want to mod SW-KotOR? Then start here. In any event when you find a thread particularly useful, PM a moderator to draw our attention on it... after all, we are not here for bad things only :)

 

Since this thread is locked, you can PM me if you want to discuss this further.

 

*edit* btw, who voted "I love looking for scripts"? :D Is it you tk102? Nevermind, it's locked now...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...