Hey, this might be something for ags 2.8 or ags 2.71 or whatever:
On the properties, I know you can have a string, boolean, or integer to set the values, but what if you could also point to characters, objects, and inventory items?
Here's an example of how this is useful: Let's say that characters can get married. There could be a property that states who the character is married to. Yes, I'm aware that you can also use numbers to identify characters, but you always have to think "oh, what's 7 again? Oh, that's Tim!" and such....
Um, is it even possible to change properties at runtime?
Quote from: GarageGothic on Mon 18/04/2005 14:11:41
Um, is it even possible to change properties at runtime?
No, AFAIK.
Well, you don't need new protopies... you can make an array for it...
cBILL.married = BETTY;
or whatever... or?
Character *MarriedTo[AGS_MAX_CHARACTERS];
MarriedTo[cBill.ID] = cBetty;
Right... I'm still at AGS 2.62 you see :P
int MarriedTo[150];
MarriedTo[BILL] = BETTY;
;)
I do know THAT :)
YEs, I don't really see the benefit in this over just using varialbes in the script.