time, progs and other stuff

Posted by Ellissir on Sun 13 Jan 2002 06:22 PM — 2 posts, 12,197 views.

#0
HI! I'm new here :)
I have a few questions...
How to change the month names, year names and day names?
How to change the length of the year and each month?
How to make a prog for a mobile which will look like this:
the player bribes the gate guard with 1000 coins and the
guard opens the locked gate. after the player leaves the
room he closes and locks the gate...

Thanx

Ellissir
Australia Forum Administrator #1
In the file act_info.c look for the lines:


char * const day_name [] =
{
"the Moon", "the Bull", "Deception", "Thunder", "Freedom",
"the Great Gods", "the Sun"
};

char * const month_name [] =
{
"Winter", "the Winter Wolf", "the Frost Giant", "the Old Forces",
"the Grand Struggle", "the Spring", "Nature", "Futility", "the Dragon",
"the Sun", "the Heat", "the Battle", "the Dark Shades", "the Shadows",
"the Long Shadows", "the Ancient Darkness", "the Great Evil"
};


I'm not sure about changing the lengths, try changing SECONDS_PER_TICK.

You can do a bribe with bribe_prog 1000. The guard could then unlock the gate. Not sure how to lock it afterwards, but maybe the guard could force you through the gate and immediately lock it (or use mptransfer to simply put you on the other side of the gate).

Here is an example from newdark.are:


if inroom($i) == 21069
  say Go on back and pick a room.
  , points over his shoulder.
  mptransfer $n 21146
  mpat $n mea $n The innkeeper points you down the hall.
  mpat $n say When you wan'na leave, just tell me.
  mppurge coins
endif