Hi guys. I'd like an NPC to speak a random phrase (from a big collection of possible phrases) each time a player clicks him.
How can I make it possible?
Hi guys. I'd like an NPC to speak a random phrase (from a big collection of possible phrases) each time a player clicks him.
How can I make it possible?
Nevermind, I figured it out
In the conversation there is a wizard where I can simply pick "Randomness"
The random toggle in the script wizard only sets that particular string to be spoken if a the SC variable is within the random range defined. I think this is more likely what you are looking for:
http://forum.bioware...esting-finding/
Basically, what you do is
When you click on the creature it will now speak a random line from its conversation file.
Note, the example in the other thread is called from the Heartbeat event via the OnUserDefined script. That's because I wanted the NPC to perform random tasks which included spouting off random phrases (i.e. he cusses quite a bit while at work). The script provided below, converts this to a Dialog event and removes the additional coding that modified the NPC's behavior.