Putting RPG Character attributes into Torque
by Travis Vroman · in General Discussion · 04/30/2003 (7:23 pm) · 2 replies
OK, I have no clue where to begin to put in character attributes (such as strength, health, endurance, magic, defense, mind, etc...) I want to be able to have these attributes for severqal characters, and I want to be able to define curves for each as he/she levels up. How would I do this?
Thanx,
-T
Thanx,
-T
#2
-B
-Note - I'm not a great programmer... I mainly got the graphics, gui and gameplay end of the stuff.
05/05/2003 (5:29 pm)
ok... but I know nothing about how to do this... can you give me an example maybe and possibly explain how to plug it in to the game?-B
-Note - I'm not a great programmer... I mainly got the graphics, gui and gameplay end of the stuff.
Torque Owner Jarrod Roberson
On to the answer, you could either put them as script based variables or as attributes on the Player class or a sub-class of Player depending on where you will be doing the calculations and other design issues such as exposing them to either side of the code c++/script or both.