Find
You are looking at the action called change
change {thing1} to {thing2}
Changes an objects field to something else.
A thing describes an objects fields and you have to name them correctly like this
the mouse's name
.
Thing2 is usually a string of text "gilbert" or a number 123 however it can be another object's field.
To blank a field, change it to "nothing" eg:
create a frog called gilbert
change the frog's name to nothing
This is an advanced command which may cause untold damage if used incorrectly.
Created by
wolis
, last updated 14 Apr 2008
Code
get $thing1,$rel,$thing2 in $loc;
if $rel eq 'to' then checkpw else fail;
##checkpw:
if $pw eq "0--m" then update else check2;
##check2:
if $pw like $target's pw then update else itslocked;
##update:
if $thing2 = 'nothing' then blankthing2;
set $thing1 to $thing2;
say 'change',"[$actor] changed $cmd_text";
look $loc;
##itslocked:
say 'changefail',"[$actor] could not change $cmd_text because it is locked";
##fail:
say 'changefail',"[$actor] could not change $cmd_text";
##blankthing2: $thing2 = '';