mob/training
Int
name = "{NPC}Log"
icon='training Icons.dmi'
icon_state="log"
npc = 1
verb
Train()
set category = "Taaining"
set src in oview(1)
alert("[usr] Would you like to start training)", text) in list ("Yes","No"))
if("Yes")
switch(input("Get Ready?", text) in list ("Punch","Kick","Block"))
if(prob(7.5))
if("Punch")
usr.attack += usr.random
usr.mattack += usr.random
if(prob(7.5))
if("Kick")
usr.random = rand(50,81)
usr.reiatsu += usr.random
if(prob(7.5))
if("Block")
usr.random = rand(100,310)
usr.defence += usr.random
Problem description:
OK I revised the code to give the usr a prob of getting Punch Kick or block but now im Getting this error
Input Train.dm:29:error: ): expected }
Input Train.dm:27:error: location of top-most unmatched {