How to execute an object's description script from code.
killalao
19 Apr 2024, 15:48if I put "msg(look.object)" it just messages the scripts code without executing it.
mrangel
19 Apr 2024, 19:49If it's a text description, you would do:
msg (object.look)
If it's a script, you would do:
do (object, "look")
If you're not sure which it is because your script can be used on different objects, you would do what the "look at" command itself does:
if (HasString (object, "look")) {
msg (object.look)
}
else if (HasScript (object, "look")) {
do (object, "look")
}