merrie has asked for the wisdom of the Perl Monks concerning the following question:
This script added without any errors, it recompiled fine. So to call this I just typed dice100 in my telnet client. Then I get dice100 that is all. Some info about the script: $me identifies the user, it is used to call subroutines. To print to a room you have to use the &tellRoom line. If you need anymore info on this script to aid me please let me know. Thank you.subdice100 { my($me,)=@_; #A random number between 1 and 100, inclusive. $value = int(rand(100 +1); #Announce result to room. &tellRoom($objects[$me]{"location:},$me,$objects[$me]{"name"} "rolle +d $value.");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding script to this base script?
by Corion (Patriarch) on Jan 05, 2008 at 16:29 UTC | |
|
Re: Adding script to this base script?
by Cyrnus (Monk) on Jan 05, 2008 at 17:50 UTC | |
|
Re: Adding script to this base script?
by spx2 (Deacon) on Jan 05, 2008 at 20:12 UTC | |
by chromatic (Archbishop) on Jan 06, 2008 at 03:27 UTC |