Game Development Community

Varying Max Health

by Kyle Cook · in Torque Game Engine · 06/27/2006 (7:27 pm) · 6 replies

I was wondering if there was a way to adjust the max health of a player with the help of a variable. I have busted my brain trying to figure out a way to do this and the best idea I had was passing a variable to the datablock and then just tossing it in the maxDamage field, but I can't figure out how to pass something to the datablock. To make matters a little worse (not really) the variable is coming from a SqLite query.

#1
06/28/2006 (11:42 am)
I still need help with this, so I will bump it.
#2
06/28/2006 (12:02 pm)
You know, there's a ton of people needing help and if everyone would bump their thread after 16 hours we wouldn't be answering any questions here.

24 hours is more than reasonable given that we have timezones and some people might not even have had a chance to logon and answer your question because they're sleeping or having a life in general..
#3
06/29/2006 (6:54 am)
I sympathize with the urgency, Kyle, but you've got to give folks more time. Some of us only get out of bed once or twice a week to check the forums. =D

Check out the two methods in this resource. That should do the trick!
#4
06/29/2006 (7:56 am)
Thanks guys, I guess I shouldn't get in such a hurry =-D
#5
06/29/2006 (10:05 am)
Enthusiasm is a good thing! When you get to the point that you really don't care if anyone answers... well, then you've got a problem. =)
#6
07/07/2006 (11:54 am)
For those of you that are wondering the same thing, here is the solution I found.

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9774