Markmid Posted April 13, 2009 Share Posted April 13, 2009 How do I make a conversation with a Random Percent chance built into it, i've tried a simple GetRandomPercent <= 50 on one topic and a GetRandomPercent > 50 on the other, in the topic conditions, however nothing was visible. Is there anyway to make a random conversation variable, which is randomized every time an NPC initiates dialogue with the player or another actor? I guess that is what I am looking for, a function that fires on each dialogue, which I can place into a script. I need a random dialogue function, to stop the dialogue from getting stale on my companion. Thanks for the help! I will keep this post updated with what I have tried set questID.questvariableID to rand 1 100 Rand not recognised set questID.questvariableID to random 100 Random not recognised Link to comment Share on other sites More sharing options...
Markmid Posted April 13, 2009 Author Share Posted April 13, 2009 Update: Dialogue randomising is working now using the menumode code below but now his follow script has broken I don't know if its related, so alternate ideas are still appreciated on the central problem. I would prefer not to have code related to menus and such if I can do this through another method -- Found one that compiled but its not having the desired effect yet, my idea was to put this in all my characters greetings scripts to randomize the subsequent text. set questID.questvariableID to ( GetRandomPercent % <2..50> ) + 1 set variable to GetRandomPercent Will supposedly give a 1 - 100 value but again the problem is where to put this to get the greeting text randomised. begin MenuMode 1009 set variable to GetRandomPercent end MenuMode 1009 is the dialogue menu, this works to randomize dialogue if you put it in the actors script file. Anyone have any better ideas while I try and get this one working? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.