If you want to download the scripts, please use this link: https://github.com/nPoseTeam/nPose-LM-LG-chains-plugin/releases/latest The master branch may or may not contain the latest released version.
Allows you to use Lockmeister and Lockgueard particle chains.
based on plugin_lockmeister_lockguard v0.01
written by xandrinex
modified by pfil payne, Leona (slmember1 Resident)
- Include the
nPose LM/LG chains plugin
script in the main build. Include thenPose SAT/NOTSAT plugin
script in the main build (if it doesn't already exists) - Add the chain points also to the build.
- Make the description of each chain point unique so they can be referred to in nPose notecard. In this example we use
leftloop
andrightloop
. - Make a
SET
card and useSATMSG
(nPose V3.00 or older) orON_SIT
(nPose V3.10 or newer) for telling the plugin to send chains and where they should go when someone sits this seat.
SATMSG
in this form:SATMSG|2732|leftloop~lcuff~rightloop~rcuff
(nPose V3.00 or older)
ON_SIT
in this form:ON_SIT|seatnumber|CHAINS_ADD|leftloop~lcuff~rightloop~rcuff
(nPose V3.10 or newer)- Replace "seatnumber" with the number of the seat
- The arb num 2732 is what the chains plugin is looking for and is interpreted as a command to send chains.
- The next is a list of chain point~cuff point matching pairs. In the above
SATMSG
the pairs are as follows: leftloop to lcuff, and rightloop to rcuff. - Chains are drawn from the chain point to the designated cuff point (or vice versa). See references below for a list of cuff point names.
- Add a
NOTSATMSG
(nPose V3.00 or older) orON_UNSIT
(nPose V3.10 or newer) to drop chains when this person stands or changes pose sets.
NOTSATMSG
in this form:NOTSATMSG|2733|leftloop~rightloop
(nPose V3.00 or older)
ON_UNSIT
in this formON_UNSIT|seatnumber|CHAINS_REMOVE|leftloop~rightloop
(nPose V3.10 or newer)- Replace "seatnumber" with the number of the seat
- The arb num 2733 is what the chains plugin is looking for and is interpreted as a command to stop chains.
- The next is a list of chain point. In the above
NOTSATMSG
the plugin simply stops the chains at the chain points listed.
I didn't recommend using it with a nPose Version older than nPose V3.10.
- Include the
nPose LM/LG chains plugin
script in each prop intended to be used for chain points along with thenPose prop
plugin. - Add the chain points also to the props if not using the root prim of the prop as the chain point.
- Make the description of each chain point unique so they can be referred to in nPose notecard. In this example we use
leftloop
andrightloop
. - Make a
SET
card and useSATMSG
(nPose V3.00 or older) orON_SIT
(nPose V3.10 or newer) for telling the plugin to send chains and where they should go when someone sits this seat.
SATMSG
in this form:SATMSG|2732|leftloop~lcuff~rightloop~rcuff
(nPose V3.00 or older)
ON_SIT
in this formON_SIT|seatnumber|TIMER|chains|1|LINKMSG|2732|leftloop~lcuff~rightloop~rcuff
(nPose V3.10 or newer)- Replace "seatnumber" with the number of the seat
- The arb num 2732 is what the chains plugin is looking for and is interpreted as a command to send chains.
- The next is a list of chain point~cuff point matching pairs. In the above
SATMSG
the pairs are as follows: leftloop to lcuff, and rightloop to rcuff. - Chains are drawn from the chain point to the designated cuff point (or vice versa). See references below for a list of cuff point names.
- The Timer is necessary to make sure that the Prop is fully rezzed before we are sending messages to it. You may change the name of the timer or the time.
- Add a
NOTSATMSG
(nPose V3.00 or older) orON_UNSIT
(nPose V3.10 or newer) to drop chains when this person stands or changes pose sets.
NOTSATMSG
in this form:NOTSATMSG|2733|leftloop~rightloop
ON_UNSIT
in this formON_UNSIT|seatnumber|LINKMSG|2733|leftloop~rightloop
(nPose V3.10 or newer)- Replace "seatnumber" with the number of the seat
- The arb num 2733 is what the chains plugin is looking for and is interpreted as a command to stop chains.
- The next is a list of chain point. In the above
NOTSATMSG
the plugin simply stops the chains at the chain points listed.
- Be sure to add the appropriate
PROP
lines in theSET
card to rez these chain point props.
- Add a LINKMSG line:
LINKMSG|2734|Parameters (separated by ~)
(nPose V3.00 or older)CHAINS_CONFIG|Parameters (separated by ~)
(nPose V3.10 or newer)
With Parameters:
texture=
particle texture as uuid (default value: 245ea72d-bc79-fee3-a802-8e73c0f09473 (metal chain))xsize=
particle X size as float (0.03125 to 4.0) (default value: 0.07)ysize=
particle Y size as float (0.03125 to 4.0) (default value: 0.07)gravity=
particle gravity as float (default value: 0.03)life=
particle life time as float in seconds (default value: 1.0)red=
red part of the particle color as float (0 to 1) (default value: 1.0)green=
green part of the particle color as float (0 to 1) (default value: 1.0)blue=
blue part of the particle color as float (0 to 1) (default value: 1.0)
- This Plugin is expecting all Prim Descriptions to be unique. It will warn the owner when any are not unique. If the description isn't used as a Leash Point Name the warning can be ignored.
- If you use nPose V3.10 or newer AND the
nPose LM/LG chains plugin
is placed into your main object, thennPose LM/LG chains plugin
will register 3 new commands within nPose:CHAINS_ADD
(which can be used instead ofLINKMSG|2732
)CHAINS_REMOVE
(which can be used instead ofLINKMSG|2733
)CHAINS_CONFIG
(which can be used instead ofLINKMSG|2734
)
The script uses LockMeister cuff point names (Mooring Points) which can be found here:
http://wiki.secondlife.com/wiki/LSL_Protocol/LockMeister_System
The next link is only for your info, you probably will not need it:
https://web.archive.org/web/20130224185823/http://lslwiki.net/lslwiki/wakka.php?wakka=exchangeLockGuardItem
nPose LM/LG chains plugin v1.03
(upcoming version)
- fixed #2 (allow multiple chains to one Lockmeister mooring point) (not lockguard compatible)
- code cleanup
nPose LM/LG chains plugin v1.02
- fixed #1 (Chain is not working if the chain point is a single prim prop)
- slightly improved particle generator
- fixed some rare timing issues
nPose LM/LG chains plugin v1.01
- added CHAINS_ADD, CHAINS_REMOVE, CHAINS_CONFIG commands to be used with nPose V3.10 and newer
nPose LM/LG chains plugin v0.04
- allow the rootprim to be a leashpoint
nPose LM/LG chains plugin v0.02
- made the plugin usable for more than one victim
- added LMv2 compatibility
- scan for leashpoints (cuffs that are attached after the initial particle command will be recognized)
- added particle config
plugin_lockmeister_lockguard v0.01
- Removed some of the error reporting to allow this plugin to be used in prim chain points without errors.
- Füge das Skript
nPose LM/LG chains plugin
dem Hauptobjekt hinzu. Füge das SkriptnPose SAT/NOTSAT plugin
dem Hauptobjekt hinzu (falls noch nicht vorhanden). - Füge für jede Kette dem Hauptobjekt ein Prim hinzu (nachfolgend "chain point" genannt).
- Jeder chain point braucht einen einmaligen Bezeichner, der in das Beschreibungsfeld des Prims einzutragen ist.
- Erstelle eine
SET:
Notecard und und benutze denSATMSG
(nPose V3.00 oder älter) bzw.ON_SIT
(nPose V3.10 oder neuer) um dem script mitzuteilen von wo nach wo eine Kette gezogen werden soll. Beispiel:
SATMSG|2732|leftloop~lcuff~rightloop~rcuff
(nPose V3.00 oder älter)
ON_SIT|seatnumber|CHAINS_ADD|leftloop~lcuff~rightloop~rcuff
(nPose V3.10 oder neuer)- Ersetze "seatnumber" mit der Nummer des gewünschten Sitzes
- Die Zahl 2732 sagt dem skript das es eine neue Kette anlegen soll
- der Text danach ist eine liste mit chain point ~ cuff point Namen, wobei wir den chain point Namen bereits durch das Eintragen im Beschreibungsfeld des chain points festgelegt haben (siehe Punkt 3.).
- Die cuff point Namen entnehmen wir der Referenz.
- Füge der
SET:
NC eine weitere Zeile mit demNOTSAT
(nPose V3.00 oder älter) bzw.ON_UNSIT
(nPose V3.10 oder neuer) hinzu. Beispiel:
NOTSATMSG|2733|leftloop~rightloop
(nPose V3.00 oder älter)
ON_UNSIT|seatnumber|CHAINS_REMOVE|leftloop~rightloop
(nPose V3.10 oder neuer)- Ersetze "seatnumber" mit der Nummer des gewünschten Sitzes
- Die Zahl 2733 sagt dem plugin, dass es die Kette lösen soll
- Der Text ist eine Liste mit Chain points (die wir bereits in 3. erstellt haben).