ID:147870
 
I have a problem with my (nearly inexistant) combat system.

It's a dice based combat system, (And for anyone who plays Warhammer, I'm trying to make it as close to that as possible.)

I put the to-hit and the to-wound rolls in, but when the combat starts up, the client freezes, probably because of all that data it's gotta go through.

Can anyone help me?

P.S. The game is a Custom Text MUD, based on Zilal's tutorial, but with a few of the usual verbs.

Thanks,

-Hilel.
How about showing us your combat system or a snippet from it thats giving you a problem so we can try to help you with this, the info you provided simply isn't enough to even attempt to correct the problem.

Trog
In response to Troglodyte
I don't have much of a code for it, all i have is

(a snippet of the to-hit chart):

proc
Rollhitdie()
var/W = usr.Ws
var/w = src.Ws
var/dice1 = "1d6"

var/th = roll(dice1)
//
if(W == 1&&w==1)
if(th>=4)
usr.Rollwounddie(src)

from the comments is the start of the to-hit chart. going down, the W and the w (lower case) vars go up, the to-hit chart has one hundred of those, (from the comments), and the to-wound chart has 80 of those, (from the comments).

if you can help, thanks.

-Hilel.
In response to Hilel
In a proc don't assume usr means anything. and in this snippet it doesn't.
take a look here, its Lummox's usr-unfriendly tutor. I think more DM programmers should read, even memorize this, this is your DM bible, it teaches you when and where to use usr and where not to use usr which can help avoid many hard to find bugs in the long-run.
http://www.byondscape.com/ascape.dmb/LummoxJR.2002-1104/

Trog