Axe Software Forums
  Quest Developer Forum
  A new question

Post New Topic  
profile | register | faq

Author Topic:   A new question
Shadow posted 25-02-2003 12:27 GMT   Click Here to See the Profile for Shadow   Click Here to Email Shadow  
Is there a way to make it where upon entering a room it says something before the room description, not after?...I am fairly sure this is possible...but I am having a heck of a time figureing it out.

Thankyou,
Shadow

MaDbRiT posted 25-02-2003 13:39 GMT     Click Here to See the Profile for MaDbRiT  Click Here to Email MaDbRiT     
Hi Shadow,

Yes it is possible, you can rearrange the presentation of parts or all of all or individual room descriptions at will, so you'd just need to look up the 'how to change room descriptions' section of the docs.

Al

MaDbRiT posted 25-02-2003 13:50 GMT     Click Here to See the Profile for MaDbRiT  Click Here to Email MaDbRiT     
Hi again,

Here's a quick demo - run it and see what happens when you move west :-)

quote:

' Quest 3.11 ASL Template

define game <Game Name>
asl-version <311>
game version <1.0>
game author <Your Name>
game copyright <© 2002 ...>
game info <Extra Info>
start <Start Room>
end define

define room <Start Room>
look <It's the start-room - Whooo!>
west <Next Room>
end define

define room <Next Room>
description {
msg <You can put any code you like here, & run it before the room is described...|n>

set string <indescription; $gettag(#quest.currentroom#;indescription)$>
if is <#indescription#;> then set string <indescription; You are in>
else {
set numeric <len; $lengthof(#indescription#)$>
set numeric <len; %len%-1>
set string <indescription; $left(#indescription#;%len%)$>
}
msg <#indescription# |b|cl#quest.formatroom#|xb|cb.>
if not is <#quest.doorways.out#;> then msg <You can go out to #quest.doorways.out#.>
if not is <#quest.doorways.dirs#;> then msg <You can go #quest.doorways.dirs#.>
if not is <#quest.doorways.places#;> then msg <You can go to #quest.doorways.places#.>
if not is <#quest.objects#;> then msg <You can see #quest.formatobjects#.>
msg <#quest.lookdesc#>
}
indescription <You are in the:>
east <start room>

end define


define text <intro>
Enter intro text here
end define

define text <win>
Enter win text here
end define

define text <lose>
Enter lose text here
end define


Al

Shadow posted 26-02-2003 11:06 GMT     Click Here to See the Profile for Shadow  Click Here to Email Shadow     
As always Al, you are God
:D
thankyou again
Shadow

Post New Topic  Post Reply
Hop to:


Contact Us | Axe Software

Powered by: Ultimate Bulletin Board, Freeware Version 2000a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.