Thread: Bad baddies
View Single Post
  #10  
Old 09-12-2005, 11:40 AM
Sildae Sildae is offline
Elven sorceress!
Sildae's Avatar
Join Date: Dec 2001
Location: Lothlòrien
Posts: 159
Sildae is on a distinguished road
Quote:
Originally Posted by excaliber7388
would a flag addition work? like: *snip*
Nope.
  1. flags belong to a player's account, and not to the current NPC. The serverside part would not know which player to check. Also, this would not work for more than one NPC of this type, even if it was not broken for other reasons.
  2. the only type of flags that you can set on the clientside that the server will get told about are client. flags. You cannot set regular flags.
  3. Toplevel if-clauses should exclusively check for events. I suppose this is just mock code, but still, when exactly are you going to check whether the flag is set? In a tight timeout loop? ****

Move a lot more of your logic to the serverside. The clientside of a regular baddy has almost nothing to do. Chances are you will not be able to use the premade NPC baddies for this, though.



Other than that, I am laughing too hard at if (washit) being censored.
__________________
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man."
-- George Bernard Shaw
Reply With Quote