Dice Scene
#1
IXFURUS DICE SCENE

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


INTRODUCTION

In a nutshell, this script is used to call a scene where the player can roll dice. The scene runs off of in game variables, and sends the result to another game variable which can be used at the creator's discretion.

FEATURES
Though the Dice Scene has its limitations, it can produce rolls of up to and over 1000.
The ability to change the scene's colors, backgrounds and texts make it very customizable

SCREENSHOTS
[Image: DicePic.jpg]

HOW TO USE
To use the script, paste in the script section below materials and above main. Then, set up the variables found in the module before calling the scene. To call the scene, put "$scene = Scene_Dice.new" in a script command from an event, common event or script. You can find the tab for this on the third page of the Event Commands. The Dice Scene is able to create simple rolls, like 1 die, to extreme rolls like
((6D6x8D6)+4D6)+12. There is a minimum of one die and a maximum of 10 dice. There is tons of customization options in the module, from SoundEffects to TextDisplay to colors and icons. To use the scene, you merely need the script, pasted as explained above, and the iconset which you'll find in the demo, as the dice which are drawn are actually icons. The idea behind the script was to give the old school DnD fans out there a way to duplicate dice rolling chance rolls, but I'm sure there are many ways to use it!

DEMO
IXFURUS SCENE DICE

SCRIPT
Just pick up the Demo above.

FAQ
The scene calls and the values are added, but I can't see the dice! What does I do?
Obviously, you've copied/pasted the script from the demo to another project. Just import the Iconset over from the demo and it should show up.

Ixfuru! I called for 75 dice and it only showed 10! What gives?
You can only have a dice count of 10 or less on any roll and at least 1 on the initial roll. So, if you set your dice to be more than 10, the script will change your dice to 10 for you. Understand, you can multiply something by 75, or add 75, you just can't roll 75 dice.

Dangit, man! I can't seem to get the multiplier or roller to work properly. What is I doin wrong?
You is not setting the switch for the multiplier or adder pre-roll. Unless you turn the "MIR", "AIR" or "BIR" switches on pre-roll, the script will merely add the amount you set in the given variables instead of calling for a roll.

But what's an AIR switch?
You should spend some time and read the instructions in the script. It explains a lot of things, especially easy things like that.

I got m' doubler bonus set to true, but it don't double! What can do?
In order to get the doubler bonus, two things must be true. You must have the enable Doubler Bonus in the switch set to true, and then you must have at least the amount of dice you set as the minimum in the script to roll and come out the same value. In other words, three sixes Angry or four fives, etc. I have to admit, I haven't been able to playtest this aspect of the script that much, because, well it's hard to get all the dice to end up on the same side when you're rolling at least three dice. So, here's what you do. If you roll a roll which calls for a doubler and don't get it, press CTRL+PrintScreen and take me a screenshot. Post it, and I'll look into fixing it. I did it once, but I can't say for sure there isn't a bug in the system. There's just no way to tell.

CREDITS
I guess I should thank whoever's iconset this is I used. But I honestly think it has icons from a number of places on it. So, if you know who made it, let me know and they'll receive credit. I downloaded the thing a long time ago when I didn't keep my RPG stuff organized, so I'm at a loss as to who its creator was. For now, we'll say, "WHOEVER CREATED THE ICONSET".

I also wanna credit HungrySnake who's been a real help in scripting in general lately.

AUTHORS NOTES
"A FINAL WORD"
}




Users browsing this thread: 1 Guest(s)