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 / I am kinda' new and need some help DBP

Author
Message
steel gollum
17
Years of Service
User Offline
Joined: 30th Jan 2007
Location:
Posted: 18th Apr 2007 03:18
I made a little 500 line RPG game but it is far from a RPG. But I know the other stuff just to lazy to type. What i need is to know how to make my player attack the enemy a random number between the attack strenght of the weapon and pause between attacks. My guy I can just hold the mouse button down and attack it without a random number like a FPS. If any one could tell me how to do this I would appreciate it very much.
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 18th Apr 2007 05:16 Edited at: 18th Apr 2007 05:17
Well, I CAN tell you the random number part:

DAMAGE= MinimumWeaponDamage+RND( MaximumWeaponDamage-MinimumWeaponDamage )

That will give you a random number between MinimumWeaponDamage and MaximumWeaponDamage...

Login to post a reply

Server time is: 2024-09-25 21:26:01
Your offset time is: 2024-09-25 21:26:01