Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Trajet
Beginner


Joined: 18 May 2004
Posts: 16
Location: USA

PostPosted: Sun Sep 11, 2005 12:10 am   

Help with something
 
I'm part of a MUX(BuffyMUX) and I can't figure out how to set up a trigger that lets me view a character's traitsone right after the other.

Example: I type +bg1 Lurk: I get Lurk's bg1 entry. At the bottom of the entry it says <Continued in +bg2 Lurk>

How do I make it so that when I type +bg1 Lurk it types in +bg2 Lurk or +bg3 Lurk etc when the <Continued in +bg2 Lurk> or <Continued in +bg2 Lurk> pops up?


Last edited by Trajet on Sun Sep 11, 2005 5:27 am; edited 1 time in total
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Sep 11, 2005 12:47 am   
 
Code:
#TRIGGER {~<Continued in +%1 %2~>} {+%1 %2}


That should work for you. Would help if you clarified a little more what you need to do to get to the next page and what not. Here, we thrive on examples from the MU*.

Charneus
Reply with quote
Trajet
Beginner


Joined: 18 May 2004
Posts: 16
Location: USA

PostPosted: Sun Sep 11, 2005 3:36 am   
 
charneus wrote:
Code:
#TRIGGER {~<Continued in +%1 %2~>} {+%1 %2}


That should work for you. Would help if you clarified a little more what you need to do to get to the next page and what not. Here, we thrive on examples from the MU*.

Charneus
Thank you, I mean it. This works perfectly.
Reply with quote
Trajet
Beginner


Joined: 18 May 2004
Posts: 16
Location: USA

PostPosted: Sun Sep 11, 2005 5:26 am   More help
 
Actually, I was also wondering now that I noticed the bg command is the only on with the continue on +bg2 lurk thing on it, that I need another command.

I need to be able to type pers1 lurk and see the pers1 lurk file, but I also want to be able to type pers2 lurk and see the pers2 lurk file. I don't want a bunch of aliases everywhere and was wondering if someone knew how to do that one.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Sep 11, 2005 5:51 am   
 
Change it to this then:

Code:
#TRIGGER {~<Continued in %1 %2~>} {%1 %2}


That is, provided they all follow the same format...

Charneus
Reply with quote
Trajet
Beginner


Joined: 18 May 2004
Posts: 16
Location: USA

PostPosted: Sun Sep 11, 2005 6:28 am   
 
My bad, let me explain it.

I found out that the only thing that has the <Continued in +bg2 Lurk> thing was +bg

I need one for +pers

What I meant was I don't want to make a bunch of aliases(Ex: pers1=+pers1,pers2=+pers)

I just want to be able to type pers1 and then later type pers2 without having 5o different aliases to make it work.

They don't follow the same format as +bg because as I have found out, the bottom of the entry in +pers1 does not say <Continue on +pers2>, it doesn't say anything.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Sep 11, 2005 6:42 am   
 
Copy/paste what you are talking about. Do one for each of the different things you look at... That would help me out immensely.

Charneus
Reply with quote
Trajet
Beginner


Joined: 18 May 2004
Posts: 16
Location: USA

PostPosted: Sun Sep 11, 2005 7:00 am   
 
==============================================================================
+char info for Lurk
------------------------------------------------------------------------------
Background: 1 - 5 ......................................... +bg<#>

<unapproved>
------------------------------------------------------------------------------
Personality:

1. Calm...................................................... +pers1
2. Determined................................................ +pers2
3. Polite.................................................... +pers3
4. Morality.................................................. +pers4
5. Outspoken................................................. +pers5
6. Loyal..................................................... +pers6
7. Fearless.................................................. +pers7

------------------------------------------------------------------------------
Skills:

1. Hand to Hand............................................ +skills1
2. Arm-Blade Combat........................................ +skills2
3. Archery................................................. +skills3
4. Gymnastics.............................................. +skills4
5. Climbing................................................ +skills5
6. Languages............................................... +skills6

------------------------------------------------------------------------------
Resources:

1. Wolfram & Hart............................................. +res1
2. Library.................................................... +res2
3. Tough Skin................................................. +res3
4. Occult Knowledge........................................... +res4
5. Occult Research............................................ +res5

------------------------------------------------------------------------------
Powers:

1. Arm-Blades.............................................. +powers1
2. Paralyzation............................................ +powers2
3. Natural Understanding................................... +powers3

------------------------------------------------------------------------------
Flaws:

1. Water.................................................... +flaws1
2. Arm-Blade Regeneration................................... +flaws2
3. Skin..................................................... +flaws3
4. Energy Consumption....................................... +flaws4


<unapproved>
------------------------------------------------------------------------------
BuffyMUX
==============================================================================

Heres the bg screen example:

==============================================================================
Lurk's Background:

Before we proceed into the time of Malurker-Trog, let this passage begin with an introduction to the Grolgo history. Before the time of humans, the Grolgo demons were an outcast species. They were widely known for their peaceful ways and because of this, were looked down upon by the more vicious demons who regarded them as little more than weaklings. Time passed and as the time of the humans came, it was time for the demons to leave the world. The Grolgo settled in a dimension that would later be known as Trachl-Es. Unlike most other dimensions, this dimension was uninhibited and furthermore, had terrain similar to that of Earth.

The Grolgo leader at the time, Herka-Es, was naturally inclined towards the use of magic and because of this, the Grolgo numbers prospered. The survival of the Grolgo was not determined only by their leader's magic, but because of the fact that Trachl-Es had no animal life. Without animals to worry about, such things like epidemics and plagues could simply not happen. During this period in the Grolgo home world, life was cherished and peace was a natural state. However, things would soon turn dark for the Grolgo.
<Continued in +bg2 Lurk>
+bg2 Lurk
==============================================================================

here's pers:

==============================================================================
Lurk's Personality: Calm

- The first step towards peace within is calmness of the body and the mind. Lurk, like most of his race, is very calm and very patient even in the most dire of situations. It is a true asset to him as it would be to anyone else.

==============================================================================
see there is nothing in pers or the other ones below it for that matter which can set off a trigger to view all the others. Thusly, I need something, probably an alias I dunno, that just allows me to type in pers1 or pers2 or pers3 etc without having those three aliases. Understand?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Sep 11, 2005 2:53 pm   
 
Ok... this is a complicated nested #IF trigger... This is untested, but it might work...

Code:
#TRIGGER {%1's %2:} {#IF (%2 = Background) {#LOOP 1,5 {+bg%{i} %1} {#IF (%2 = Personality} {#LOOP 1,7 {+pers%{i} %1} {#IF (%2 = Skills) {#LOOP 1,6 {+skills%{i} %1} {#IF (%2 = Resources) {#LOOP 1,5 {+res%{1} %1} {#IF (%2 = Powers) {#LOOP 1,3 {+powers%{i} %1} {#IF (%2 = Flaws) {#LOOP 1,4 {+flaws%{i} %1}}}}}}}


Again, this is untested... but try it and let me know how it works.

Charneus
Reply with quote
Trajet
Beginner


Joined: 18 May 2004
Posts: 16
Location: USA

PostPosted: Sun Sep 11, 2005 8:42 pm   
 
nvm


Last edited by Trajet on Sun Sep 11, 2005 8:51 pm; edited 1 time in total
Reply with quote
Trajet
Beginner


Joined: 18 May 2004
Posts: 16
Location: USA

PostPosted: Sun Sep 11, 2005 8:43 pm   
 
ZMUD wrote:
{#IF (%2 = Background) {#LOOP 1,5 {+bg%{i} %1} {#IF (%2 = Personality} {#LOOP 1,7 {+pers%{i} %1} {#IF (%2 = Skills) {#LOOP 1,6 {+skills%{i} %1} {#IF (%2 = Resources) {#LOOP 1,5 {+res%{1} %1} {#IF (%2 = Powers) {#LOOP 1,3 {+powers%{i} %1} {#IF (%2 = Flaws) {#LOOP 1,4 {+flaws%{i} %1}}}}}}}
^ syntax error


this is what I get back.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net