@force
@force
Section titled “@force”@force[/noeval][/inline] <object>=<action list>
This command forces <object> to queue the given action list, as if the object had entered the action list itself. You must control <object> to @force it. @force is useful for manipulating puppets.
Output: with /inline or /inplace, the output of the last command run; queued, nothing. See command output.
If /inline is given, <object> will run <action list> now, instead of being queued for execution later. By default, <action list> will be able to see/alter q-registers in the calling action list, and any @breaks in <action list> will also stop the calling action list. The following switches alter that behaviour:
- /nobreak: @breaks in
<action list>will not stop the calling action list. - /localize: q-registers will be saved before
<action list>is run, and restored after. - /clearregs: q-registers will all be reset before
<action list>is run. You’ll usually want to use /localize as well with this.
@force/inplace is an alias for @force/inline/nobreak/localize.
@force can be abbreviated as
<dbref> <action list>
Evaluation and spoofing
Section titled “Evaluation and spoofing”Normally, the action list is evaluated twice - once when @force is run, and again when <object> runs the action list. If the /noeval switch is given, <action list> is not evaluated until it is run by <object>.
Examples
Section titled “Examples”> @create LackeyCreated: Object #103> @force Lackey=go eastLackey goes east.Lackey has left.> @force #103=page Cyclonus=Hi there!Lackey pages: Hi there!> #103 page Cyclonus=WheeLackey pages: WheeInline execution
Section titled “Inline execution”Normally, @force creates a new queue entry. @force/inline does not.
Examples
Section titled “Examples”> @create LackeyCreated: Object #103> &order me=$order *:say Lackey, %0 ; @force Lackey=%0 ; say Done?> order pose salutes!You say, "Lackey, pose salutes!"You say, "Done?"Lackey salutes!> &order me=$order *:say Lackey, %0 ; @force/inline Lackey=%0 ; say Done?> order pose salutes!You say, "Lackey, pose salutes!"Lackey salutes!You say, "Done?"::: seealso