Mailing List
Home
Forum Home
Mac Game - Mac game development
Rivers of MUD - a Diku and Merc based multiuser dungeon
SMAUG
Subjects
Getting UDP through NAT/firewalls/whatever for a game
Getting UDP through NAT/firewalls/whatever for a game
QuickTime errors
Python script as stand alone MUD server
Various sound problems
Fragment Shaders & GL TEXTURE RECTANGLE EXT
Timers and global variables
Re: Language and platform for Text MUD server
Apparent acquisition of Yantis (mysupersales) by IDE
HID keyboard
Getting UDP through NAT/firewalls/whatever for a game
Microsoft Sparkle
Director MX
Congratulations Horizons
Yet more problems fullscreen mode
Apple Dev Kitchen Them 's tasty vittles, Maw!
NSOpenGLContext, Pbuffers, and drawables
More DCR "theft " naughtiness
dynamic sprite creation and imaging lingo
Re: Find stuff in Flash array?
Effects of skill imbalances?
QuickTime errors
Rom 2 4/Quickmud Enhancement/Bug fix
Working with XML files/CFURL
smooth scrolling/subpixel tweening
RE: (Ron help me?) Flash text
Flash Racing
MudDev FAQ 2
Browser based games
Installing GLUT
Special character in Flash XML
 
RE:

RE:

2004-07-20       - By Eos

 Back
Reply:     1     2     3     4     5     6     7  


You only require a check in damage(). No other function actually causes
damages.
A substate check will not succeed. A timer check is required, just like
the one in interpret()

   if ( (timer=get_timerptr(ch, TIMER_DO_FUN)) != NULL )
   {
  int tempsub;

  tempsub = ch->substate;
  ch->substate = SUB_TIMER_FORCED_ABORT;
  (timer->do_fun)(ch,"");
  if ( char_died(ch) )
     return rCHAR_DIED;
  if ( ch->substate != SUB_TIMER_CANT_ABORT )
  {
     ch->substate = tempsub;
     extract_timer( ch, timer );
  }
  else
     ch->substate = tempsub;
   }

You really must learn not to ask us to play 'guess what I did wrong
without me ever showing you my code', it does not encourage assistance.


|?----Original Message-- --
|?From: Evil jay [mailto:e_viljay@(protected)]
|?Sent: Tuesday, July 20, 2004 6:46 AM
|?To: smaug@(protected)
|?Subject:
|?
|?
|?I've been trying to create a new SUB_TIMER_FORCED_ABORT,
|?which aborts a
|?player from
|?searching or detraping when damaged by a player or mob in
|?some way (not a
|?miss). Added
|?the timer to mud.h, made case checks for it in the
|?appropriate skills, and
|?set substate
|?checks (SUB_NONE) in one_hit, dam(..etc, to change substate to
|?SUB_TIMER_FORCED_ABORT.
|?Damage to the player isnt aborting the skill(s). Any suggestions?
|?
|?__ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ ____ __
|?Don?t just search. Find. Check out the new MSN Search!
|?http://search.msn.click-url.com/go/onm00200636ave/direct/01/
|?
|?
|?