The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Spaz1991 on December 31, 2005, 04:25:01 PM

Title: Request: Teleport Script
Post by: Spaz1991 on December 31, 2005, 04:25:01 PM
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
Title: Request: Teleport Script
Post by: acidburn on December 31, 2005, 04:44:08 PM
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
Title: Request: Teleport Script
Post by: Spaz1991 on December 31, 2005, 04:47:30 PM
Cheers, i need to work on my scripting skills, i'm still a n00b, lol
Title: Request: Teleport Script
Post by: acidburn on December 31, 2005, 04:57:48 PM
no worries, glad i could help  :). btw thats not scripting its just event editing.
Title: Request: Teleport Script
Post by: Spaz1991 on December 31, 2005, 05:09:41 PM
kk