Find
You are looking at a command called script
script {object}
You can script an object to react to things happening around it, like somone arriving o it being pushed etc..
read the scripting manual
to learn how to script objects.
Scripts can not contain these cowmands:
- set, msg, save, get, code, mode, export, include, delete.
Any lines containing these will be deleted from the script before saving.
Scripts can only changes these elements of an object:
- pose, colour, extra, slot.
Created by
wolis
, last updated 01 Jan 2012
Code
get $target in $loc;
if $target > 0 then editit else fail;
##editit:
var $isscript to 1;
var $caption to 'script';
var $fld to 'code';
say 'edits',"[$actor] starts to script [$target]";
mode textbox;
##fail:
var $click_cmd to 'scrpt';
var $desc_intro to 'Click on an object to edit its script:
';
msg $loc,$actor,$actor,0,'force',"force:look $loc,list";