def create_world(self): """Creates the world used by this application""" self.world = RPGWorld(self) GameVariables.add_callback(self.update_game_variables) ScriptingSystem.register_command("set_global_lighting", self.set_global_lighting, _SCRIPTING_MODULE) ScriptingSystem.register_command("get_global_lighting", self.get_global_lighting, _SCRIPTING_MODULE) ScriptingSystem.register_command("is_location_in_region", self.is_location_in_region, _SCRIPTING_MODULE) ScriptingSystem.register_command("is_agent_in_region", self.is_agent_in_region, _SCRIPTING_MODULE)
def register_script_commands(module=""): """Register commands for this module""" from fife_rpg.systems.scriptingsystem import ScriptingSystem ScriptingSystem.register_command("knows", knows, module) ScriptingSystem.register_command("add_knowledge", add_knowledge, module)
def register_script_commands(module=""): """Register commands for this module""" from fife_rpg.systems.scriptingsystem import ScriptingSystem ScriptingSystem.register_command("move", approach_and_execute, module)