Page 1 of 1

[Custom Dungeon Script Issues] Random Teleporter

Posted: Thu Jan 22, 2015 9:16 am
by David Ward
My friend and I are trying to create a set of branching pathways through dungeons, and the best way to design this so far is to have teleporters that, for example, send the player to 1 of 3 locations, randomly. The problem is, we have no idea how to begin scripting something like that. Is there anything in scripting that can randomly generate a number, and then have a teleporter function differently depending on the number generated?