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 / Problem with DEC Command

Author
Message
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 4th Mar 2007 15:26
Is it possible to use the DEC command to decrease a variable by another variable? I'm trying to do the following:

dec health1,strength

in order to decrease an enemies health by my character's strength when I hit him, but his health doesn't go down.
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 4th Mar 2007 18:39
Works fine. You are going to have to give us some code to look at if you want some help.



Boo!
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 4th Mar 2007 19:46
thanx, I figured out what I was doing wrong.

Login to post a reply

Server time is: 2024-09-25 19:27:26
Your offset time is: 2024-09-25 19:27:26