Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: edmundito on Mon 18/04/2005 05:56:26

Title: Suggestion: More Property Options!
Post by: edmundito on Mon 18/04/2005 05:56:26
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....
Title: Re: Suggestion: More Property Options!
Post by: GarageGothic on Mon 18/04/2005 14:11:41
Um, is it even possible to change properties at runtime?
Title: Re: Suggestion: More Property Options!
Post by: Ishmael on Mon 18/04/2005 14:15:12
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?
Title: Re: Suggestion: More Property Options!
Post by: strazer on Mon 18/04/2005 17:42:54

Character *MarriedTo[AGS_MAX_CHARACTERS];



  MarriedTo[cBill.ID] = cBetty;
Title: Re: Suggestion: More Property Options!
Post by: Ishmael on Mon 18/04/2005 18:02:34
Right... I'm still at AGS 2.62 you see :P
Title: Re: Suggestion: More Property Options!
Post by: strazer on Mon 18/04/2005 18:07:09

int MarriedTo[150];



  MarriedTo[BILL] = BETTY;


;)
Title: Re: Suggestion: More Property Options!
Post by: Ishmael on Mon 18/04/2005 18:13:34
I do know THAT :)
Title: Re: Suggestion: More Property Options!
Post by: Pumaman on Mon 18/04/2005 20:15:59
YEs, I don't really see the benefit in this over just using varialbes in the script.