I want to make a dice system were there dice apear in the text box when they are rolled; for example when a person is a certain level they will be able to roll up to 11 dice; I want them to show up like this-
d1,d2,d3,d4,d5
like that; how would I make them show up without a bunch of variables.
ID:168655
Sep 12 2005, 4:11 pm
|
|
In response to Mega fart cannon
|
|
thanks but, the question isnt how to make it roll; but how to make all 11 of them to apear...
|
In response to Lifehunter
|
|
I'm guessing what you do is repeat the process
mob/verb/Dice_Roll() |
In response to Mega fart cannon
|
|
You need a for loop, I think.
But I am not familuar with that coding out of the loops I use, sorry. |
In response to Developous
|
|
Im not sure, but I think that a while loop might be a little better here. Give me some time to figure it out, but I think I can help you. Unless someone else beats me to the punch.
Will edit soon. [Edit] obj/dice This will output every dice that you roll, however it does not account for people rolling more than 11 dice. I'll leave that one for you figure out, its pretty simple though should be easy enough. Anywho. The only major drawback that I can see is that this method draws them all on their own line. Mega fart cannons method will display them all on the same line, yet is a little more variable intensive. Some combination of the two would probably be the most effective. Hope that helps. Let me know if you have any questions. |
In response to Madcrackfiend
|
|
mob/verb/DiceRoll() You just need to make sure that you have a mob/var named lvl, and that you have a dice object with it's icon pointing at a file with a set of icon_states numbered 1-x. |
That should give you a hint on how to do it.