Poll

Do you see a use for this

Yes
No
you lost me at "Dice"
Blockland Scripting????
Im to idiotic to see any use
I don't really care
There are too many types of dice

Author Topic: Dice coding  (Read 1171 times)

Can someone give me the code for the following:

- A 4 sided die
- A 6 sided die
- A 8 sided die
- A 9 sided die
- A 10 sided die
- A 12 sided die
- A 20 sided die
- And a 10 sided die that counts by 10's (if possible)

And i don't mean Torq coding or whatever, but the Blockland coding Example: Onactivate target:player Output: Kill.... That kind of Blockland coding


more variables, mate.

onActivate > Self > VCE_modVariable > [4Dice] set [1]
onActivate > Self > VCE_modVariable > [4Dice] random [4]

onActivate > Self > VCE_modVariable > [6Dice] set [1]
onActivate > Self > VCE_modVariable > [6Dice] random [6]

onActivate > Self > VCE_modVariable > [8Dice] set [1]
onActivate > Self > VCE_modVariable > [8Dice] random [8]

onActivate > Self > VCE_modVariable > [9Dice] set [1]
onActivate > Self > VCE_modVariable > [9Dice] random [9]

etc.


   [/quote]onActivate > Self > VCE_modVariable > [4Dice] random [4]

onActivate > Self > VCE_modVariable > [6Dice] set [1]
onActivate > Self > VCE_modVariable > [6Dice] random [6]

onActivate > Self > VCE_modVariable > [8Dice] set [1]
onActivate > Self > VCE_modVariable > [8Dice] random [8]

onActivate > Self > VCE_modVariable > [9Dice] set [1]
onActivate > Self > VCE_modVariable > [9Dice] random [9]

etc.
   Thanks

For the 10 sided dice that counts by 10's, do this:

onActivate > Self > VCE_modVariable > [10x10Dice] set [1]
onActivate > Self > VCE_modVariable > [10x10Dice] random [10]
onActivate > Self > VCE_modVariable > [10x10Dice] multiply [10]

Quote
onActivate > Self > VCE_modVariable > [4Dice] set [1]
onActivate > Self > VCE_modVariable > [4Dice] random [4]

What is the other output event, Brick, client, vehicle, player, or minigame?

ok, i cant get it to work... :1

What is the other output event, Brick, client, vehicle, player, or minigame?

To be honest, any of them would work. For now, just use Brick.

Also, don't forget to show the variable via event print.

Quote
VCE_modVariable > [10x10Dice] set [1]

So, do i need the ['s around the number?

no, that is indicating that there is a box for typing in

I have tried the code, and i cant get it to work... how come? I have done the coding and it doesn't work.. yes I DO have VCE_Variables or whatever. Am i missing an add-on?

None.

Download the EventGui_Plus if you haven't already, save your events, and post the save file here.

That, or take a screenshot at what you are doing.