Re: DGScripts and Attach

From: Thomas Arp (t_arp@mail1.stofanet.dk)
Date: 05/24/00


> Just pondering, On the documentation pages of DG-Scripts it states that
> ----
> attach vnum id
>
> This command allows a script to attach a trigger (referenced by vnum) to
> anything capable of receiving triggers, by id number. (%self%, %object%,
> and %actor% are examples of i numbers, for use with this command.)
> ----
The help page is a little vague here, but if you check out the 'variables' page it states the field id as a way to get to the id number.
>
> Having seen this we started experimenting, since this can be used for a
> numerous amount of things, so our first script ended up looking like:
>
> attach 1201 %self%
This is the bug - the var you are looking for isn't %self% but %self.id% etc.

Thus,

attach 1201 %self.id%

works.

Welcor of Cruelworld Mud


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT