Page 1 of 1

activate an object based on random number

Posted: Tue Apr 27, 2021 2:54 am
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

Re: activate an object based on random number

Posted: Tue Apr 27, 2021 8:45 am
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.