Mandalore_The_Great Posted January 21, 2009 Share Posted January 21, 2009 I've made a little mod that edits the .dlg for the escape pod on the Spire(end_pod, I think). I've made it so when a certain dialog branch is gone into, you get a few items.I need a conditional script but don't know how to write it, seeing as I've never needed one Link to comment Share on other sites More sharing options...
HK-42 Posted January 21, 2009 Share Posted January 21, 2009 I've made a little mod that edits the .dlg for the escape pod on the Spire(end_pod, I think). I've made it so when a certain dialog branch is gone into, you get a few items.I need a conditional script but don't know how to write it, seeing as I've never needed one Ive done a similar mod. Instead editing Carths dialog. Link to comment Share on other sites More sharing options...
Mandalore_The_Great Posted January 21, 2009 Author Share Posted January 21, 2009 Do you know how to write this type of script? Link to comment Share on other sites More sharing options...
Stream Posted January 21, 2009 Share Posted January 21, 2009 What kind of conditional script do you need? Link to comment Share on other sites More sharing options...
Mandalore_The_Great Posted January 22, 2009 Author Share Posted January 22, 2009 Just a dialogue conditional. I have an extra dlg option and after I use it I don't want it used again. Link to comment Share on other sites More sharing options...
HK-42 Posted January 22, 2009 Share Posted January 22, 2009 Why would you need conditionals for a dialog option? Especially if it's the escape pod dialog. Just have the branch appear after you say you want to go to Taris. Then move the warp script(should be on the final node in the dialog) To after the items. Don't give a option to return to the endar spire so they can't reselect the item node. If you still need a dialog script I can't help you there. That isn't one of the ones I have. Link to comment Share on other sites More sharing options...
Star Admiral Posted January 22, 2009 Share Posted January 22, 2009 I see two ways of doing this. There's probably more, though. One, you can set a global variable after giving the items. Two, if you plan on giving the player a specific item not found elsewhere on the Endar Spire, you can check for the presence of that item within the player's inventory. For the first method, you'll need to edit the globalcat.2da file. Add a new Boolean variable at the end of the file. The conditional would look something like this, where xxx is the name of whatever you named your new variable. int StartingConditional() { if( GetGlobalBoolean( "xxx" ) == TRUE ) return FALSE; return TRUE; } You'll also need to add the following line to the script that gives the player items. SetGlobalBoolean( "xxx", TRUE ); For the second method, you'll need to make sure that of the items you give the player, there must be at least one that is not normally found on the Endar Spire, or else there might be a chance that the conditional would not work properly. This time, xxx refers to the item's tag. int StartingConditional() { object oItem = GetFirstItemInInventory( GetFirstPC() ); while( GetIsObjectValid( oItem ) ) { if( GetTag( oItem ) == "xxx" ) return FALSE; oItem = GetNextItemInInventory( GetFirstPC() ); } return TRUE; } Hope this helps. EDIT: The method that HK-42 proposed works well too. Saves the hassle of all the scripts. I'll leave my examples just in case you decide to use them. - Star Admiral Link to comment Share on other sites More sharing options...
Mandalore_The_Great Posted January 23, 2009 Author Share Posted January 23, 2009 I just thought it would be a good idea to allow you to be able to look around after. *shrug* thanks SA, I'll save those scripts just in case. Thanks everybody Off topic, but does anyone know where the .tpc for the force power lightning is? I mean the one that covers the caster's hand when it comes out? Link to comment Share on other sites More sharing options...
glovemaster Posted January 23, 2009 Share Posted January 23, 2009 "Fx_Lightning.tpc" in "swpc_tex_tpa.erf" looks to be the one you want. Link to comment Share on other sites More sharing options...
Mandalore_The_Great Posted January 25, 2009 Author Share Posted January 25, 2009 I found that one but when a guy casts it the part that's around his hand is still blue.... Link to comment Share on other sites More sharing options...
glovemaster Posted January 25, 2009 Share Posted January 25, 2009 I think the texture for that is "fx_conjure", you might want to try editing that and seeing if that changes anything. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.