Hi!
I tried to do a kind of an “interactive” real-time pause to a game where the player does something that takes longer than one turn. The trouble was I could’t get to the (real-time) pause from outside Keyboard or KeyboardPrimitive, that is from within the verb routines so that the “activity” routine (code below) would’ve ended in the action returning in success: “And find a casket!”
dig it
You dig… (real time pause plus 1 turn)
And dig… (real time pause plus 1 turn)
And dig… (real time pause plus 1 turn)
And find a casket!
The DM4 examples 129-133, the Time and Dwarves example game have something like this, but I couldn’t do it. Any ideas?
[code][ activity t a;
while (t > 1) {
give player acting;
! number of turns
t --;
! ie. “Digging…” this is the part where I tried to pause the game for a while
if (player has acting) print (string) a;
InformLibrary.End_Turn_Sequence();
DisplayStatus();
DrawStatusLine();
! something interrupts
if (player hasnt acting)
rfalse;
}
! finished
give self ~acting;
];[/code]