Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mrekim on Mon 30/01/2012 10:09:53

Title: Short question about text manipulation
Post by: mrekim on Mon 30/01/2012 10:09:53
Hi guys,

I'm currently evaluating different engines, programming languages, game makers,...
I have a nifty game idea in mind for a long time now and already wrote the most classes in java.
And here's the crux - I started with lwgjl and found that text output and manipulation is nearly impossible without a complete overhaul.

Imagine a letter full of text - I need to be able to mark/highlight the text and work with the content of the highlighted area.
In Detail, the text should be on a new little paper in the inventory.

Is this possible with the AGS?

Thanks in advance!
Mike
Title: Re: Short question about text manipulation
Post by: on Mon 30/01/2012 11:13:51
Out of the box, no. You have basic string manipulation in AGS (checking for substrings, changing text colour and font, comparing and merging strings), but some of the things you mention are not possible with basic scripting commands.

If you are willing to use a workaround, though, I saresay you can create the effect you want. It would require some setup and advanced scripting, but a letter of text with single elements being selectable, that COULD be scripted.

There was once a module that allowed advanced string maipulation with highlighting and linking, too. I'll see if I can find and link it.
Here: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=29358.0
Title: Re: Short question about text manipulation
Post by: mrekim on Mon 30/01/2012 12:49:39
Thanks for your fast answer!
I will have a look on the module.