From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10019 invoked by alias); 23 Sep 2004 00:46:12 -0000 Mailing-List: contact xconq7-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: xconq7-owner@sources.redhat.com Received: (qmail 10003 invoked from network); 23 Sep 2004 00:46:10 -0000 Received: from unknown (HELO web13121.mail.yahoo.com) (216.136.174.83) by sourceware.org with SMTP; 23 Sep 2004 00:46:10 -0000 Message-ID: <20040923004610.31863.qmail@web13121.mail.yahoo.com> Received: from [138.202.33.53] by web13121.mail.yahoo.com via HTTP; Wed, 22 Sep 2004 17:46:10 PDT Date: Thu, 23 Sep 2004 01:40:00 -0000 From: Elijah Meeks Subject: Table Request: Accident-Occupant-Effect To: xconq7@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004/txt/msg01222.txt.bz2 Not really related to GIS, well, maybe a little, it does kind of involve terrain... So in the current system, the accident-hit-chance affects all units in a terrain, except occupants. It makes sense when we think of these accidents to be terrain-related, but I've used the table as a random monster generator (In Opal) and now I want to use it to simulate starship crews trying to get their systems on-line. Here's how it works: In battles.g, occupants represent ships' systems. So your Enterprise Class unit has Phaser Bank units, Photon Torpedo Launcher units, Shields units, et cetera. It works pretty well. But now I'm writing a Wrath of Khan scenario, and I'm trying to represent the Enterprise being caught off-guard by the Reliant. I tried to manually set acp using '(acp 0)' or '(acp -2)' but it looks like this is only accounted for in saved games (.xcq). So I built more units (Surprise) all of them being 'Offline' versions of the various systems. If hit, they're immediately knocked out, but of course the crew's trying to get them on-line as soon as possible, so I figured if I set: (table accident-hit-chance (offline-systems-types t* 2500) ) and (table accident-damage (offline-systems-types t* 9999) ) and set the wrecked-type to their working equivelent, then I'd see a 25% chance per turn that the systems would come on-line. The player, of course, would be frantically trying to maneuver out of range, waiting for his shields to come up or phasers to come on-line (And, of course, use the Command Prefix Code unit to do the same to the Reliant). It sounds like fun. Only accidents don't affect occupants. So, if anyone can think of a better solution to this problem, let me know, otherwise, if somebody in the know gets the chance, I think it's worthwhile to see accidents affect occupants. Elijah __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail