Jump to content

Home

My Scripting Question's


Scorge

Recommended Posts

Instead of making a hundred threads for some weird scipting questions im just gonna put them all in this thread.

 

 

 

1. How do you make a script that checks if the player has Already talked to an npc? Example: Mandalore: I have a hideout, go to the Crystal Caves on Dantooine and meet me there. After talking with mandalore you talk with him again and he says "Go to the crystal Caves on Dantooine. How do i do this?

 

 

 

2. Make an NPC leave your party. (I've searched the forums and cant find anything like this)

 

 

 

3. Make an npc Check if you have an item through Dialog.

 

 

 

4. Make an Npc spawn in a different module. EXAMPLE: Your in the Dxun mandalorian camp and you talk to a mandalorian, after you talk to the mandalorian an NPC spawns in the jungle.

Link to comment
Share on other sites

Welcome to the forums and

 

Instead of making a hundred treads for some weird scipting questions im just gonna put them all in this thread.

 

Thank you Thank you Thank you :D

Question 1: Use this method - http://www.lucasforums.com/showthread.php?t=206642

 

Question 2: Use this function 'RemovePartyMember'

 

Question 3:

int StartingConditional() 
{
 int iResult;

 object oW1 = GetObjectByTag("your item);

 iResult = GetIsObjectValid(oW1);

 return iResult;  
} 

 

Use the first link to try and work this one out as well.

 

Question 4: Use the things from the first link and see if you can work out how to use IF statements to combine scripting and global variables and make things happen based upon them.

Link to comment
Share on other sites

  • 4 weeks later...

Im trying to make NPC's walk randomly using this script, but when I compile its say's "----.nss - error Syntax error at "}" , Compilation Aborted with errors.

 

void main()

{

AssignCommand(OBJECT_SELF,ActionRandomWalk())

}

 

Can someone help me with this?

Link to comment
Share on other sites

Im trying to make NPC's walk randomly using this script, but when I compile its say's "----.nss - error Syntax error at "}" , Compilation Aborted with errors.

 

 

 

Can someone help me with this?

 

I think this is a simple fix, you forgot the semicolon at the end of the line. I haven't tested this but I think this will work:

 

void main()

{

AssignCommand(OBJECT_SELF,ActionRandomWalk());

}

Link to comment
Share on other sites

  • 10 months later...

Archived

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

×
×
  • Create New...