home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Special: Spiele Hits
/
Hits-CD.iso
/
aminet
/
spiele
/
ammud1_1.lha
/
AmigaMUD
/
Src
/
Basics
/
base.m
next >
Wrap
Text File
|
1997-06-15
|
36KB
|
1,236 lines
/*
* Amiga MUD
*
* Copyright (c) 1997 by Chris Gray
*/
/*
* base.m - standard MUD code for the basic activities and structures.
*/
private tp_base CreateTable()$
use tp_base
public MAX_CARRY 7$
/* These properties are made public, so that a non-builder can make code
to use them in the playpen. These are special in that they are
referenced by the automatically generated code. We want that code to
compile properly, even if the builder hasn't @use'd any tables such
as t_base. */
public p_rName CreateStringProp()$ /* the name of a room */
public p_rContents CreateThingListProp()$ /* the room's contents */
public p_pCarrying CreateThingListProp()$ /* player's inventory */
public p_oName CreateStringProp()$ /* encoded name of object */
public p_oCarryer CreateThingProp()$ /* who is carrying it */
public p_oCreator CreateThingProp()$ /* who "created" it */
public p_oContents CreateThingListProp()$ /* contents of an object */
define t_base p_Image CreateStringProp()$ /* name of image file */
/* some properties for rooms */
define t_base p_rBuyList CreateThingListProp()$ /* list of things for sale */
define t_base p_rNameAction CreateActionProp()$ /* call proc instead */
define t_base p_rDark CreateBoolProp()$ /* its dark in here */
define t_base p_rNoMachines CreateBoolProp()$ /* keep the machines out */
define t_base p_rLocked CreateBoolProp()$ /* only owner can go in */
define t_base p_rDesc CreateStringProp()$ /* full description of room */
define t_base p_rDescAction CreateActionProp()$ /* call proc instead */
define t_base p_rScenery CreateStringProp()$ /* scenery names */
define t_base p_rExits CreateIntListProp()$ /* list of obvious exits */
define t_base p_rFurtherDesc CreateActionProp()$/* for any extra stuff */
define t_base p_rLastVisit CreateIntProp()$ /* useful for timing things */
define t_base p_rNoGoString CreateStringProp()$ /* print if cannot go */
define t_base p_rNoGoAction CreateActionProp()$ /* call if cannot go */
define t_base p_rBuyAction CreateActionProp()$ /* how to buy here */
/* the basic connections between rooms */
define t_base p_rNorth CreateThingProp()$ /* actual north connection */
define t_base p_rSouth CreateThingProp()$
define t_base p_rEast CreateThingProp()$
define t_base p_rWest CreateThingProp()$
define t_base p_rNorthEast CreateThingProp()$
define t_base p_rNorthWest CreateThingProp()$
define t_base p_rSouthEast CreateThingProp()$
define t_base p_rSouthWest CreateThingProp()$
define t_base p_rUp CreateThingProp()$
define t_base p_rDown CreateThingProp()$
define t_base p_rEnter CreateThingProp()$
define t_base p_rExit CreateThingProp()$
define t_base p_rNorthDesc CreateStringProp()$ /* special description */
define t_base p_rSouthDesc CreateStringProp()$
define t_base p_rEastDesc CreateStringProp()$
define t_base p_rWestDesc CreateStringProp()$
define t_base p_rNorthEastDesc CreateStringProp()$
define t_base p_rNorthWestDesc CreateStringProp()$
define t_base p_rSouthEastDesc CreateStringProp()$
define t_base p_rSouthWestDesc CreateStringProp()$
define t_base p_rUpDesc CreateStringProp()$
define t_base p_rDownDesc CreateStringProp()$
define t_base p_rEnterDesc CreateStringProp()$
define t_base p_rExitDesc CreateStringProp()$
define t_base p_rNorthMessage CreateStringProp()$ /* to player when go */
define t_base p_rSouthMessage CreateStringProp()$
define t_base p_rEastMessage CreateStringProp()$
define t_base p_rWestMessage CreateStringProp()$
define t_base p_rNorthEastMessage CreateStringProp()$
define t_base p_rNorthWestMessage CreateStringProp()$
define t_base p_rSouthEastMessage CreateStringProp()$
define t_base p_rSouthWestMessage CreateStringProp()$
define t_base p_rUpMessage CreateStringProp()$
define t_base p_rDownMessage CreateStringProp()$
define t_base p_rEnterMessage CreateStringProp()$
define t_base p_rExitMessage CreateStringProp()$
define t_base p_rNorthOMessage CreateStringProp()$ /* to others when go */
define t_base p_rSouthOMessage CreateStringProp()$
define t_base p_rEastOMessage CreateStringProp()$
define t_base p_rWestOMessage CreateStringProp()$
define t_base p_rNorthEastOMessage CreateStringProp()$
define t_base p_rNorthWestOMessage CreateStringProp()$
define t_base p_rSouthEastOMessage CreateStringProp()$
define t_base p_rSouthWestOMessage CreateStringProp()$
define t_base p_rUpOMessage CreateStringProp()$
define t_base p_rDownOMessage CreateStringProp()$
define t_base p_rEnterOMessage CreateStringProp()$
define t_base p_rExitOMessage CreateStringProp()$
define t_base p_rNorthEMessage CreateStringProp()$ /* to others when enter */
define t_base p_rSouthEMessage CreateStringProp()$
define t_base p_rEastEMessage CreateStringProp()$
define t_base p_rWestEMessage CreateStringProp()$
define t_base p_rNorthEastEMessage CreateStringProp()$
define t_base p_rNorthWestEMessage CreateStringProp()$
define t_base p_rSouthEastEMessage CreateStringProp()$
define t_base p_rSouthWestEMessage CreateStringProp()$
define t_base p_rUpEMessage CreateStringProp()$
define t_base p_rDownEMessage CreateStringProp()$
define t_base p_rEnterEMessage CreateStringProp()$
define t_base p_rExitEMessage CreateStringProp()$
define t_base p_rNorthImage CreateStringProp()$ /* image of that dir */
define t_base p_rSouthImage CreateStringProp()$
define t_base p_rEastImage CreateStringProp()$
define t_base p_rWestImage CreateStringProp()$
define t_base p_rNorthEastImage CreateStringProp()$
define t_base p_rNorthWestImage CreateStringProp()$
define t_base p_rSouthEastImage CreateStringProp()$
define t_base p_rSouthWestImage CreateStringProp()$
define t_base p_rUpImage CreateStringProp()$
define t_base p_rDownImage CreateStringProp()$
define t_base p_rEnterImage CreateStringProp()$
define t_base p_rExitImage CreateStringProp()$
/* The various 'checker' lists are private, since they are accessed only
via the supplied Add/Del Checker routines. */
define tp_base p_rNorthChecks CreateActionListProp()$
define tp_base p_rSouthChecks CreateActionListProp()$
define tp_base p_rEastChecks CreateActionListProp()$
define tp_base p_rWestChecks CreateActionListProp()$
define tp_base p_rNorthEastChecks CreateActionListProp()$
define tp_base p_rNorthWestChecks CreateActionListProp()$
define tp_base p_rSouthEastChecks CreateActionListProp()$
define tp_base p_rSouthWestChecks CreateActionListProp()$
define tp_base p_rUpChecks CreateActionListProp()$
define tp_base p_rDownChecks CreateActionListProp()$
define tp_base p_rEnterChecks CreateActionListProp()$
define tp_base p_rExitChecks CreateActionListProp()$
define tp_base p_rAnyEnterChecks CreateActionListProp()$
define tp_base p_rAnyEnterActions CreateActionListProp()$
define tp_base p_rAnyLeaveChecks CreateActionListProp()$
define tp_base p_rAnyLeaveActions CreateActionListProp()$
define tp_base p_rGetChecks CreateActionListProp()$ /* passed the object */
define tp_base p_rDropChecks CreateActionListProp()$ /* passed the object */
define tp_base p_rSayChecks CreateActionListProp()$ /* passed stuff said */
define tp_base p_rLookChecks CreateActionListProp()$ /* instead of/with */
define tp_base p_rLightChecks CreateActionListProp()$ /* light introduced */
/* some properties for players */
define t_base p_pDesc CreateStringProp()$ /* the player's description */
define t_base p_pDescCheck CreateActionProp()$ /* check to see if look OK */
define t_base p_pDescAction CreateActionProp()$ /* call routine instead */
define t_base p_pDescMore CreateActionListProp()$ /* more desc stuff */
define t_base p_pMoney CreateIntProp()$ /* how much money player has */
define t_base p_pVerbose CreateBoolProp()$ /* player wants verbose desc */
define t_base p_pSuperBrief CreateBoolProp()$ /* player wants superbrief */
define t_base p_pEchoPose CreateBoolProp()$ /* echo pose, say to them */
define t_base p_pHidden CreateBoolProp()$ /* for special tricks */
define t_base p_pStandard CreateBoolProp()$ /* not on fight monsters */
define t_base p_pPosition CreateIntProp()$ /* special codes */
define t_base p_pWhere CreateThingProp()$ /* e.g. the bench */
define t_base p_pCursor CreateIntListProp()$ /* the chosen cursor */
define t_base p_pCursorColour CreateIntProp(