Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ time, progs and other stuff
time, progs and other stuff
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Ellissir
(4 posts) Bio
|
Date
| Sun 13 Jan 2002 06:22 PM (UTC) |
Message
| 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 | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Sun 13 Jan 2002 09:50 PM (UTC) |
Message
| 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
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
9,625 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top