|
Kastagar Newbie
Joined: 21 Sep 2003 Posts: 1
|
Posted: Sun Sep 21, 2003 9:22 am
GS3 hands help please |
I'm pretty new to Zmud and am getting the hang of the basics but one thing I'm struggling with is to capture the contents of my hands using 'glance' and display them on two buttons. The problem is down to the items having several descriptors (like long, black, silvery longword.
Here is what I tried:
#CLASS {Hands}
#CLASS 0
#VAR RightHand {a silvery vultite broadsword} {_nodef} "Hands"
#VAR LeftHand {a small black vultite target shield} {_nodef} "Hands"
#TRIGGER {(%w) (%w) (%w) (%w) (%w) (%w) in your left hand} {#VAR LeftHand {%1 %2 %3 %4 %5 %6}} "Hands"
#TRIGGER {(%w) (%w) (%w) in your right hand} {#VAR RightHand {%1 %2 %3 %4}} "Hands"
#BUTTON 1 {Sheath Weapon} {put @weapon in my @sheath;@RightHand = Empty;@LeftHand = Empty;glance} {} {} {} {} {} {Size} {86} {23} {Pos} {1} {427} {112} {} {} {} "" {} {} {}
#BUTTON 2 {Get Weapon} {take my @weapon from my @sheath;glance} {} {} {} {} {} {Size} {85} {23} {Pos} {1} {342} {} {} {} {} "" {} {} {}
#BUTTON 3 {Sling Shield} {wear shield;@RightHand = Empty;@LeftHand = Empty;glance} {} {} {} {} {} {Size} {65} {23} {Pos} {1} {685} {} {} {} {} "" {} {} {}
#BUTTON 4 {Ready Shield} {remove shield;glance} {} {} {} {} {} {Size} {72} {23} {Pos} {1} {613} {} {} {} {} "" {} {} {}
#BUTTON 38 {@RightHand} {glance} {} {} {} {} {} {Size} {200} {25} {Pos} {26} {550} {} {} {} {} "Hands" {} {} {}
#BUTTON 39 {@LeftHand} {glance} {} {} {} {} {} {Size} {200} {25} {Pos} {52} {550} {} {} {} {} "Hands" {} {} {}
which partially works but gives somewhat unpredictable results depending on what I am holding and how many elements there are to its description.
Can anyone suggest anything?
Thanks |
|
|
|
Anabasis Wanderer
Joined: 26 Jan 2001 Posts: 74
|
Posted: Mon Sep 22, 2003 2:41 pm |
Yikes. Skip glancing and use the GSL triggers instead. Try this...
#VAR righthand {Empty} {Empty}
#VAR lefthand {Empty} {Empty}
#TRIGGER "righthand" {m} {righthand = %gsl(m)} "" {gsl}
#TRIGGER "lefthand" {l} {lefthand = %gsl(l)} "" {gsl}
Ana |
|
|
|
|
|