In KQ2, there is a part where you're in the swamp and you have to follow the directions on the piece of paper from the church and it randomizes the letters each time you play the game.
The questions I'm asking is, how do you do that? The exact same code, the exact same thing. Yeah, I may aswell say this is for that Project Bromios game I'm working on. (at last)
Well, I'm not the programmer I already got someone helping me with that, yet that's the only thing he isn't sure about. Now I have no idea what sort of code to expect, whether it's a huge piece of script or something different, I'd really like to know how to do this. I'd be really appriciative if someone could tell me.
KQ2 related AGS code (spoiler I suppose)
Moderators: adeyke, VampD3, eriqchang, Angelus3K
Simple. There's, say, 5 different poems...one with its own set of directions.
In the AGS-editor, go to the script-dropdown menu and select Game_Start.
In the section that opens, put something like:
Now GlobalInt 100 has a different value each time you start a new game.
In the AGS-editor, go to the script-dropdown menu and select Game_Start.
In the section that opens, put something like:
Code: Select all
SetGlobalInt(100, Random(4));