Axe Software Forums
  Quest Developer Forum
  Help with object properties-types


Author Topic:   Help with object properties-types
FoxMulder posted 22-05-2002 10:05 BST     
Hi everyone.I'm using QDK mostly but I guess a little ASL coding is required as well for game to be of a certain quality.I have two games in production,an adventure which will definitely be released and an action-rpg which (if I don't get bored eventually) might actually turn out to be something good. I got a problem.I want the RPG to generate a number of objects while you are playing but I also want these objects to be of a certain type.For example,the player enters a room and a random number of villains appear.That's the easy part.I also want these objects(the villains) to inherit the type "villain" and all its subtypes and properties.And so if they inherit the type they will all have the stats for villains saving me a lot of duplicating commands.
Alex posted 22-05-2002 19:23 BST          
Hmm, as far as I can remember, and as far as my brief review of the reference guide tells me, I have completely forgotten to add a facility whereby on-the-fly created objects can inherit properties. Woops! One for the next release I think. Unfortunately I can't think of any kind of work-around at the moment either. Hmmmm....
FoxMulder posted 22-05-2002 20:04 BST          
That's ok,Alex.I thought of a different way to handle with the problem.Anyway,it shouldn't be that painstaking though it is true that on-the-fly objects should inherit properties were we to create games with a strong random element