Spawning Random Events, Kinda
This is a relatively simple method to create the perception of random spawning events. In this context, the event is an enemy goblin.
-
◆If:Glen @ Sealed Door is ON ◆Erase Event ◆ :Else ◆Plugin Command:MobileUI hide all instant ◆Set Movement Route:Player :Set Movement Route:◇Wait:400 frames ◆Set Movement Route:gobgob (Wait) :Set Movement Route:◇Opacity:0 ◆Plugin Command:CAM Event 49 111 ◆If:Game Plus Activated is ON ◆Set Movement Route:gobgob (Wait) :Set Movement Route:◇Image:goblin(1) ◆ :Else ◆Set Movement Route:gobgob (Wait) :Set Movement Route:◇Image:goblin(3) ◆ :End ◆Control Variables:#0022 Random X-Fight = Random 0..9 ◆If:Random X-Fight = 0 ◆Script:$gameMap.event(49).locate(33, 100); ◆ :End ◆If:Random X-Fight = 1 ◆Script:$gameMap.event(49).locate(34, 105); ◆ :End ◆If:Random X-Fight = 2 ◆Script:$gameMap.event(49).locate(29, 111); ◆ :End ◆If:Random X-Fight = 3 ◆Script:$gameMap.event(49).locate(26, 116); ◆ :End ◆If:Random X-Fight = 4 ◆Script:$gameMap.event(49).locate(24, 119); ◆ :End ◆If:Random X-Fight = 5 ◆Script:$gameMap.event(49).locate(24, 124); ◆ :End ◆If:Random X-Fight = 6 ◆Script:$gameMap.event(49).locate(14, 123); ◆ :End ◆If:Random X-Fight = 7 ◆Script:$gameMap.event(49).locate(13, 119); ◆ :End ◆If:Random X-Fight = 8 ◆Script:$gameMap.event(49).locate(11, 113); ◆ :End ◆If:Random X-Fight = 9 ◆Script:$gameMap.event(49).locate(18, 109); ◆ :End ◆Set Movement Route:gobgob (Wait) :Set Movement Route:◇Wait:33 frames :Set Movement Route:◇SE:Wind5 (65, 100, 0) :Set Movement Route:◇Opacity:11 :Set Movement Route:◇Wait:6 frames :Set Movement Route:◇Turn Down :Set Movement Route:◇Opacity:33 :Set Movement Route:◇Wait:6 frames :Set Movement Route:◇Turn Left :Set Movement Route:◇Opacity:66 :Set Movement Route:◇Wait:7 frames :Set Movement Route:◇Turn Up :Set Movement Route:◇Opacity:99 :Set Movement Route:◇Wait:8 frames :Set Movement Route:◇Turn Right :Set Movement Route:◇Opacity:111 :Set Movement Route:◇Wait:16 frames :Set Movement Route:◇Turn Down :Set Movement Route:◇Opacity:133 :Set Movement Route:◇Wait:16 frames :Set Movement Route:◇Turn Left :Set Movement Route:◇Opacity:155 :Set Movement Route:◇Wait:16 frames :Set Movement Route:◇Turn Up :Set Movement Route:◇Opacity:177 :Set Movement Route:◇Wait:16 frames :Set Movement Route:◇Turn Right :Set Movement Route:◇Opacity:199 :Set Movement Route:◇Wait:18 frames :Set Movement Route:◇Turn Down :Set Movement Route:◇Opacity:222 :Set Movement Route:◇Wait:20 frames :Set Movement Route:◇Turn Left :Set Movement Route:◇Opacity:244 :Set Movement Route:◇Wait:22 frames :Set Movement Route:◇Turn Up :Set Movement Route:◇Opacity:255 :Set Movement Route:◇Wait:24 frames :Set Movement Route:◇Turn Right :Set Movement Route:◇SE:Jump1 (90, 100, 0) :Set Movement Route:◇Jump:+0, +0 :Set Movement Route:◇Turn Down :Set Movement Route:◇Wait:66 frames ◆Fadeout Screen ◆Wait:22 frames ◆Plugin Command:CAM Player 88 ◆Wait:22 frames ◆Plugin Command:CAM DISABLE ◆Fadein Screen ◆Plugin Command:MobileUI show all instant ◆ :End ◆Erase Event