RPG Maker XP animate double picture layer

maarten

Villager
Member
Joined
Apr 21, 2016
Messages
24
Reaction score
0
First Language
Dutch
Primarily Uses
Hi everything.


I want an event that is autorun when an second autorun event layer is upper side. But I have an script for my title screen see here.


http://forum.chaos-project.com/index.php?topic=12465.0


To do is things as Conditional Branch to choose load game or new game or start game. Such as an image or sound. And that is not working. Can you help me.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,370
Reaction score
8,536
First Language
English
Primarily Uses
RMMV
I've moved this thread to XP Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

maarten

Villager
Member
Joined
Apr 21, 2016
Messages
24
Reaction score
0
First Language
Dutch
Primarily Uses
I have now an next question. How to script an event with new game or load game.
 

Heretic86

Veteran
Veteran
Joined
Nov 30, 2014
Messages
240
Reaction score
167
First Language
Engrish
Primarily Uses
In response to your first question, there are a couple of ways you can do this.  First is with the "Conditions" section of the Event.  For example, give an Event two Pages.  Page 1 does an Autorun, then turns on Self Switch A.  Page 2 is also set to Autorun, but set Self Switch A as a Condition.  Page 2 won't run until Self Switch A is set to On.


The other way is to trick an Event to run with a Script Call from another Event, which works on ANY Event, not just Autorun Events.


$game_map.events[event_id].start


$game_map.events[24].start


Could you please explain your 2nd question a bit better?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
please use different threads for different questions.
 

maarten

Villager
Member
Joined
Apr 21, 2016
Messages
24
Reaction score
0
First Language
Dutch
Primarily Uses
In response to your first question, there are a couple of ways you can do this.  First is with the "Conditions" section of the Event.  For example, give an Event two Pages.  Page 1 does an Autorun, then turns on Self Switch A.  Page 2 is also set to Autorun, but set Self Switch A as a Condition.  Page 2 won't run until Self Switch A is set to On.


The other way is to trick an Event to run with a Script Call from another Event, which works on ANY Event, not just Autorun Events.


$game_map.events[event_id].start


$game_map.events[24].start


Could you please explain your 2nd question a bit better?
Your scripts &game_map.events[24].start get an error when I press Conditional Branch C. It gives


NoMethodError occured while running script.


Undefined method start for nil:Nilclass.


Can you help me Heretic. :)
 
Last edited by a moderator:

Heretic86

Veteran
Veteran
Joined
Nov 30, 2014
Messages
240
Reaction score
167
First Language
Engrish
Primarily Uses
That means Event 24 doesnt exist.  Change the number to the number of the Game Event you want to do in the script call.


As far as detecting if a game has been loaded, you can use a Global Variable.  One of the rare times that I will suggest using them.  In Event -> Scripts on the Title Screen somewhere, just add one line that says


Script: $foo = true


Then, after loading, put in a Conditional Branch and another script:


Condition: $foo == true


  Script: $foo = false


end
 

maarten

Villager
Member
Joined
Apr 21, 2016
Messages
24
Reaction score
0
First Language
Dutch
Primarily Uses
That means Event 24 doesnt exist.  Change the number to the number of the Game Event you want to do in the script call.


As far as detecting if a game has been loaded, you can use a Global Variable.  One of the rare times that I will suggest using them.  In Event -> Scripts on the Title Screen somewhere, just add one line that says


Script: $foo = true


Then, after loading, put in a Conditional Branch and another script:


Condition: $foo == true


  Script: $foo = false


end
It says now Syntaxerror. How can I fix it. And how can I change the number of the event.
 

Heretic86

Veteran
Veteran
Joined
Nov 30, 2014
Messages
240
Reaction score
167
First Language
Engrish
Primarily Uses
You dont change the Number of the Event.  Up at the very top of the Event Editor Window, it should say something like Edit Event - ID:017, its right above the Name, which defaults to the ID number, so here you would see EV017 as the Name.  Dont change Event IDs themselves, just in the script calls.


When we say use a Script and put down


$game_map.events[123]


That means you should change 123 to what ever your Event ID is.


Now, for the Syntax Error, most likely you put in a Conditional Branch -> Script with the word "if".  In the Conditional Branch -> Script, dont use the word "if", just stuff like "$foo == true" but without the " characters.
 

maarten

Villager
Member
Joined
Apr 21, 2016
Messages
24
Reaction score
0
First Language
Dutch
Primarily Uses
Here is an video about the problem. :o










The options bar is the problem to take it to autorun. I have do that. But the glitch changed that problem. :distrust: The New Game and Continue options are not animated. And stop it with one animation. :headshake:  Anyway I have also looked at the Megaman Battle Network 4 5 6 4.5 sounds. Is there anyone that has an web for it. I can never found this things.
 

maarten

Villager
Member
Joined
Apr 21, 2016
Messages
24
Reaction score
0
First Language
Dutch
Primarily Uses

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.
time for a new avatar :)

Forum statistics

Threads
106,018
Messages
1,018,357
Members
137,803
Latest member
andrewcole
Top