ID:166222
 
I'm working on the first Bo-BoBo Byond game ever, and I'm having a little trouble with the level up system. This is my code: mob/proc/Levelcheck
if usr.exp >=1000
usr.exp = 0
usr.level+1
usr.toughness+"1d3"
usr.max_vitality+"1d3"
usr.protection+"1d3"
usr.precision+"1d3"
usr.swiftness+"1d3"
usr.recovery+"1d3"
usr.max_endurance+"1d3%"
"You have gained a level!"

My error message is: dm:220:error: missing condition, for this line: if usr.exp >=1000. Any help?
if(src.exp>=1000)
In response to Zythyr
Thanks!
In response to Snapboy300
Also meant to say, replace usr with src. Don't put usr in procs.
In response to Snapboy300
Grrrrrr Now I have another error, in a completely different place! I hate how dreamseeker creates coding errors in places completely Irrelevant to your line of code. Here's my code:

// DM Environment file for BoBoBo ONLINE!.dme.
// All manual changes should be made outside the BEGIN_ and END_ blocks.
// New source code should be placed in .dm files: choose File/New --> Code File.

// BEGIN_INTERNALS
// END_INTERNALS
// BEGIN_FILE_DIR
#define FILE_DIR .
// END_FILE_DIR

// BEGIN_PREFERENCES
// END_PREFERENCES

// BEGIN_INCLUDE
#include "Bobobo online!.dm"
#include "Tuitorial Grove.dmp"
// END_INCLUDE


And my Errors:

BoBoBo ONLINE!.dme:15:error: expected expression
BoBoBo ONLINE!.dme:19:error: unbalanced }
In response to Snapboy300
You forgot to close a tag somewhere.