Skip to content

WLD – world manipulation functions

Wld_InsertVob

Inserts a vob into the world at the position of a given waypoint, freepoint, or another vob.

func void Wld_InsertVob(var string vobName, var string pointName) {};
  • vobName – name of vob in the game world
  • pointName – name of waypoint, freepoint or vob in the game world
Example usage
Wld_InsertVob("SECRET_CHEST", "WP_START");

Wld_InsertMob

Inserts a static interactive object (mob) into the world at a given location.

func void Wld_InsertMob(var string vobName, var string pointName) {};
  • vobName – name of vob in the game world
  • pointName – name of waypoint, freepoint or vob in the game world
Example usage
Wld_InsertMob("SIGNPOST", "WP_START");

Wld_InsertMobInter

Inserts an interactive mob (e.g., cauldron, forge) into the world at a given location.

func void Wld_InsertMobInter(var string vobName, var string pointName) {};
  • vobName – name of vob in the game world
  • pointName – name of waypoint, freepoint or vob in the game world
Example usage
Wld_InsertMobInter("EDDA_CAULDRON", "WP_START");

Wld_InsertMobContainer

Inserts a container mob (e.g., chest) into the world at a given location.

func void Wld_InsertMobContainer(var string vobName, var string pointName) {};
  • vobName – name of vob in the game world
  • pointName – name of waypoint, freepoint or vob in the game world
Example usage
Wld_InsertMobContainer("CAVALORN_CHEST", "WP_START");

Wld_InsertMobFire

Inserts a fire mob (e.g., campfire, torch) into the world at a given location.

func void Wld_InsertMobFire(var string vobName, var string pointName) {};
  • vobName – name of vob in the game world
  • pointName – name of waypoint, freepoint or vob in the game world
Example usage
Wld_InsertMobFire("CAVALORN_CAMPFIRE", "WP_START");

Wld_InsertMobDoor

Inserts a door mob into the world at a given location.

func void Wld_InsertMobDoor(var string vobName, var string pointName) {};
  • vobName – name of vob in the game world
  • pointName – name of waypoint, freepoint or vob in the game world
Example usage
Wld_InsertMobDoor("BOSPER_HOUSE_DOOR", "NW_CITY_BOSPER_HOUSE_ENTRANCE");

Wld_InsertMobBed

Inserts a bed mob into the world at a given location.

func void Wld_InsertMobBed(var string vobName, var string pointName) {};
  • vobName – name of vob in the game world
  • pointName – name of waypoint, freepoint or vob in the game world
Example usage
Wld_InsertMobBed("BOSPER_BED", "NW_CITY_BOSPER_HOUSE_BED");

Wld_InsertVobPos

Inserts a vob into the world at exact coordinates.

func void Wld_InsertVobPos(var string vobName, var int posX, var int posY, var int posZ) {};
  • vobName – name of vob in the game world
  • posX – X coordinate in the game world
  • posY – Y coordinate in the game world
  • posZ – Z coordinate in the game world
Example usage
Wld_InsertVobPos("SECRET_CHEST", 0, 0, 0);

Wld_InsertMobPos

Inserts a mob into the world at exact coordinates.

func void Wld_InsertMobPos(var string vobName, var int posX, var int posY, var int posZ) {};
  • vobName – name of vob in the game world
  • posX – X coordinate in the game world
  • posY – Y coordinate in the game world
  • posZ – Z coordinate in the game world
Example usage
Wld_InsertMobPos("SIGNPOST", 23120, 1400, 16795);

Wld_InsertMobInterPos

Inserts an interactive mob into the world at exact coordinates.

func void Wld_InsertMobInterPos(var string vobName, var int posX, var int posY, var int posZ) {};
  • vobName – name of vob in the game world
  • posX – X coordinate in the game world
  • posY – Y coordinate in the game world
  • posZ – Z coordinate in the game world
Example usage
Wld_InsertMobInterPos("EDDA_CAULDRON", 16795, 1400, 23120);

Wld_InsertMobContainerPos

Inserts a container mob into the world at exact coordinates.

func void Wld_InsertMobContainerPos(var string vobName, var int posX, var int posY, var int posZ) {};
  • vobName – name of vob in the game world
  • posX – X coordinate in the game world
  • posY – Y coordinate in the game world
  • posZ – Z coordinate in the game world
Example usage
Wld_InsertMobContainerPos("CAVALORN_CHEST", 16795, 23120, 1400);

Wld_InsertMobFirePos

Inserts a fire mob into the world at exact coordinates.

func void Wld_InsertMobFirePos(var string vobName, var int posX, var int posY, var int posZ) {};
  • vobName – name of vob in the game world
  • posX – X coordinate in the game world
  • posY – Y coordinate in the game world
  • posZ – Z coordinate in the game world
Example usage
Wld_InsertMobFirePos("CAVALORN_CAMPFIRE", 16795, 23120, 1400);

Wld_InsertMobDoorPos

Inserts a door mob into the world at exact coordinates.

func void Wld_InsertMobDoorPos(var string vobName, var int posX, var int posY, var int posZ) {};
  • vobName – name of vob in the game world
  • posX – X coordinate in the game world
  • posY – Y coordinate in the game world
  • posZ – Z coordinate in the game world
Example usage
Wld_InsertMobDoorPos("BOSPER_HOUSE_DOOR", 1400, 16795, 23120);

Wld_InsertMobBedPos

Inserts a bed mob into the world at exact coordinates.

func void Wld_InsertMobBedPos(var string vobName, var int posX, var int posY, var int posZ) {};
  • vobName – name of vob in the game world
  • posX – X coordinate in the game world
  • posY – Y coordinate in the game world
  • posZ – Z coordinate in the game world
Example usage
Wld_InsertMobBedPos("BOSPER_BED", 1400, 16795, 23120);

Wld_RemoveVob

Removes a specified vob from the game world.

func int Wld_RemoveVob(var string vobName) {};
  • vobName – name of vob in the game world
  • returnTRUE if the vob has been correctly removed, FALSE otherwise
1
2
3
4
if (Wld_RemoveVob("CHEST_LOBART"))
{
    Print("Vob successfully removed");
};

Wld_GetPlayerPortalRoom

Gets name of portal room where the player currently is.

func string Wld_GetPlayerPortalRoom() {};
  • return - name of player's portal room
Example usage
1
2
3
4
5
6
7
var string playerPortalRoom;
playerPortalRoom = Wld_GetPlayerPortalRoom();

if (Hlp_StrCmp(playerPortalRoom, "hütte2"))
{
    //...
};

Note

You can also use Npc_GetPortalRoom instead.