Formatting printed messages

steve the gaming guy
I want to create a title page for my game. All the formatting seems to be working EXCEPT for the justification. I have it bolded, blue, size 30 but it will not center the text. Below is my code (my problem is within the "start" procedure):

' "King's Quest V - text adventure"
' Created with QDK 3.52 - UNREGISTERED VERSION

define game <King's Quest V - text adventure>
asl-version <350>
gametype singleplayer
start <Crispin's house -out front>
game author <Steve>
game info <Created with QDK 3.52 - UNREGISTERED EVALUATION VERSION.>
startscript do <start>
define variable <Score>
type numeric
value <0>
display <Score: ! of 230>
end define
end define

define synonyms
take = get
end define

define room <Crispin's house -out front>
look <To the south you can almost make out a small town. To the west is a dark path that winds into the forest beyond.>
indescription <You are at>

end define

define procedure <start>
msg <|s30|cl|b|jcKing's Quest V|jl|xb|cb|s00>
msg <|cl|jc|s10|bThe Text Adventure|cb|jl|s00|xb>
wait <press any key>
end define

define text <intro>

end define

define text <win>

end define

define text <lose>

end define


Please help if you can!!!!

Thanks,
Steve the gaming guy :?:

steve the gaming guy
any help would be dandy!

Alex
It's because you have two justification tags on the same line. Justification applies to the entire line, so what happens with your text is that it is centred, but then left-justified again.

What you should do is move the |jl down to the next line.

steve the gaming guy
oooh, ok. I thought the first justification (centered) applied until it hit the next justification code. I will try what you suggested.

Thanks a lot!

steve the gaming guy :shock:

steve the gaming guy
Alex wrote:It's because you have two justification tags on the same line. Justification applies to the entire line, so what happens with your text is that it is centred, but then left-justified again.

What you should do is move the |jl down to the next line.


Yep, that's what it was. At the end of the title, I just hit enter once and made "|jl" the only command on that line and it works now.

Thanks again,
steve the gaming guy :lol:

ac19189
Go to hear you got it working cant wait for it to come out sounds fun. :D

steve the gaming guy
ac19189 wrote:Go to hear you got it working cant wait for it to come out sounds fun. :D


Hey, thanks a lot. Hopefully, it won't take too much longer. I originally thought it was going to take a long time to create a text game from a huge 3D adventure game. On the contrary, the creation time is going along rather quickly as I am almost half way through. On the same note, it looks like the play time will be drastically shorter than the original due to there not being any graphics nor animations. I guess that is normal for text adventures though. I don't see myself playing ANY text adventure game longer than a half an hour, whereas, a 3D graphical adventure, I can spend hours and hours on.

Anyway, I'm rather long-winded so again...thanks!!

steve the gaming guy :P

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums