Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Night Goat on Tue 15/10/2013 19:09:02

Title: Workaround the custom properties limit
Post by: Night Goat on Tue 15/10/2013 19:09:02
Hi, I need to get around the custom properties limit, I already tried to get around it using ags alpha 3.4 but it's too unstable so if anyone knows if and how it is possible I'd be very grateful.

By the way: for any ideas about my problem with 3.4 Alpha here's the post http://www.adventuregamestudio.co.uk/forums/index.php?topic=48629.60

best regards

Title: Re: Workaround the custom properties limit
Post by: Crimson Wizard on Wed 16/10/2013 22:06:24
This all depends on what do you need the properties for. In many cases the solution might be to manually create dynamic array(s) of integers or strings in script, and use these instead.
Then, there's a properties module, that also allows to change their values at runtime: http://www.adventuregamestudio.co.uk/forums/index.php?topic=27385.0
Title: Re: Workaround the custom properties limit
Post by: Night Goat on Mon 21/10/2013 19:02:05
Hi,
thanks for the suggestion, i tried to use this as a work around, but I don't see a good way.

I need the custom properties for a game on differential diagnosis, therefore I have more than 100 questions and about 500 characters. So to get around creating the dialogs over and over again I created the dialog scripts dynamic using answers like this 
//code
@1
  String Temperature = cSecondaryCharacter.GetTextProperty("temperature");
  cSecondaryCharacter.Say("%s", Temperature);
//code
which makes different characters answer correctly as defined in the custom properties.

Therefore it seems to me very exhausting programming this by using dynamic arrays since I would have to change the arrays too often.