Re: [CODE] Magical Weapons' Duration

From: Chuck Reed (creed@I-55.COM)
Date: 12/07/97


This may not work, but its worth a try.  Have the spell astrall_summon
affect a character.  As long as that player is affected by it, the weapon
stays.  However, after the tic he loses it.  Also, this would make it
possible to limit the weapon to only the caster.  Just an idea.

Chuck Reed

At 08:07 AM 12/7/97 +0100, you wrote:
>I have made a spell called 'Astral Weapon' that summons forth a
>weapon for the caster to wield.
>I have successfully gotten the spell to work in the parts of
>summoning the weapon, auto-wielding it and having the spell
>cast upon oneself.
>
>Then came the tricky part, to make the weapon disappear after a given
>time. I have tried many different solutions, but all made the MUD crash
>or the code was just skipped over in the system (even though no errors
>in Make).
>This includes an add to point_update, a few lines in update_char_objects,
>a whole new comm.c check called update_astral, among others (too many
>to be mentioned here).
>
>Have somebody out there had the same problem as I have?
>Maybe someone can help me...
>
>The thing is, that I want the blade gone in a given time. Even
>GET_OBJ_TIMER didn't work. Not even a new structure called
>astral_timer worked (Instead, the MUD crashed every tick).
>
>/Christoffer
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>     +------------------------------------------------------------+
>
>


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST