activate an object based on random number

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Amine33
Posts: 22
Joined: Mon May 21, 2018 4:48 pm

activate an object based on random number

Post by Amine33 »

hi tony i hope you doing well
__________________________________________________
i have a button that randomly show a number from 1 to 100 in the screen
let's assume that i pressed the button and the number was 55
what i want is the following :

if the number was 55 (Active the object 55).
but if i pressed the button and the number was bigger than 55
(ex 80.66.74) inactive the object 55 and active for example (the object74).


but if the number was lower than 55 (ex44.12.33) keep the object 55 active

how can i do that with DS


i know my question look wierd...but i tried some ways but with no success
and thank you
User avatar
Tony Li
Posts: 22049
Joined: Thu Jul 18, 2013 1:27 pm

Re: activate an object based on random number

Post by Tony Li »

Hi,

That sounds like something outside the scope of the Dialogue System. You should probably write a custom script, or use visual scripting such as PlayMaker, to do that.

It's possible to do it with a Dialogue System conversations, but it's probably not ideal. To do it in DS, you can set a variable to a random value. If you really must do it in DS, please post some mock screenshots of what it should look like. I can provide suggestions.
Post Reply