Made @script command without giving an object warning about global scripts.
This commit is contained in:
parent
e449c3391f
commit
5a811a2d89
1 changed files with 4 additions and 0 deletions
|
|
@ -2211,6 +2211,10 @@ class CmdScript(MuxCommand):
|
||||||
caller.msg(string)
|
caller.msg(string)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not self.lhs:
|
||||||
|
caller.msg("To create a global script you need {w@scripts/add <typeclass>{n.")
|
||||||
|
return
|
||||||
|
|
||||||
obj = caller.search(self.lhs)
|
obj = caller.search(self.lhs)
|
||||||
if not obj:
|
if not obj:
|
||||||
return
|
return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue