Suggestion: More Property Options!

Started by edmundito, Mon 18/04/2005 05:56:26

Previous topic - Next topic

edmundito

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....

GarageGothic

Um, is it even possible to change properties at runtime?

Ishmael

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?
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

strazer

Code: ags

Character *MarriedTo[AGS_MAX_CHARACTERS];


Code: ags

  MarriedTo[cBill.ID] = cBetty;

Ishmael

Right... I'm still at AGS 2.62 you see :P
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

strazer

Code: ags

int MarriedTo[150];


Code: ags

  MarriedTo[BILL] = BETTY;


;)

Ishmael

I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Pumaman

YEs, I don't really see the benefit in this over just using varialbes in the script.

SMF spam blocked by CleanTalk