Author Topic: VCE Help - "Random Dice"  (Read 2081 times)

There is a way with the VCE Client that is a random percent to have something happen.
I want bots to have a chance to drop gold when killed for my RP, or bosses to drop weaponry.

How could I do this?


Random Dice/Random Variable = Same thing
Explain how to use please.

no no no... use the random variable, do input>target>modvariable"variable"[randomvariable]"max ammount"
the min ammount is what it is already at

So if:

OnActiate>Player>VCEModVariable>Gold 2 11
I would get 2 to 11 coins?

Yeah. And in whole numbers too.

Wait, no. The minimum value needs to be preset. Like VCE_modVariable > Self > [Gold] Set [2] than VCE_modVariable > Self > [Gold] Random [11].

Get it?

Wait, no. The minimum value needs to be preset. Like VCE_modVariable > Self > [Gold] Set [2] than VCE_modVariable > Self > [Gold] Random [11].

Get it?

Eh, I think it will randomize [from 2 to 2] then re randomizing [from 11 to 11] so it is basically forced to be 11.

I need help with this too but like how to make a random chance on successfully chopping a tree.

onactivate>self>vce_modvariable[randomvar]*setrandom*[10]
onactivate>self>vce_ifvariable[randomvar]*equals*[1]
onvariabletrue>player>kill
onactivate>self>vce_modvariable[randomvar]*set*[0]

that will set the "randomvar" to be between 0 and 10, if 1, player dies