16:-swi_module(modPut, []). 17
18:- include(prologmud(mud_header)). 19
21
23baseKB:action_info(actPut(tCarryAble,txtPrepSpatial,tPutTargetAble),"actPut [obj] [onto|inside] [somewhere]").
24
25baseKB:text_actverb(T,V):-vtVerb(V),name_text_cached(V,T).
26baseKB:text_actverb(set,actPut).
27baseKB:text_actverb(place,actPut).
28baseKB:text_actverb(hide,actPut).
29baseKB:text_actverb(display,actPut).
30baseKB:text_actverb(stow,actPut).
31
33baseKB:agent_call_command(Agent,actPut(Other,Prep,Where)):-actPut(Agent,Other,Prep,Where).
34
35
36actPut(Agent,Other,_Prep,Where):-
37 38 localityOfObject(Target,Room),
39 ignore(localityOfObject(Agent,Room)),
40 coerce(Other,tObj,Target),
41 coerce(Where,tPutTargetAble,Location),
42 clr(localityOfObject(Target,Room)),
43 clr(mudAtLoc(Target,_)),
44 to_3d(Location,Where3D),
45 ain(mudAtLoc(Where3D,Location)).
46
47
48:- include(prologmud(mud_footer)).