|
Axe Software Forums
Quest Developer Forum Battle system
|
Author | Topic: Battle system |
babydragon |
posted 11-11-2001 22:21 GMT
All right, now I'm trying to set up a basic battle system. I used the status variables for all the stats that the character would have. Question is, what do I do about stats for an enemy (like enemy health, etc). Doesn't seem to make sense to make that a status variable since I don't want the character to be viewing all that data (unless I could hide it) and anyway that would potentially be a lot of status variables. I'm not very experienced with programming, but maybe an array or something? Any hints on how to set up stats (like health) for a monster or something? Thanx!!!! |
Alex |
posted 11-11-2001 23:00 GMT
Properties are what you're looking for - they're just lovely! |
babydragon |
posted 12-11-2001 12:11 GMT
All right, can someone give me a short example of how a property works? |
Computer Whizz |
posted 12-11-2001 02:23 GMT
Well, the basic concept is this: properties are little "tags" which an object in a room has.... these properties can be checked, altered ect... and are VERY useful! Now, to do this you need to refference to the object, then to the property and then to the value! This info will help here, as it's no good giving out code if you don't get the "terminology" of it! define object <ball> Now, when the player looks at the ball he "should" see that it's green.... but when he types a command, like "paint ball" and this runs the object's action "change_colour" then look sat it again, he will see it has changed to orange. Computer Whizz |
carlii |
posted 13-11-2001 08:19 GMT
hmmm interestin concept.... |