FED2 ADVANCED WORKBENCH
SCRIPT REFERENCE

CREATEOBJECT

Creates an object or mobile from an abstract object . Objects can be created in a room or in the player's inventory.

Parameters:
Where - "inventory" means the object will be placed in the player's inventory (the default); "room" that it will be placed in the room the player is in.
Home Map - The name of the map the abstract template is in. Defaults to "home", otherwise you will need to use the full pathway ie newstar/bodville.
ID - the ID of the abstract object to be used as a template.

If the object is to appear in the room then these parameters are also needed:
Dest Map - the map where the object is to be placed. Defaults to "current". If you change this to anything else you will need the full pathname.
Dest Location # - the location number where the object is to be placed.

Examples:
createobject script: where inventory: home-map home: id flower_ab
createobject script: where inventory: home-map newstar/bodville: id sausage_ab
createobject script: where room: home-map home: id flower_ab: dest-map current: dest-loc 567
createobject script: where inventory: home-map home: id statue_ab: dest-map newstar/bodville: dest-loc 543

More scripts