SRL Archive - OSR Help

How to log out if failed a random? or cannot complete?


Cage

2013-10-13 11:16:08

Hello :)

I am having some trouble when my character gets certain random events. How do I go about implementing a method which logs my player out if it detects something it cannot complete. For example, I recently got given a strange box, and it continued on with my script and the box ended up replicating. How can I avoid a situation like this from occurring?

Thanks

Hoodz

2013-10-13 11:17:44

From: Cage
Hello :)

I am having some trouble when my character gets certain random events. How do I go about implementing a method which logs my player out if it detects something it cannot complete. For example, I recently got given a strange box, and it continued on with my script and the box ended up replicating. How can I avoid a situation like this from occurring?

Thanks

on most randoms it should log off, randoms that teleports you away. you can make your own function for the strange box if you want.
you can make a dtm of the strangebox and if that dtm is found it will log off.

Cage

2013-10-13 11:22:17

From: hoodz
on most randoms it should log off, randoms that teleports you away. you can make your own function for the strange box if you want.
you can make a dtm of the strangebox and if that dtm is found it will log off.


Good idea, Thanks. Kicking myself for not thinking of that now lol.

Wanted Returns

2013-10-13 11:30:14

You'll need feedback from the random itself (on the developer side of the include) changes etc. would have to be made so things are set up a certain way… I'm not familiar with the latest version(s) of SRL

A lot people build location/etc detection into their script so it logs out if things are messed up anyways

If things were designed a certain way you could do something like this

FindRandoms(True);

True being a parameter meaning log out if failed impossible random etc.