Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Battle System help needed.

Author
Message
N3R0
14
Years of Service
User Offline
Joined: 11th May 2010
Location:
Posted: 16th May 2010 02:48



This is a battle system, rather basic, but you get the idea. The problem is while its doing the calculations the opptohit will always be higher than the tohit, and the damage is always weird. Can anyone help, and anyone who wants to mod this or use it for theirs just tell me. I would like to see how you used it.
Spectre 117
14
Years of Service
User Offline
Joined: 18th Apr 2010
Location: *Insert cheesy location here*
Posted: 16th May 2010 05:14
I tried to find the error in your code but had no luck. Maybe someone more experienced will be able to help. Sorry.
Dia
19
Years of Service
User Offline
Joined: 16th Jan 2005
Location:
Posted: 16th May 2010 05:37 Edited at: 16th May 2010 05:39
woah...wierd

ok a couple of issues

- I find it difficult to use goto's, they are the bastard spawn of the devil and the original basic language

- your use of types is.... most odd - see what I did below

- you reference "stat(class).acc" but you never give a value to the variable 'class', so it defaults to 0, hence tohit = rnd(5)+1+0*0 - may be why opptohit was always > tohit (the same thing happened with the plyrdmg variable) - you DID assign an input value to classc, so I am assuming that is wht you meant to use

that's about it for your code, but when you work out your tohit numbers, you are ensuring that the thief will always have a lower number than the other two classes, the tohit ranges you have specified are:

Ranger - 49>54
Swordsman - 49>54
Thief - 19>24

so that needs a little balancing

this is not exactly the way I would have written it, but I have had a bash at modifying your code as below



give it a bash and see if you can figure out what I have done

This is not the Sig you are looking for....

Login to post a reply

Server time is: 2024-11-24 15:54:20
Your offset time is: 2024-11-24 15:54:20