Status multiplication
ramtha
22 Dec 2005, 09:50Is there anyway to take to status variables and mutiply them together to get a new one.
Example: Strength x Defence = health
I tried in the QDK, !/ %stamina% x %defence% HP
But i would get !/15x13 hp
or if i did something else (cant remember what) i would get some random negitive number.
Example: Strength x Defence = health
I tried in the QDK, !/ %stamina% x %defence% HP
But i would get !/15x13 hp
or if i did something else (cant remember what) i would get some random negitive number.
paul_one
22 Dec 2005, 10:50Don't post vote topics that are pointless. It's not the right thing to do at all.
As for multiplication: use * .
15 * 20 will give 300.
BUT - you look as if you're using it in the display area.
I'll smash a demo together if I can. Upload the files for you.
As for multiplication: use * .
15 * 20 will give 300.
BUT - you look as if you're using it in the display area.
I'll smash a demo together if I can. Upload the files for you.
ramtha
22 Dec 2005, 11:48I'll have to be honest. I'm confused. If it was pointless. Why respond. Thank you any way just the same. I just feel guilty for asking so many stupid questions, i'm all new to this and stuff. so if i was i was going to ty and stop. And uhh, the second stuff. That also confused me. How do you mean smashing demos and what not?
Thing i wanted to do, was if the strength was raised, I wanted the health to automaticaly raise. Not just with the numbers themselves being multipied.
Thing i wanted to do, was if the strength was raised, I wanted the health to automaticaly raise. Not just with the numbers themselves being multipied.
paul_one
22 Dec 2005, 12:32Don't post vote topics that are pointless. It's not the right thing to do at all.
You see that bold part?
In future, don't post a VOTE topic unless it really is to get a census feel from the group. Whether you're asking alot of questions is neither here nor there.
I would have replied earlier - with answers to at least a few of them - but I just got back from a birthday cruise, and am still feeling the hot poker of xmas seering my eyeballs out.
Don't feel guilty for asking so many questions. It's just a shame that you've got no previous experience in programming at all.
And the smashing demo's together, is that I've got a few at home, stored away. I'll update them to ASL 350 (the latest Quest version) and change it so that it's more relevent to you. Shouldn't take more than 10 minutes max.
And I got what you wanted to do. There's a thing in a status variable called "onchange". So when the strength changes - the health can also change.
Remember - you nead 2 health variables! One for the MAX value, and one for the health of the player at any given time.
ramtha
22 Dec 2005, 13:04Hmm, well I can't get rid of the poll so thats a damn shame. I suppose i'm too new to this for my own good.
But what do you mean by two health variables, do you mean this
!/100
or something else?
But what do you mean by two health variables, do you mean this
!/100
or something else?
Alex
22 Dec 2005, 15:00If you edit the post, there's a "Delete poll" option (well, I can see it anyway). I've deleted it for you...
ramtha
22 Dec 2005, 19:50sweet, that rocks.
paul_one
28 Dec 2005, 16:03Have got a demo created. Need to get home to upload it.
http://www.compwhizz.freeserve.co.uk/asldemos/multi.asl
http://www.compwhizz.freeserve.co.uk/asldemos/multi.asl