Randomize Dialogue in Scene Action

Post » Thu Apr 18, 2013 2:25 pm

Need help with randomizing a dialogue scene action.

I have 3 dialogues in one action and I want the actor to choose one randomly. I've flagged them all as random but it still only chooses the first one.

If I used a GetRandomPercent on each one it wouldn't work would it? Would it call a new random percent for each dialogue?

I thought about using a Quest Variable as a random integer called on each reset of the quest. And then use a condition getquestvariable on each dialogue. But I don't know how to do that I'm not good at scripting, I keep getting compiling errors.

Int myvariable auto conditional

Event OnReset()
myvariable = Utility.RandomInt(1,4)
EndEvent

I get no viable input errors. Any ideas of what I can do instead? Thanks
User avatar
Ricky Rayner
 
Posts: 3339
Joined: Fri Jul 13, 2007 2:13 am

Return to V - Skyrim