Jump to content

Home

script question?


T7nowhere

Recommended Posts

  • Replies 66
  • Created
  • Last Reply

If the npc is a party member, yes. If you want to equip the npc with an item in a particular slot, check this thread: http://www.lucasforums.com/showthread.php?s=&threadid=130977

 

The available slots are:

INVENTORY_SLOT_HEAD

INVENTORY_SLOT_BODY

INVENTORY_SLOT_HANDS

INVENTORY_SLOT_RIGHTWEAPON

INVENTORY_SLOT_LEFTWEAPON

INVENTORY_SLOT_LEFTARM

INVENTORY_SLOT_RIGHTARM

INVENTORY_SLOT_IMPLANT

INVENTORY_SLOT_BELT

INVENTORY_SLOT_CWEAPON_L

INVENTORY_SLOT_CWEAPON_R

INVENTORY_SLOT_CWEAPON_B

INVENTORY_SLOT_CARMOUR * for an example of this one, see this thread: http://www.lucasforums.com/showthread.php?s=&threadid=129600

Link to comment
Share on other sites

No no no.

I want to make an NPC give me the PC that Lightsaber.

An NPC that is not in my team at all!

A NPC from the game that I'll create a special conversation for him that will in the end give me that Lightsaber.

 

Now another question, that number that you gave, the 0 can always be a random number?

Link to comment
Share on other sites

I mean the npc on which the object is created, not necessarily the one who is talking. If the object is created on one of you party members, then it will go to your inventory.

 

To your second question, no, it doesn't have to be 0. Just look at the Darkside choker.

 

Don't be afraid to try. The worst thing that can happen is that it doesn't work. You'll learn a lot by trying different things.

Link to comment
Share on other sites

Ok, like I said, sorry for using this same post for this but I'm excited about my first MOD if I can call it that.

How do I make a dialog option with a REAL Force Persuade check?

Like this:

[Force Persuade]Hey I'm good, show me!

 

Then if it's high enough I get the the success or if its not u know the drill I fail :o:p:D

Link to comment
Share on other sites

Try attaching this script in the active field of the RepliesList located in the EntryList of a dlg file

 

 

EntryList:

->0

->->RepliesList

->->->0

->->->->Index:

->->->->my_script

 

For a check for dominate mind:

int StartingConditional()
{
 return GetHasSpell(FORCE_POWER_DOMINATE,GetPCSpeaker());
}

 

and for affect mind:

int StartingConditional()
{
 if(GetHasSpell(FORCE_POWER_AFFECT_MIND, GetPCSpeaker())) 
 {
     return TRUE;
 }
 return  FALSE;
}

Link to comment
Share on other sites

Sorry, well the phrase worked.

But he didnt gave me the item.

 

here is the script:

 

void main () {
object oObject = GetObjectByTag("npc_tag");

if (GetLocalBoolean(oObject,0)) { return; }
CreateItemOnObject("star_lghtsbr87",oObject);
SetLocalBoolean(oObject,0,TRUE);
}

 

Any help would be appreciated :p

 

Thanks in advance,

ReLoaD2K

Link to comment
Share on other sites

Originally posted by ReLoaD2K

here is the script:

 

void main () {
object oObject = GetObjectByTag("npc_tag");

if (GetLocalBoolean(oObject,0)) { return; }
CreateItemOnObject("star_lghtsbr87",oObject);
SetLocalBoolean(oObject,0,TRUE);
}

 

If this is the exact script you are using, I think your problem is here;

 

object oObject = GetObjectByTag("npc_tag");

 

npc_tag needs to be changed to a valid NPC or object tag enclosed in the quotes. For it to work properly, I think!

 

I hope this helps! :D

Link to comment
Share on other sites

Reload2k,

 

What began as a scripting question has turned into a hand-held tutorial of how to create a dialog along with conditional scripts and custom .utc files. You seem to require a lot of baby steps, so either this topic is too complex for you at this time, or you are unwilling to look up your own information.

 

Please please please - go read some stuff on your own before you ask your next question. -- you're driving people crazy. Sorry to be so blunt but it's true.

 

Suggested reading:

 

DLGEdit readme.txt

Bioware's Conversation Format (at http://nwn.bioware.com/developers )

Link to comment
Share on other sites

Like TK said,

 

You are probably doing something too complicated right now.

 

You'll learn much more if you try to gather some info by yourself. Read the documentation TK pointed you at and download some mods and check how they are done. To do this, compare the original Kotor files with the modified files. It takes time and it requires efforts but it's the only way you'll really learn something.

 

We've been answering questions for nearly 8 hours now. We like to help people but we are not free customer online tech support service either.

Link to comment
Share on other sites

:eek: :eek: :eek:

 

Wow, you could be just a bit nicer there tk, I mean, isn't teaching others to mod kinda half the fun in moddding? o.O Besides, if you keep saying things like that to people who just want to learn, pretty soon you and Darth333 are going to be the only scripters around here, so we're not gonna have a whole lot of great mods are we. :D You might want to consider what Reload can do before you tell him to stop asking questions. Besides it's not driving me crazy. :p

Link to comment
Share on other sites

That's the problem Mono. There are not many people into scripting here and we have a lot to do. I think TK has provided a lot of support in this forum since the very beginning. We both like to help when we can :) But there is a limit to what we can do. The fact is that we both have full time jobs and we cannot just answer everyone's questions: this is a hobby and should remain as is.

 

The reason why I don' t make a lot of mods and don't come out with new areas is that I am helping people with their mods first. Tk has made a bunch of great utilities that are very useful to all modders and without his utilities, many mods would have never been released. He also made KSE for everyone to enjoy.

 

People should make reasonable efforts to find out a solution to what is wrong and not expect to be spoon fed all the time. Yesterday we helped Reload2K during hours...sometimes his questions were coming so quickly that it was impossible that he tried all what we said before asking (it is not the first time that this happens). Some questions would have required just a minimum of attention to find the answer. The idea is to try first and ask after. We cannot do the work for everyone...

 

Again we like to help but we expect the person being helped to make some efforts too.

Link to comment
Share on other sites

I see, I'm the problem here.

Well you may believe or not but yes, I did tryied all of your answers and still some things are not working.

But I wont ask for help cuz I wont finish the MOD.

I think this will make everybody happy right?

I dont know anything about scripting that why I was asking so much. But I got, there should be a new rule in the forum, everybody have a max of questions to ask per day and the time between them should be like 20min what you guys think?

 

Thanks in advance,

ReLoaD2K

Link to comment
Share on other sites

Mono_Giganto said:

Besides, if you keep saying things like that to people who just want to learn, pretty soon you and Darth333 are going to be the only scripters around here,

On the other hand, if we're too exhausted to answer questions, then there won't even be us to help. ;)

 

This thread is just sucked the life out of everyone involved I think.

Link to comment
Share on other sites

Originally posted by ReLoaD2K

I see, I'm the problem here.

Well you may believe or not but yes, I did tryied all of your answers and still some things are not working.

But I wont ask for help cuz I wont finish the MOD.

I think this will make everybody happy right?

 

LOOK AT WHAT YOU'VE DONE TO THIS YOUNG MODDING LEARNER!? i think you lot should think about creating a Tutorial for this type of thing, then you wont get as many questions!

 

i think you lot should appolige to this kid, hes only learning and you have a go at him for asking!? children learn thought questions and fun, without these a child is nothing!

 

i mean no disrespect or offence to you lot, and i hope this wont lead to any aggression between us.

 

MattCole

Link to comment
Share on other sites

People should make reasonable efforts to find out a solution to what is wrong and not expect to be spoon fed all the time. Yesterday we helped Reload2K during hours...sometimes his questions were coming so quickly that it was impossible that he tried all what we said before asking (it is not the first time that this happens). Some questions would have required just a minimum of attention to find the answer. The idea is to try first and ask after. We cannot do the work for everyone...

 

:monkey3: Heh, I didn't know it was yesterday too, and I'm not asking you two to do all the work for him/everyone else, I'm trying to learn scripting just for the sole purpose of not having to take up the time of anyone else. I'm just asking not to start... well it wasn't flaming, but you know what I mean, it was just a little mean tk.

 

I'm not saying that either of you need to do more work, you both do MORE than enough around here.

But have you noticed, that when everytime somebody new joins the forum, someone who welcomes them always talks about how nice the people around here are? That post just kinda made me disbelieve a bit and made me feel sad. :cry6:

 

Okay I'm just gonna quietly retreat back beneath my rock now. :D

Link to comment
Share on other sites

Archived

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


×
×
  • Create New...