Give_Crowns(mob/M in oview(1))
var/N = input("Giving Crowns to [M]")as null|num
if(N > 0)
M.crowns+=N
usr.crowns-=N
For some reason, it gives me a LOAD of errors. I'll paste them here:
ingdomBuild.dm:387:error: Bad input type: N
KingdomBuild.dm:387:error: Bad input type: usr.crowns
KingdomBuild.dm:387:error: input type (usr.crowns) must be atomic (area, turf, obj, or mob).
KingdomBuild.dm:387:error: Bad input type: -=
KingdomBuild.dm:387:error: Bad input type: N
KingdomBuild.dm:387:error: Bad input type: M.crowns
KingdomBuild.dm:387:error: input type (M.crowns) must be atomic (area, turf, obj, or mob).
KingdomBuild.dm:387:error: Bad input type: +=
KingdomBuild.dm:387:error: Bad input type
KingdomBuild.dm:387:error: Bad input type: N
KingdomBuild.dm:387:error: Bad input type: >
KingdomBuild.dm:387:error: Bad input type: if
Either I'm just doing the completely wrong code, or it's something else. Please help!
(Also! From Give_Crowns to usr.crowns-=N, is only lines 381-385. The error messages go to my next areas of code where I define some building verbs for mobs.)