Workaround the custom properties limit

Started by Night Goat, Tue 15/10/2013 19:09:02

Previous topic - Next topic

Night Goat

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


Crimson Wizard

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

Night Goat

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.



SMF spam blocked by CleanTalk