About Racheal's Dynamic Title and making a variable for a script?

Status
Not open for further replies.

modtherich

Embarrassing myself to get answers.
Member
Joined
Apr 21, 2017
Messages
28
Reaction score
3
First Language
English
Primarily Uses
RMMV
Hello again everyone! I have returned with another problem, and I'm really sorry for clogging the front page with my threads :kaoeh:

On the thread for the Dynamic Title script, Kes makes a comment that I get confused about:

At the point you want the image to change, do an event which increases the variable you designated in line 27 by one. And that's it. You don't need to do anything else. The image will move to the next one in the list you provided at lines 40/41
When I make an event, how do I actually increase the variable for the script? Can someone make an event showing how to do this and screenshot it for me? I'm more of a visual person than a text person. I feel pretty guilty asking, it feels like someone doing my homework for me haha, but I really don't know a lot about variables. I've been doing okay in my game so far for someone who's been working on it on-and-off for a few months now, but I had the bright idea to make my title screen images change several times when I hit certain points in the game, and I just don't know how to go about doing it/incorporating it.

I'm really sorry for asking for so much help lately, I hope it's not annoying anyone, and I hope I can get some help. Please and thank you :kaoluv:
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA
That's basic eventing with variables. You should probably go over Andar's guide for beginners if you don't know how to do that, and it has more of the screenshots you want. A link to it is in my signature at the bottom of this post.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
The script uses one of the game variables. So you just use Control Variables to increase it by 1, which will cause the script to display the next title image.

Also, the rule about necroposting does not apply in the scripts forums. If you have a question about an existing script, you can just post it in the thread for that script - no need to create a new thread and link back to the script. Unless your question really isn't about the script but you're just noting that you're using it.
 

modtherich

Embarrassing myself to get answers.
Member
Joined
Apr 21, 2017
Messages
28
Reaction score
3
First Language
English
Primarily Uses
RMMV
This was the only way I could figure out how to increase the variable, as I looked at the guide that was linked but... I just don't understand it. And what I tried doesn't work :(

I'm really sorry, I have severe ADHD and I don't grasp certain things easily. I'm trying to not use it as an excuse, I just wanted to explain why I don't seem to get something that... everyone else seems to understand so easily.

Also, thank you for letting me know that it won't necro if I post there. I may as well stick to this thread though, since I started it and all.
 

Attachments

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,108
Reaction score
13,713
First Language
English
Primarily Uses
RMMV
No.

You modify the script to put in your image names. The variable starts at 0 by default, which refers to the first element of each array.

Code:
  BACKGROUND_NAMES = ["Volcano", "Night"]
  FOREGROUND_NAMES = ["Gargoyles", ""]
means when the variable is set to 0, it will use the Volcano background with the Gargoyles foreground. When the variable is set to 1, it will use the Night background, and no foreground image.

So for each different "version" of the title screen, you will have an extra entry in each of the BACKGROUND_NAMES and FOREGROUND_NAMES arrays in the script.

Because the variable is set to 0 by default, it will always start with the first one in each list.

When you are ready for it to show the second image, use a Control Variables to += 1 to the variable. Then when you are ready for it to show the third image, use a Control Variables += 1 to the variable again. Or you can simply use Control Variables and set it to the number you want to use, rather than += 1 each time.

So your second line is correct, your first is not.
 

modtherich

Embarrassing myself to get answers.
Member
Joined
Apr 21, 2017
Messages
28
Reaction score
3
First Language
English
Primarily Uses
RMMV
My issue seems to be that I don't know how to get "grouptitlescreen" to be connected to the images, which is what I was trying to do. Why is the first line incorrect/how do I get the variable to know what I'm talking about? Is there a place in the script that identifies it that I missed?
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,867
Reaction score
5,240
First Language
Dutch
Primarily Uses
RMXP
Since your variable "grouptitlescreen" is nr. 7, you need change this line:
Code:
TITLE_VARIABLE = 5
to
Code:
TITLE_VARIABLE = 7
Edit: Also moving this to the correct forum.
 
Last edited:

modtherich

Embarrassing myself to get answers.
Member
Joined
Apr 21, 2017
Messages
28
Reaction score
3
First Language
English
Primarily Uses
RMMV
Sorry about it being in the wrong forum. Thank you so much however, changing it to a 7 fixed it :kaoback: I guess this is only meant to use two images total though, since if I try to use more than two backgrounds or foreground images, it doesn't work (and neither does increasing that number, though I suppose it's not meant to do that). Why does changing it to a 7 work?

...And is there possibly a way to make it so that I can use more background/foreground images? Like, 5? :kaocry:
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,867
Reaction score
5,240
First Language
Dutch
Primarily Uses
RMXP
"TITLE_VARIABLE" asks which variable you're working with. In the picture you showed me above, it said 7 ([007:grouptitlescreen]).
If you want to add more background/foreground images, you just need to do what Shaz says here:
You modify the script to put in your image names. The variable starts at 0 by default, which refers to the first element of each array.
Code:
  BACKGROUND_NAMES = ["Volcano", "Night"]
  FOREGROUND_NAMES = ["Gargoyles", ""]
means when the variable is set to 0, it will use the Volcano background with the Gargoyles foreground. When the variable is set to 1, it will use the Night background, and no foreground image.

So for each different "version" of the title screen, you will have an extra entry in each of the BACKGROUND_NAMES and FOREGROUND_NAMES arrays in the script.
So if you want more, you just need to add more to BACKGROUND_NAMES and FOREGROUND_NAMES. Like this:
Code:
  BACKGROUND_NAMES = ["Volcano", "Night", "Title3", "Title4", Title5"]
  FOREGROUND_NAMES = ["Gargoyles", "", "Foreground3", "Foreground4", "Foreground5"]
 

modtherich

Embarrassing myself to get answers.
Member
Joined
Apr 21, 2017
Messages
28
Reaction score
3
First Language
English
Primarily Uses
RMMV
Oh, thank you, this worked! I'm sorry for being such a butt and getting confused so easily apparently, as this seems easier to grasp for others than me :kaodes:

Thank you again :kaohi:
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,867
Reaction score
5,240
First Language
Dutch
Primarily Uses
RMXP
Glad you got it working. :)

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

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.

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top