Canderis Posted July 2, 2008 Share Posted July 2, 2008 well im making a mod and i need a dialog script that alows you to have certain dialog options to say if you have a certain item in your inventory Link to comment Share on other sites More sharing options...
JediMaster76 Posted July 2, 2008 Share Posted July 2, 2008 ... I believe you need a conditional script. Something like so... int StartingConditional() { object oPC = GetPCSpeaker(); if (GetItemPossessedBy(oPC, "insert_itemtag") == OBJECT_INVALID) return FALSE; return TRUE; } This conditional script is placed in dialog and determines whether or not you have an item in your inventory. If you do not, then it checks the next available option. I believe that's what you want. Link to comment Share on other sites More sharing options...
TriggerGod Posted July 2, 2008 Share Posted July 2, 2008 @JediMaster: Theres a simpler way to do it: Alright. First, make the dialog. Thats what you need to do first. In the first dialog node (the one that you want to play when you have a certain item) and put in the conditional script area, put "c_hasitem" (without quotes) and in String Parameter put the tag of the item. Link to comment Share on other sites More sharing options...
JediMaster76 Posted July 2, 2008 Share Posted July 2, 2008 @TriggerGod: You can do that? That's cool, that will easily reduce the amount of scripting I've been doing. Meh, whatever works works, I suppose. Link to comment Share on other sites More sharing options...
TriggerGod Posted July 2, 2008 Share Posted July 2, 2008 @TriggerGod: You can do that? That's cool, that will easily reduce the amount of scripting I've been doing. Meh, whatever works works, I suppose. There are several scripts you can use in there. Too lazy to find them all, but its a lot of them. c_hasitem, the c_influence scripts, a_make_jedi... Link to comment Share on other sites More sharing options...
Canderis Posted July 2, 2008 Author Share Posted July 2, 2008 does it work for k1? and were is the string parameter? Link to comment Share on other sites More sharing options...
TriggerGod Posted July 2, 2008 Share Posted July 2, 2008 K1? I've seen pictures of the K1 side of the DLGEditor. There is no String Parameter. AFAIK, that won't work for K1. If it was for TSL, then it was. If anyone would like to clarify? Link to comment Share on other sites More sharing options...
Canderis Posted July 2, 2008 Author Share Posted July 2, 2008 well does any 1 know a code? Link to comment Share on other sites More sharing options...
Robespierre Posted July 3, 2008 Share Posted July 3, 2008 The code that JediMaster76 gave you should work. Link to comment Share on other sites More sharing options...
Canderis Posted July 3, 2008 Author Share Posted July 3, 2008 were do i put it i am new to scripting so... Link to comment Share on other sites More sharing options...
TriggerGod Posted July 3, 2008 Share Posted July 3, 2008 put the name of that script (recommended to change it to something like "c_hasitem_"insertitemtaghere"" without the quotes (around either) and put the tag of the item after hasitem) in the "script to fire" (or something to that effect) Link to comment Share on other sites More sharing options...
Canderis Posted July 3, 2008 Author Share Posted July 3, 2008 and thats for k1 right? Link to comment Share on other sites More sharing options...
TriggerGod Posted July 3, 2008 Share Posted July 3, 2008 Link to comment Share on other sites More sharing options...
Canderis Posted July 3, 2008 Author Share Posted July 3, 2008 how would i link it so thet there are 2 options 1 for if they didnt have the item it and 2 if thay did? ps sory trigger if my questions are bugging you =( Edit: can anyone answer my question? ps sory for double post the edit button wasnt working Link to comment Share on other sites More sharing options...
TriggerGod Posted July 3, 2008 Share Posted July 3, 2008 how would i link it so thet there are 2 options 1 for if they didnt have the item it and 2 if thay did? ps sory trigger if my questions are bugging you =( Alright. First, put the name of the script in the "Script that fires..." area that you want spoken when you have that item, and one for when you don't (Don't put in a script) Now, if you want the next line your NPC speaks when he has another (different) item, then do the same thing. Otherwise, try the script c_ismale (I don't know if that works for K1...)/c_isfemale (or something to that effect) Link to comment Share on other sites More sharing options...
Canderis Posted July 3, 2008 Author Share Posted July 3, 2008 ok ty trigger i think i got it now Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.