|
Wrens Novice
Joined: 01 Jun 2003 Posts: 32 Location: USA
|
Posted: Sat Jun 14, 2003 2:53 pm
Prompt in dragonrealms |
I posted on 6 Jun 2003 concerning setting up the prompt to give information on positions like the wizard does. This is what I have worked out so far. (I will not put in all the code just to keep this shorter) Under preferences, GSL emulation, I have set the prompt to be @myprompt>. Using the finished code for the picutre buttons in the finished scripts forum, I put a alias at the end /myprompt. My alias looks like this:
#IF (%pos( H, @cpos)>0) {#NOOP @sit = s}{#NOOP @sit =}
@myprompt = %trim( %concat( @dead, @bleeding, @hid, @invisible, @Kneel, @Lie, @standing, @sit, @stun, @joined))
To me, it would seem to work; However, when I sit I get {#NOOP = s}{#NOOP =}
sent to Dragonrealms instead of setting the varible sit to read s. I have tried takein out the #noop, and using #var. All it does is change what is getting sent to dragonrealms. Obviously, I am not understanding something here and need help. |
|
|
|
Wrens Novice
Joined: 01 Jun 2003 Posts: 32 Location: USA
|
Posted: Sun Jun 15, 2003 1:42 am |
I worked out most of my problem. I am putting the code here so others may have the information in the prompt like the wizard.
#CLASS {Positions}
#ALIAS /MyPrompt {
#IF (%pos( P, @cpos)>0) {#VAR Joined J} {#VAR Joined ""}
#IF (%pos( M, @cpos)>0) {#VAR uncon U} {#VAR uncon ""}
#IF (%pos( I, @cpos)>0) {#VAR stun S} {#VAR Stun ""}
#IF (%pos( D, @cpos)>0) {#VAR inv I} {#VAR inv ""}
#IF (%pos( N, @cpos)>0) {#VAR hid H} {#VAR hid ""}
#IF (%pos( C, @cpos)>0) {#VAR web W} {#VAR web ""}
#IF (%pos( B, @cpos)>0) {#VAR dead "[DEAD]"} {#VAR dead ""}
#IF (%pos( GH, @cpos)>0) {#VAR kneel K} {#VAR kneel ""}
#IF (%pos( G, @cpos)>0) {#VAR Lie P} {#VAR lie ""}
#IF (%pos( H, @cpos)>0) {#VAR sit s} {#VAR sit ""}
#IF (%pos( O, @cpos)>0) {#VAR bleeding !} {#VAR bleeding ""}
@myprompt = %Trim( %concat( @dead, @bleeding, @hid, @invisible, @Kneel, @Lie, @standing, @sit, @stun))
}
#VAR standing {}
#VAR Kneel {}
#VAR sit {}
#VAR lie {}
#VAR bleeding {}
#VAR stun {}
#VAR dead {}
#VAR Invisible {}
#VAR hid {H}
#VAR myprompt {}
#VAR Uncon {}
#VAR web {}
#VAR Joined {}
#CLASS 0
I still have a problem with Kneeling it is the only GSL( P) that is two letters(GH). What I get right now is Ps> for the prompt (That is G for prone and H for sitting. I am sure it is some sort of nested #if statement I need to come up with. |
|
|
|
galldron Novice
Joined: 08 Nov 2002 Posts: 34 Location: Elanthia
|
Posted: Sun Jun 15, 2003 7:59 am |
If You take a look in the finished scripts forum there is a great wizard emulating button bar set up
My typing skills are second lowest only to my coding skills! |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|