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 / Having trouble with vars

Author
Message
Murdock 743
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location:
Posted: 6th Mar 2008 02:27
Alright everyone,
I recently decided to re-learn DBP after a few years vacation and I have fun into a very simple problem which I cannot fix. my issue is that I want to subtract a randon value stored into a var from another var I made. Here is the code...

I get an error saying that it cannot understand the command. Thanks for any help.

Cheers,
Christian
Ed222
16
Years of Service
User Offline
Joined: 3rd Nov 2007
Location: Calgary
Posted: 6th Mar 2008 03:15 Edited at: 6th Mar 2008 03:17
Changed code





I changed your
to choice and the Player_choice to choice

Tip Of The Day!: a new rouge anti-virus has risen in 2008 called xpantivirus 2008 don't download this. Please help spread the word.
Murdock 743
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location:
Posted: 6th Mar 2008 04:01
The issue is that enemy_health-damage=enemy_health is where I error. It says it does not understand the command.

Cheers,
Christian
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 6th Mar 2008 04:05
You can't assign a value to an expression. Maybe you you want:



???
Murdock 743
20
Years of Service
User Offline
Joined: 16th Jun 2004
Location:
Posted: 6th Mar 2008 04:18
Lovely, that would be my problem. I guess I'm so used to TI basic that I wanted to do it backwards. Thanks for the help.

Cheers,
Christian

Login to post a reply

Server time is: 2024-09-27 12:21:18
Your offset time is: 2024-09-27 12:21:18