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
illyism
Wanderer


Joined: 09 Dec 2007
Posts: 58

PostPosted: Tue Jan 29, 2008 11:00 am   

help making less complex settings
 
i've decided to give up on the organ quest=http://forums.zuggsoft.com/forums/viewtopic.php?t=29678 and started a phoenix quest, quite easier, but almost the same.

so, this is what i have so far.
Code:
#CLASS {firebox}
#ALIAS clearallfire {
  clearfire nah
  clearfire yup
  clearfire nope
  clearfire firstkey
  clearfire secondkey
  clearfire thirdkey
  clearfire fourthkey
  }
#ALIAS fi {
  add %1
  light fire
  }
#VAR fire {purple}
#VAR nope {}
#VAR autopickerstatus {1}
#VAR nah {blue|white|orange|green}
#VAR yup {red|yellow|black|purple}
#VAR fires {red|blue|yellow|white|orange|green|black|purple}
#VAR firstfire {purple}
#VAR seconfire {}
#VAR thirdfire {}
#VAR fourthfire {}
#TRIGGER {A box containing a pile of coloured rocks is set in the wall next to the fireplace.} {
  open box
  enlightfirst
  }
#TRIGGER {} {}
#TRIGGER {The flames fizzle out with a shallow green glow.} {#additem yup @fire}
#TRIGGER {The rocks in the fireplace fail to catch any distinctive light.} {#additem nah @fire}
#TRIGGER {A bright red flame rises from the rocks.} {#var firstfire @fire}
#TRIGGER {A combination of red, yellow and blue flames rise from the rocks.} {#var thirdkey @fire}
#TRIGGER {A combination of red, and yellow flames rise from the rocks.} {#var secondkey @fire}
#CLASS 0


so the point is, there are wrong and good fires in here, the first alias should see which are the right and wrong ones. then after the last fire of the enlightfirst alias is complete, it should see what the firstfire is and add @firstfire, then add any other fire from the %yuplist. if that one is wrong, it should give another one from the %yuplist, and so on, until i find the secondkey. then it should aff @firstfire, add @secondfire and look for the thirdfire and so on, until the fourth

this one takes no balance.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Jan 29, 2008 12:53 pm   
 
The trouble with these quests you ask for help with is that we don't know your MUD. Ideally, we'd need to play with the puzzle in question to understand how it works - your script isn't very useful for explaining the rules and objectives of the puzzle. The very first thing you should do is explain (with MUD output if possible) how the quest works, what its objectives and rules are, and how your script seeks to arrive at a solution. Without understanding the rules of the game, we can't help you find the answer.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
illyism
Wanderer


Joined: 09 Dec 2007
Posts: 58

PostPosted: Tue Jan 29, 2008 3:44 pm   
 
you have to find 4 correct colours of light. then light the fire, it the rocks are correct, and in the correct order, you get to see a phoenix.
READ BOX
Code:

It contains rocks of red, blue, yellow, white, orange, green, black and purple. The rocks are
large and unwieldly, though there is a small shovel chained to the hearth to ADD the rocks to the
fire. You must add four coloured rocks to the fire (the same colours may be repeated), and then,
when you light the fire, the flames which emerge will hint at the correct combination. Primary
coloured flames mean you have a correct coloured rock in the correct adding position, while
secondary coloured flames mean you have a correct coloured rock in the wrong added position of
the four. You cannot find out anything about the contents of the box as it is not open.

The flames fizzle out with a shallow green glow. means you're in the wrong order, but it's the correct rock.
A bright red flame rises from the rocks. means you're in the correct order, and in the correct rock.
A combination of red, and yellow flames rise from the rocks means you're in the correct order, and in the correct rock. and that there are two rocks in the correct order.
A combination of red, yellow and blue flames rise from the rocks means you're with three rocks in the correct order
then at the fourth rock, the phoenix appears.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Jan 29, 2008 4:41 pm   
 
There seems to be something missing from your script in that case - an alias enlightfirst at least, and as far as I can see, you never change the value of the @fire variable.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Dharkael
Enchanter


Joined: 05 Mar 2003
Posts: 593
Location: Canada

PostPosted: Tue Jan 29, 2008 5:35 pm   
 
What I would really like to see is a log of you playing a game manually.
It would help us have a better understanding of what needs to be done.
_________________
-Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style."
Reply with quote
Arminas
Wizard


Joined: 11 Jul 2002
Posts: 1265
Location: USA

PostPosted: Tue Jan 29, 2008 6:15 pm   
 
The mud is Avalon and I have automated this one in the past. Although Avalon is a pay mud you can get to this quest for free during the tutorial. The phoenix box is in the white house north a ways then w of the meeting place.
Another problem that you have not mentioned is that if someone else has done the quest recently nothing you do will give you the phoenix.

If I can find my old script for this I'll post it here. It wasn't very good so I could have thrown it away mind...
_________________
Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram
Reply with quote
illyism
Wanderer


Joined: 09 Dec 2007
Posts: 58

PostPosted: Wed Jan 30, 2008 8:21 am   
 
well, i've made a log.EDIT: the first commands are in-mud macros. :

12 add red::light fire::add blue::light fire::add yellow::light fire::add white::light fire::add
orange::light fire::add green::light fire::add black::light fire::add purple::light fire
Code:
You add the red coloured rock to the fire. Once you feel ready, you may light the fire.
269h, 150m e{-}
The rocks in the fireplace fail to catch any distinctive light.
269h, 150m e{-}
You add the blue coloured rock to the fire. Once you feel ready, you may light the fire.
269h, 150m e{-}
The flames fizzle out with a shallow green glow.
269h, 150m e{-}
You add the yellow coloured rock to the fire. Once you feel ready, you may light the fire.
269h, 150m e{-}
The rocks in the fireplace fail to catch any distinctive light.
269h, 150m e{-}
You add the white coloured rock to the fire. Once you feel ready, you may light the fire.
269h, 150m e{-}
The rocks in the fireplace fail to catch any distinctive light.
269h, 150m e{-}
You add the orange coloured rock to the fire. Once you feel ready, you may light the fire.
269h, 150m e{-}
The flames fizzle out with a shallow green glow.
269h, 150m e{-}
You add the green coloured rock to the fire. Once you feel ready, you may light the fire.
269h, 150m e{-}
The rocks in the fireplace fail to catch any distinctive light.
269h, 150m e{-}
You add the black coloured rock to the fire. Once you feel ready, you may light the fire.
269h, 150m e{-}
A bright red flame rises from the rocks.
The flames fizzle out with a shallow green glow.
269h, 150m e{-}
You add the purple coloured rock to the fire. Once you feel ready, you may light the fire.
269h, 150m e{-}
The rocks in the fireplace fail to catch any distinctive light.
269h, 150m e{-} [color=darkred]add black[/color]

You add the black coloured rock to the fire. Once you feel ready, you may light the fire.
270h, 150m e{-} [color=darkred]add blue[/color]

You add the blue coloured rock to the fire. Once you feel ready, you may light the fire.
270h, 150m e{-} [color=darkred]add orange
[/color]
You add the orange coloured rock to the fire. Once you feel ready, you may light the fire.
270h, 150m e{-} [color=darkred]light fire[/color]

A bright red flame rises from the rocks.
The flames fizzle out with a shallow green glow.
270h, 150m e{-} [color=darkred]add black[/color]

You add the black coloured rock to the fire. Once you feel ready, you may light the fire.
270h, 150m e{-} [color=darkred]add orange
[/color]
You add the orange coloured rock to the fire. Once you feel ready, you may light the fire.
270h, 150m e{-} [color=darkred]add blue[/color]

You add the blue coloured rock to the fire. Once you feel ready, you may light the fire.
270h, 150m e{-} [color=darkred]add black[/color]

You add the black coloured rock to the fire. Once you feel ready, you may light the fire.
270h, 150m e{-} [color=darkred]light fire[/color]

The fire flares up suddenly as the perfect combination of rocks has been reached. A great orange
flame lurches out from the fire and engulfs the room, whirling winds whipping up the frenzy about
you. Then, from the centre of the fireplace, a golden phoenix rises from the flames.
The phoenix flaps its golden wings and alights at your side. Its metallic head nods, its eyes
glaze and you are left with the most valuable piece of treasure you have ever seen.
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