bg5
2012-05-20 19:53:05
Ok ,so I found big problem ,when I wanted to add 'walk-back from failed random' to my script. FindNormalrandoms doesn't provide all needed information. It outputs TRUE ,if random was solved ,and FALSE ,when random failed either wasn't detected. So we don't know exactly where player is ,when something crash in script - it was failed random or our failed code? ;)
And if we have in script something like:
we don't know what to expect when we log in again - player might be: in script location , inside random or teleported somewhere for failed random. And it makes things overcomplicated. So I suggest
And if we have in script something like:
if not loggedin then LoginPlayer;
//or
AddOnTerminate('CrashSMART');
if not loggedin then terminatescript;
we don't know what to expect when we log in again - player might be: in script location , inside random or teleported somewhere for failed random. And it makes things overcomplicated. So I suggest
function FindNormalRandoms2 : integer // or byte
// output:
// -1 - failed random
// 0 - random not detected
// 1 - solved random