Mindtwistah Posted March 30, 2008 Share Posted March 30, 2008 How can I make it so that I only can choose a reply once? Example: You go to a NPC and he asks you what you want to buy.You get a lot of options to choose from, but if you choose one you cannot choose that one again next time you talk to him. Link to comment Share on other sites More sharing options...
Mindtwistah Posted April 6, 2008 Author Share Posted April 6, 2008 I'm so sorry for double posting here, please forgive me (and don't give me a ban x|) but I really need an answer and the thread was already on the second page. I promise I won't bump it again Link to comment Share on other sites More sharing options...
Jacob Dakari Posted April 6, 2008 Share Posted April 6, 2008 Basically... it's a script that you have to attach to some part of the dialogue. (Perferably the end, that way that you can get it the first time XD) Yeah... I can't remember the script though... I accidently found it once, but I lost it, probably in my trash can, then deleted. Link to comment Share on other sites More sharing options...
sekan Posted April 6, 2008 Share Posted April 6, 2008 Go to Bif --> 2da --> 2da array and extract gloalcat.2da Open globalcat.2da. Now you can either create your own global or use on from taris. ( If your mod doesn't happen on taris) If you created your own it should look something like this. {Row laber} Name Type 444 Test Number Be sure that that type is number. Now create a script that you attach in the dailog after that line that you want to only happen once. This script shall be in fire when spoken. void main() { SetGlobalNumber("test", 1); } Now create another script and attach it on the dailog line that you want to only happen once. This script shall be placed in the determines availability. int StartingConditional() { int i = GetGlobalNumber("test"); if (i == 0){ return TRUE; } return FALSE; } Now put your changed dialog, these two script and globalcat IF you created your own global in the override. Hope it works. Link to comment Share on other sites More sharing options...
Mindtwistah Posted April 6, 2008 Author Share Posted April 6, 2008 Thank you Sekan! You are sure to be put in the credits when I'm done! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.