Use x item x times?

Flanders

New member
Is there a way to tell Mafia to, say, use 60 d12 100 times?

Since the forums won't let me search for "d12" (too short), I'm having a little trouble finding info. I'd really rather not type "use 60 d12" over and over if I can help it.

Thanks!
 

Flanders

New member
I'm sorry, that wasn't very helpful at all. Was there a script in there I was supposed to download? Were those bits of text I can copy-and-paste into the CLI?

I'm not that much of a coder, I'm afraid. I can run scripts, but that took some education.

need moar, plz.
 

slyz

Developer
Put this in Mafia's /scripts folder, and call it either from the gCLI by typing "call d12.ash" or from the Scripts menu.

Mafia will ask you to input a value for num_dice (enter the number of dice to throw), then it will ask a value for num_rolls (enter the number of times you want to throw the dice).

As a bonus, it will stop if you get the bullseye.

For your information, I copied the code posted by Veracity that Theraze linked to, modified it slightly so you could specify the number of throws, and saved it in a .ash file with notepad.
 

Attachments

  • d12.ash
    321 bytes · Views: 41

Flanders

New member
Thank you very much!

EDIT: Got the trophy about 30 seconds after I downloaded the script. You guys are awesome.
 
Last edited:
Top