RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Request: Teleport Script

Started by Spaz1991, December 31, 2005, 04:25:01 PM

0 Members and 1 Guest are viewing this topic.

Spaz1991

I need a script which allows the teleport feature to teleport to several spots of my choosing (randomly selcting one place out of the choosen, to teleport to), basicly i need a random teleport script of some sort, i am not sure if this has been done before, but i would appreciate any help

acidburn

This can be done in an event by generating a random number then using conditional branches. Like:

<>Variable:[0001:random teleport] = Random (1..3)
<>Conditional Branch: Variable:[0001:random teleport] == 1
<>Teleport [001: Map001], (007,005)
<>
: end

<>Conditional Branch: Variable:[0001:random teleport] == 2
<>Teleport [001: Map001], (005,008)
<>
: end

<>Conditional Branch: Variable:[0001:random teleport] == 3
<>Teleport [001: Map001], (006,007)
<>
: end

Spaz1991

Cheers, i need to work on my scripting skills, i'm still a n00b, lol

acidburn

no worries, glad i could help  :). btw thats not scripting its just event editing.

Spaz1991