intfiction.org

The Interactive Fiction Community Forum
It is currently Thu Oct 19, 2017 10:04 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Feb 13, 2017 8:55 pm 
Offline

Joined: Sun May 08, 2016 10:19 am
Posts: 116
Yeah I was just wondering if I can customize the status line read out on ZILF 0.7 instead of

LOCATION SCORE MOVES

like classic Infocom games, but to a more like

LOCATION SCORE: 0/250 (0 being the current score, 250 being the max fixed score).


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sat Feb 25, 2017 5:23 am 
Offline

Joined: Sat May 03, 2008 11:32 pm
Posts: 285
You can do this, on version 4 and up, by replacing the UPDATE-STATUS-LINE routine defined in parser.zil. Something like this:

Code:
<SET REDEFINE T>
<ROUTINE UPDATE-STATUS-LINE ("AUX" WIDTH)
    <SCREEN 1>
    <HLIGHT ,H-INVERSE>
    <FAKE-ERASE>
    <TELL !\ >
    <COND (,HERE-LIT <TELL D ,HERE>)
     (ELSE <TELL %,DARKNESS-STATUS-TEXT>)>
    <SET WIDTH <LOWCORE SCRH>>
    <CURSET 1 <- .WIDTH 15>>
    <TELL "Score: " N ,SCORE "/250">
    <SCREEN 0>
    <HLIGHT ,H-NORMAL>>


Put that somewhere after your <INSERT-FILE "parser"> line so it'll replace the library function.

On version 3, you can't really customize the status line, because it's drawn by the interpreter, but you can use <VERSION ZIP TIME> to make it show up as hours/minutes instead of score/turns.


Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group