Exits question

crystalwizard
28 Jan 2017, 04:37

can a success/fail roll be used on an exit? I have an exit that I want to have send you to a death room 30% of the time, and the rest of the time send you to the next room on the map.


Anonynn
28 Jan 2017, 05:58

Yup. Although, it wouldn't be a "dice roll" but a random chance instead.

if (RandomChance(30)) {
MoveObject (player, roomnamehere)
}
else {
MoveObject (player, roomnamehere)
}

Hope that helps!


crystalwizard
28 Jan 2017, 18:36

It does, yes, and thanks. It works perfectly.


Anonynn
28 Jan 2017, 19:15

You're welcome :)