On Thu, 7 Nov 1996, Brian Guilbault wrote: > Guys- > > I have added flying to my mud now and everything went according to plan > (eventually...but you know how that goes). Anyway, the spell has led to > an admin question and a coding question. > > The admin question is this: To those of you who have imped flying, what > do you do when a char's flying spell wears off when they are in a flying > room? The way I plan to do it is is deal damage to the character if they > are in a normal room (they can't fly indoors, but can anywhere else). > But in a FLYING room, what do you do with them? You can't really say, > "You fall on the ground" when there is no ground, and outright killing > them seems a bit harsh. Anyway just curious. > > The coding question: Is there a function built in someplace that checks > the duration left on spells? I know about the wear-off messages, but I'd > like to send a message to char when time left on fly is 2, and 1, and > then finally do the damage or whatever when it reaches 0. I imagine I > could write something with a few str_cmp lines but I was just wondering > if it already does this someplace because I can't seem to find anything. > > Thanks for your help, > > -Brian > > P.S.--> I will post my fly code to the list and the ftp site when it's > done in case anyone wants it. What i was planning on doing for this was to write a function that would cause them to fall. psuedo code if you please if(char is in room_flying && char is NOT affected by flying) { if(direction down is available) send to char "you start to fall" falldamage += 5 //don't apply yet though else apply falldamage } // they may die they may not. you want to expand on this though to allow for a slight time to react and so the player doesn't see. room description ect.. (1ms) you start to fall. (2ms) room description ect.. (3ms) you start to fall. you hit with a thud you are dead. you get the idea with the millisecond thing. basically it just scroll like a room with a hundred mobs in it :) Hope this helps. Christopher M. Ryan drizzt@visi.net http://www.visi.net/~drizzt/index.html +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST