View
previous topic :: View
next topic |
Author |
Message |
Jamie Member
Joined: 23 Feb
2006 Posts: 144 Location:
England Points
|
Posted: Wed May 31,
2006 1:01 pm
Post subject: /roll script |
|
|
I thouhg ti would
tell you the /roll script i just made, im not sure if
there is one on here or not, some one might need it.
Creater:
Jamie
Just add this to the case section bit
of the main.txt file which is located in the Scripts
folder which is in the server folder.
Code: |
Case
"/roll" Call
MapMsg(GetPlayerMap(index), GetPlayerName(index)
& " rolls a " & int(rnd * 1000), 1)
Exit Sub
|
How to use, write /roll
Please tell me if this works as i havent tested
it yet, but i think it should. | |
Back
to top |
|
|
cirko Newcomer
Joined: 09 Mar
2006 Posts: 8
Points
|
Posted: Wed May 31,
2006 2:45 pm
Post subject: |
|
|
Thanks dude it works
| |
Back
to top |
|
Jamie Member
Joined: 23 Feb
2006 Posts: 144 Location:
England Points
|
Posted: Wed May 31,
2006 2:56 pm
Post subject: |
|
|
yey thats good no prob mate | |
Back
to top |
|
CuChulainn Sr. Member
Joined: 13 Apr 2006 Posts:
1009
Points
|
Posted: Tue Jun 20,
2006 9:39 am
Post subject: |
|
|
uhh..isnt it supposed
to be a dice? as far as i know dices only got 6 numbers
:so u might wanna change it to
visual basic
code:
Case
"/roll" Dim
dice dice = Int(rnd * 6) +1 Call MapMsg(GetPlayerMap(index),
GetPlayerName(index) & " rolls a " & dice,
1) Exit
Sub
| |
Back
to top |
|
precrid Newcomer
Joined: 16 Jun
2006 Posts: 24
Points
|
Posted: Tue Jun 20,
2006 10:08 am
Post subject: |
|
|
what does this
do? | |
Back
to top |
|
marsh Sr. Member
Joined: 28 Feb
2006 Posts: 255
Points
|
Posted: Tue Jun 20,
2006 10:20 am
Post subject: |
|
|
precrid
wrote: |
what does this
do? |
int(rnd * 1000)
Rolls a
random number beetween 1 and 1000 | |
Back
to top |
|
pingu "The Bird"
Joined: 23 Feb 2006 Posts:
3400 Location: Antartica Points
|
Posted: Tue Jun 20,
2006 10:27 am
Post subject: |
|
|
Actually, 0 to
999. _________________
| |
Back
to top |
|
Jamie Member
Joined: 23 Feb
2006 Posts: 144 Location:
England Points
|
Posted: Tue Jun 20,
2006 11:09 am
Post subject: |
|
|
CuChulainn wrote: |
uhh..isnt it supposed to be
a dice? as far as i know dices only got 6 numbers
:so u might wanna change it to
visual basic
code:
Case "/roll" Dim
dice dice = Int(rnd * 6) +1 Call
MapMsg(GetPlayerMap(index), GetPlayerName(index)
& " rolls a " & dice, 1) Exit Sub
| nope most games have it so it rolls
between 0-999 | |
Back
to top |
|
Malakai Jr. Member
Joined: 15 Mar
2006 Posts: 69 Location: Addison,
Vermont Points
|
Posted: Tue Jun 20,
2006 11:17 am
Post subject: |
|
|
so if i wanted to do
0-100 i would do 101? _________________ The sky is
falling! But can the sky really fall? *Soon to be released... I
think* | |
Back
to top |
|
pingu "The Bird"
Joined: 23 Feb 2006 Posts:
3400 Location: Antartica Points
|
Posted: Tue Jun 20,
2006 11:24 am
Post subject: |
|
|
Yeah.
If you
wanted 1 - 100, you'd do "Int(100 * rnd) +
1" _________________
| |
Back
to top |
|
Aranshada Moderator
Joined: 07 May 2006 Posts:
907 Location: Probably stealing more
planets Points
|
|
Back
to top |
|
|