Smaug OLC using Buttons

Posted by IYG_Ryo on Mon 10 Jan 2005 02:11 AM — 4 posts, 16,179 views.

#0
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
USA #1
Buttons in SMAUG-OLC? Am I missing something somewhere? :-) What exactly are you talking about?
USA #2
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.
Amended on Mon 10 Jan 2005 11:11 AM by Zeno
USA #3
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*