Author Topic: Fudgedice script for mIRC  (Read 1639 times)

Offline surarrin

  • Participant
  • *
  • Posts: 66
  • Who splattered red paint on my boat?
    • View Profile
Fudgedice script for mIRC
« on: May 01, 2010, 04:37:17 PM »
We're running our game via IRC, so I thought I'd put this up for people who intend to use irc to save you guys the trouble.

Code: [Select]
on *:TEXT:!roll*:#:{
  set %dice 4
  set %sides 6
  set %i 0
  set %total 0

  while (%i < %dice) {
    inc %i 1
    %roll = $rand(1,%sides)
    if %roll = 1 { set %roll - }
    if %roll = 2 { set %roll - }
    if %roll = - { dec %total }
    if %roll = 3 { set %roll o }
    if %roll = 4 { set %roll o }
    if %roll = 5 { set %roll + }
    if %roll = 6 { set %roll + }
    if %roll = + { inc %total }
    set %roll $+ %i %roll
  }
  msg $channel 4Roll: %roll1 %roll2 %roll3 %roll4 4Total: %total
}

« Last Edit: May 01, 2010, 04:46:18 PM by surarrin »

Offline Falar

  • Conversationalist
  • **
  • Posts: 714
  • A veritable treasure trove
    • View Profile
    • Falar + Sha
Re: Fudgedice script for mIRC
« Reply #1 on: May 01, 2010, 06:30:54 PM »
What network and channel, if I may be so bold? I RP mainly on IRC (I run a homebrew game with some friends right now) and I'd love to see how this plays in IRC.
Lead Creator of Terror in the Twin Cities - winner of the 2010 Borden DFRPG Award for Best Location

Offline surarrin

  • Participant
  • *
  • Posts: 66
  • Who splattered red paint on my boat?
    • View Profile
Re: Fudgedice script for mIRC
« Reply #2 on: May 02, 2010, 02:54:34 AM »
A private network unfortunately. However if you'd like I'll post the logs on here once we've done our first session. (The GM is busy with exams currently)