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
➜ Running the server
➜ Smaug OLC using Buttons
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| IYG_Ryo
(2 posts) Bio
|
Date
| Mon 10 Jan 2005 02:11 AM (UTC) |
Message
| I'm trying to create working buttons but I haven't been
able to find documentation on a few things. In setting
the value0 which is where the trapflag/buttonflag is stored I haven't been able to get it to return to its original position. Also how can I set what its original position is supposed to be. Thanks for the help | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #1 on Mon 10 Jan 2005 07:32 AM (UTC) |
Message
| Buttons in SMAUG-OLC? Am I missing something somewhere? :-) What exactly are you talking about? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #2 on Mon 10 Jan 2005 11:09 AM (UTC) Amended on Mon 10 Jan 2005 11:11 AM (UTC) by Zeno
|
Message
| Yeah, buttons/levers/switches etc.
LEVERFLAGS SWITCHFLAGS BUTTONFLAGS PULLCHAINFLAGS DIALFLAGS
==========================================================================
FLAG NAME | BITVECTOR | DESCRIPTION
----------------------------------------------------------------------
UP | 1 | Trigger is UP
UNLOCK | 2 | Trigger unlocks something
LOCK | 4 | Trigger locks something
D_NORTH | 8 | Affects the north exit
D_SOUTH | 16 | Affects the south exit
D_EAST | 32 | Affects the east exit
D_WEST | 64 | Affects the west exit
D_UP | 128 | Affects the exit up
D_DOWN | 256 | Affects the exit down
DOOR | 512 | Affects a door
CONTAINER *| 1024 | Affects a container
OPEN | 2048 | Opens something
CLOSE | 4096 | Closes something
PASSAGE | 8192 | Creates a passage
OLOAD *| 16384 | Loads up an object
MLOAD *| 32768 | Loads up a mobile
TELEPORT | 65536 | Teleports the puller
TELEPORTALL *| 131072 | Teleports everyone in the room
TELEPORTPLUS *| 262144 | Teleports everything in the room
DEATH *| 524288 | Causes instant death
CAST *| 1048567 | Casts a spell (sn in value1)
FAKEBLADE *| 2097152 | Lever is a wax covered sword blade (OUCH)
RAND4 | 4194304 | Randomizes the exits N, S, E, W
RAND6 | 8388608 | Randomizes the exits N, S, E, W, U, D
TRAPDOOR *| 16777216 | Opens a trap door, everthing falls down
See OSET and ITEMVALUES. * = not yet implemented.
==========================================================================
From Herne's Guide:
TRAPDOOR * 16777216 Opens a trap door, everthing falls down
ANOTHERROOM * Not in use
USEDIAL * Not in use
ABSOLUTEVNUM * Not in use
SHOWROOMDESC Show room description on teleport
AUTORETURN Automatically returns lever to starting position
Ryo is looking for the bit for the last two. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #3 on Mon 10 Jan 2005 05:03 PM (UTC) |
Message
| Huh... yeah. I thought he meant buttons to drive OLC, not making buttons in-game... dunno how I came to that conclusion. I shouldn't post after midnight. *grin* |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | 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.
12,596 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top