Announcement: Remember: you are giving away your fantastic ideas for free, and somebody else might even make money from them (or appear to). That's just how the world works! If you're worried about it, maybe you shouldn't post your ideas here.


Caravel Forum : DROD Boards : Feature Requests : Variables interaction (PLEASE)
New Topic New Poll Post Reply
Poster Message
Insane
Level: Master Delver
Avatar
Rank Points: 154
Registered: 08-06-2005
IP: Logged
icon Variables interaction (0)  
Hey,

I'm currently developing a highly complex DROD RPG, and I'm in desperate need of the following:
Allow variables to be added to/subtracted from/multiplied by/etc other variables.
So, in the current dialog:

Variables:
------    --------    --------     -------
|VarA|    |Assign|    |Number|     |*Box*|
|VarB|    |Add   |    |Text  |     -------
------    --------    |Var   |
              .       --------
              .
              .


Basically I need to multipy for instance SwordDamage with Level.

-Insane

[Last edited by Insane at 04-09-2007 04:01 PM]
04-09-2007 at 03:53 PM
View Profile Send Private Message to User Visit Homepage Show all user's posts This architect's holds Quote Reply
Insane
Level: Master Delver
Avatar
Rank Points: 154
Registered: 08-06-2005
IP: Logged
icon Re: Variables interaction (0)  
Hmm,

Actually I've come up with a slightly better solution for the problem.
When assigning a value to variables, allow math expressions to be used, eg. "10+1/4", or "($VarA$+10)/$VarB$".
Would this be possible?

-Insane

[Last edited by Insane at 04-09-2007 04:11 PM]
04-09-2007 at 04:10 PM
View Profile Send Private Message to User Visit Homepage Show all user's posts This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1308
Registered: 11-24-2005
IP: Logged
icon Re: Variables interaction (0)  
The variable assignment field takes more than just numbers. (Hint, hint)
04-09-2007 at 05:01 PM
View Profile Show all user's posts Quote Reply
Insane
Level: Master Delver
Avatar
Rank Points: 154
Registered: 08-06-2005
IP: Logged
icon Re: Variables interaction (0)  
coppro wrote:
The variable assignment field takes more than just numbers. (Hint, hint)


Who what when where why!!?

-Insane
04-09-2007 at 05:07 PM
View Profile Send Private Message to User Visit Homepage Show all user's posts This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1308
Registered: 11-24-2005
IP: Logged
icon Re: Variables interaction (+1)  
Aw, I was hoping you'd get it.

Put a variable name in the assignment field.
04-09-2007 at 05:12 PM
View Profile Show all user's posts Quote Reply
Insane
Level: Master Delver
Avatar
Rank Points: 154
Registered: 08-06-2005
IP: Logged
icon Re: Variables interaction (0)  
coppro wrote:
Aw, I was hoping you'd get it.

Put a variable name in the assignment field.

Yeah, I just read it up in the manual.
I swear I will never post a bug/feature request without consulting the manual first!!

-Insane

EDIT: On another note, my RPG still doesn't work for health values greater than 100, as DROD doesn't support floats or at least doubles.

[Last edited by Insane at 04-09-2007 05:24 PM]
04-09-2007 at 05:15 PM
View Profile Send Private Message to User Visit Homepage Show all user's posts This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5064
Registered: 02-04-2003
IP: Logged
icon Re: Variables interaction (0)  
Insane wrote:
EDIT: On another note, my RPG still doesn't work for health values greater than 100, as DROD doesn't support floats or at least doubles.
No, just integers. But those can go much over 100.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
04-10-2007 at 04:43 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Insane
Level: Master Delver
Avatar
Rank Points: 154
Registered: 08-06-2005
IP: Logged
icon Re: Variables interaction (0)  
mrimer wrote:
Insane wrote:
EDIT: On another note, my RPG still doesn't work for health values greater than 100, as DROD doesn't support floats or at least doubles.
No, just integers. But those can go much over 100.

I meant that actually because my healthbar calculates the health using 100, and dividing 100 by something greater than 100 results in 1 or 0.

-Insane
04-10-2007 at 04:57 PM
View Profile Send Private Message to User Visit Homepage Show all user's posts This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5064
Registered: 02-04-2003
IP: Logged
icon Re: Variables interaction (0)  
Insane wrote:
mrimer wrote:
Insane wrote:
EDIT: On another note, my RPG still doesn't work for health values greater than 100, as DROD doesn't support floats or at least doubles.
No, just integers. But those can go much over 100.

I meant that actually because my healthbar calculates the health using 100, and dividing 100 by something greater than 100 results in 1 or 0.

-Insane
Using fixed point conversions, you can deal with this issue. For instance, use 10000 as the health instead of 100, and divide it by 100 to display the health value.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
04-10-2007 at 04:59 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Insane
Level: Master Delver
Avatar
Rank Points: 154
Registered: 08-06-2005
IP: Logged
icon Re: Variables interaction (0)  
mrimer wrote:
Insane wrote:
mrimer wrote:
Insane wrote:
EDIT: On another note, my RPG still doesn't work for health values greater than 100, as DROD doesn't support floats or at least doubles.
No, just integers. But those can go much over 100.

I meant that actually because my healthbar calculates the health using 100, and dividing 100 by something greater than 100 results in 1 or 0.

-Insane
Using fixed point conversions, you can deal with this issue. For instance, use 10000 as the health instead of 100, and divide it by 100 to display the health value.

That's what I did :).
My healthbar STILL doesn't upgrade correctly though *headsmash*.

-Insane
04-10-2007 at 05:05 PM
View Profile Send Private Message to User Visit Homepage Show all user's posts This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1308
Registered: 11-24-2005
IP: Logged
icon Re: Variables interaction (0)  
I could take a look at the script if you PMed it to me.
04-10-2007 at 05:07 PM
View Profile Show all user's posts Quote Reply
Someone Else
Level: Smitemaster
Avatar
Rank Points: 1306
Registered: 06-14-2005
IP: Logged
icon Re: Variables interaction (0)  
I could too. Actually, the room with the script in it would be easier.
04-11-2007 at 07:22 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Banjooie
Level: Smitemaster
Avatar
Rank Points: 1645
Registered: 12-12-2004
IP: Logged
icon Re: Variables interaction (0)  
The healthbar variable is...OVER NINE THOUSAND?
04-13-2007 at 01:17 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Chaco
Level: Smitemaster
Rank Points: 3626
Registered: 10-06-2005
IP: Logged
icon Re: Variables interaction (0)  
Well, of course, Banjooie. Final Fantasy characters could still one-hit-kill Beethro in this circumstance, so obviously he needs more than 9999 health ;)

____________________________
Quick links to my stuff (in case you forgot where it was):
Click here to view the secret text

04-13-2007 at 01:38 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
trick
Level: Legendary Smitemaster
Rank Points: 2580
Registered: 04-12-2003
IP: Logged
icon Re: Variables interaction (+1)  
Perhaps the scouter's malfunctioning ?


[Last edited by trick at 04-13-2007 02:48 PM]
04-13-2007 at 02:13 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Banjooie
Level: Smitemaster
Avatar
Rank Points: 1645
Registered: 12-12-2004
IP: Logged
icon Re: Variables interaction (+1)  
trick wrote:
Perhaps the scouter's malfunctioning ?

*Crushes it to be sure*
04-13-2007 at 10:41 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Feature Requests : Variables interaction (PLEASE)
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.