Okay, this is a fun question.
Is there any way I can randomize something upon the loading of a save-game? I want to prevent players from being able to brute-force a solution.
Thanks!
You can detect whether a savegame is loaded by checking for the event eEventRestoreGame in the on_event() (http://www.adventuregamestudio.co.uk/manual/TextScriptEvents.htm) global function.
Just do something like below in the global script:
function on_event(EventType event, int data){
if (event == eEventRestoreGame) {
//randomise codes here
}
}
Fantastic. Thank you kindly!
Also you're evil for doing this : )
You should at least give players some warning (i.e. putting in some visual cue when the puzzle re-randomizes itself). Otherwise players are liable to get stuck because of the meta-logic rather than on the puzzle itself.
No warning, only hardcore. This must be in every game XD.