Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex, Google, Yahoo!

Members: 0
Guests: 14
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
612
Jacki72H
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Building » Multiple books
Forum Rules | Mark all | Recent Posts

Multiple books
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 25, 2002, 1:11 pm   Last edited Nov 24, 2007, 5:02 pm by Samson
Go to the top of the page
Go to the bottom of the page

kilroy
Magician
GroupMembers
Posts122
JoinedMay 1, 2002

Howdy Guys,

Hope you are all having a great weekend,
I am busy coding a Library, In the library, I am going to have multiple books on shelves (as libraries tend to have) but the trick is thus,

A human walks in I need a room prog that ( i think ) that will only let the human book of life be chosen,

I think that is fairly simple
if race ($r) == human (i know this much)
mpload booksvnums (is that correct ?_)
mpecho As you gaze around the shelves, One book seems to stand out.
endif


please correct me if I am wrong with this.

now the kicker comes to when multiple races are in the library
and the prog is firing multiple books

I dont really want the player to take the book with him, it is afterall a library not a bookstore

BUT what is then going to happen - player will take the book
and I have extra descriptions in there for the different chapters. So they read those and there will be clues about a phrase that they will need to say.

Upon saying that phrase then they will be teleported to a secret area, where they will find a trainer to help them with the first few skills -

I hope this is making sense -

Perhaps what will happen is the player then can take the book from the shelf (we run into the problem of multiple races again all trying to take book) but perhaps (brain fart time) the player then needs to put book on shelf, and say *secret phrase*
in that order -

Can the progs check for multiple ifs
and triggers?

if race ($r) == human
then check for put book on shelf
if book on shelf
check for *secret phrase*
if secret phrase
teleport to vnum ****
endif
endif
endif


please help out here if you can


Thank you

Kilroy
       
Post is unread #2 May 25, 2002, 1:53 pm
Go to the top of the page
Go to the bottom of the page

Dwip
Dementius Rabbitus
GroupAdministrators
Posts55
JoinedJan 1, 2002

Try something like this.


The stuff in caps and underscores are vnums you need to fill in.

Library Room:

> greet_prog 100~
if ispc($n)
if race($n) == RACE_1
if ovnumhere(RACE_1_BOOK) < 1
mpoload RACE_1_BOOK
mpechoat $n As you gaze around the shelves, One book seems to stand out.
endif
else
if race($n) == RACE_2
if ovnumhere(RACE_2_BOOK) speech_prog p RACE_1_PHRASE~
if ispc($n)
if race($n) == RACE_1
if ovnumcarry(RACE_1_BOOK) >= 1
mpforce $n drop book
mppurge
mpechoat $n /* pretty teleport message */
mpat RACE_1_ROOM mptrlook $n
endif
endif
endif

/* Put one of these in every room enterable from the main room,
for each book. */

> all_greet_prog 100~
if ovnumhere(RACE_1_BOOK) >= 1
mpforce $n drop book
mppurge book
endif
       
Post is unread #3 May 25, 2002, 1:59 pm   Last edited Nov 24, 2007, 5:02 pm by Samson
Go to the top of the page
Go to the bottom of the page

kilroy
Magician
GroupMembers
Posts122
JoinedMay 1, 2002

WOW!!!!!!!!!!!!!!!!!! HOLY ####!!!

Thank you Dwip - That will certainly help me.

Much obliged for your time and patience in helping newbies

Kilroy
       
Pages:<< prev 1 next >>