lua/wrappers/game/lua_character.cpp
/**
	 * Sets the amount of experience this character has.
	 * If the amount of experience is enough to level up the character,
	 * they will be leveled up to the appropriate level.
	 * A characters level cannot go down again, even if their experience is
	 * too low for their current level.
	 * If the character has a max level and the experience is more than 
	 * the characters max level experience, it will be capped at that amount.
	 * <br>
	 * It is generally recommended to simply add experience to a character.
	 * @param integer experience The amount of experience to set on this character.
	 * @returns am.character This
	 */
Sets the amount of experience this character has.
If the amount of experience is enough to level up the character,
they will be leveled up to the appropriate level.
A characters level cannot go down again, even if their experience is
too low for their current level.
If the character has a max level and the experience is more than
the characters max level experience, it will be capped at that amount.

It is generally recommended to simply add experience to a character.
@param integer experience The amount of experience to set on this character.
Sets the amount of experience this character has . If the amount of experience is enough to level up the character they will be leveled up to the appropriate level . A characters level cannot go down again even if their experience is too low for their current level . If the character has a max level and the experience is more than the characters max level experience it will be capped at that amount . It is generally recommended to simply add experience to a character . @param integer experience The amount of experience to set on this character .
int Character_experience(lua_State *lua)
	{
		Character *obj = castUData<Character>(lua, 1);
		if (obj)
		{
			if (lua_gettop(lua) == 1)
			{
				lua_pushinteger(lua, obj->getExperience());
				return 1;
			}
			else if (lua_isnum(lua, 2))
			{
				obj->setExperience(lua_tointeger(lua, 2));
				lua_first(lua);
			}
			return LuaState::expectedArgs(lua, "experience", "integer experience");
		}
		return LuaState::expectedContext(lua, "experience", "am.character");
	}
int Character_experience ( lua_State * lua ) { Character * obj = castUData < Character > ( lua , 1 ) ; if ( obj ) { if ( lua_gettop ( lua ) == 1 ) { lua_pushinteger ( lua , obj -> getExperience ( ) ) ; return 1 ; } else if ( lua_isnum ( lua , 2 ) ) { obj -> setExperience ( lua_tointeger ( lua , 2 ) ) ; lua_first ( lua ) ; } return LuaState :: expectedArgs ( lua , " " , " " ) ; } return LuaState :: expectedContext ( lua , " " , " " ) ; }
Sets the amount of experience this character has.
Sets the amount of experience this character has .