Scorge Posted October 22, 2011 Share Posted October 22, 2011 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 More sharing options...
TimBob12 Posted October 22, 2011 Share Posted October 22, 2011 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 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 More sharing options...
UltimateHK47 Posted November 18, 2011 Share Posted November 18, 2011 is it possible if you guys told me a script to check if you have completed a quest because i dont get conditional Link to comment Share on other sites More sharing options...
Scorge Posted November 21, 2011 Author Share Posted November 21, 2011 5. Script to start a dialog right after entering module, DeNCS doesnt work for me to decompile the OnEnter NCS file. Link to comment Share on other sites More sharing options...
Scorge Posted November 28, 2011 Author Share Posted November 28, 2011 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 More sharing options...
harIII Posted November 28, 2011 Share Posted November 28, 2011 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 More sharing options...
Scorge Posted October 20, 2012 Author Share Posted October 20, 2012 I think I may have asked this before, but I can't remember. What is the script to make an npc give you an item and the item pops on your Character. [Like you talking with droid and a robe appears on your character.] Thanks Link to comment Share on other sites More sharing options...
Ferc Kast Posted October 20, 2012 Share Posted October 20, 2012 This should be exactly what you're looking for. void main() { string sRobe = "clothes_uti_name_here"; object oPC = GetFirstPC(); AssignCommand(oPC, ActionEquipItem(CreateItemOnObject(sRobe, oPC, 1, TRUE), INVENTORY_SLOT_BODY, TRUE)); } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.