ID:179262
 
Im making a mud text game and i need to get a roll verb in place so i tried making one and this is what i got:


Roll(msg as text)
var/lownumber = input("Whats the lowest number on the dice?","Low") as num
var/highnumber = input("Whats the highest number on the dice?","Low") as num
var/rollednumber = rand([lownumber], [highnumber])**
world <<"\greenROLL::\red On dice with [lownumber]/[highnumber] [usr] rolled a [rollednumber]"

I want to know why this doesnt work. Heres the error i get:
(stars match the errors lines.)
FullMud.dm:33:error: [: expected )**
FullMud.dm:33:error: [: expected }**
FullMud.dm:31:error: location of top-most unmatched {


Plz answer this.
You're only supposed to use brackets within quotes or for a list, take out the brackets and it should work.