Branching story and multiple ending question

Status
Not open for further replies.

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
You need to pass a Color object, not the RGB right away... it should be


change_color(Color.new(130,70,34,Alpha value *optional*))
 

lexietanium

Veteran
Veteran
Joined
May 29, 2013
Messages
98
Reaction score
19
First Language
Tagalog :P
Primarily Uses
do I put that in the default script or my custom one? (put it on my default and I got error xD, can't recognize the code) 
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
show me the code that you used...
 

Space Monkey

Warper
Member
Joined
Dec 17, 2013
Messages
1
Reaction score
0
First Language
Thai
Primarily Uses
i was wondering hwo to do this myself, good info here!
 

lexietanium

Veteran
Veteran
Joined
May 29, 2013
Messages
98
Reaction score
19
First Language
Tagalog :P
Primarily Uses
show me the code that you used...
class Window_SaveFile

  alias init_adi initialize

  def initialize(height, index)

    init_adi(height, index)

    change_color(Color.new(130, 70, 34, Alpha value))    

    self.windowskin = Cache.system("Save_Window")

   

    end

end

 

I put it right on the custom script (I was basing this on other menu script I've found, but I probably did it wrong =(

 


i was wondering hwo to do this myself, good info here!
Glad this was able to help =) which one were you looking for? The multiple branch/ending or the window changing
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
change_color(Color.new(130, 70, 34, Alpha value))


==> Alpha value is an optional field, you put a number for alpha there too just like RGB


so it should be like


change_color(Color.new(130, 70, 34))


-> In case you don't want alpha


or put a value in there for alpha


change_color(Color.new(130, 70, 34, 124))


-> approximately, half-transparent


BTW, putting a change_color call in the initialize method might not really do anything or might even bug up your other windows so I suggest doing it only in the place where it's originally found...


in your case, you probably need to do it in the refresh method, basically change normal_color to the Color.new(130, 70, 34) in the refresh method... btw, you might wanna revert it back to normal at the end, in case it bugs things up for your other windows


PS: It's almost time for me to go out of work and I don't think I'll have internet access for until the next day coz I'll be having the oath-taking ceremony for chemical engineers tomorrow... so I won't be able to answer further queries until then... though I might still be able tonight, assuming I'd be able to bring my laptop home...
 
Last edited by a moderator:

lexietanium

Veteran
Veteran
Joined
May 29, 2013
Messages
98
Reaction score
19
First Language
Tagalog :P
Primarily Uses
change_color(Color.new(130, 70, 34, Alpha value))

==> Alpha value is an optional field, you put a number for alpha there too just like RGB

so it should be like

change_color(Color.new(130, 70, 34))

-> In case you don't want alpha

or put a value in there for alpha

change_color(Color.new(130, 70, 34, 124))

-> approximately, half-transparent

BTW, putting a change_color call in the initialize method might not really do anything or might even bug up your other windows so I suggest doing it only in the place where it's originally found...

in your case, you probably need to do it in the refresh method, basically change normal_color to the Color.new(130, 70, 34) in the refresh method... btw, you might wanna revert it back to normal at the end, in case it bugs things up for your other windows

PS: It's almost time for me to go out of work and I don't think I'll have internet access for until the next day coz I'll be having the oath-taking ceremony for chemical engineers tomorrow... so I won't be able to answer further queries until then... though I might still be able tonight, assuming I'd be able to bring my laptop home...
I finally got it working but it changed the color of the text instead xD but hey! At least it's progress =) and > :o good luck dude and congrats!
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
yes of course... it was for the text color... if you wanna change the window color, of a window that is not the default windowskin for your game, then you'd need to recolor the image itself using another program...
 
Last edited by a moderator:

lexietanium

Veteran
Veteran
Joined
May 29, 2013
Messages
98
Reaction score
19
First Language
Tagalog :P
Primarily Uses
I recolored the image =( but it's still showin up as blue. I have both background and pattern as brown but it's still showin up as blue

I know what I did wrong xD. I had color tone on it haha. Fixed it <3 xD
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
color tone in the database? that's weird.. unless you're using the default windowskin coz that's the only one affected by the color tone.... 
 

lexietanium

Veteran
Veteran
Joined
May 29, 2013
Messages
98
Reaction score
19
First Language
Tagalog :P
Primarily Uses
color tone in the database? that's weird.. unless you're using the default windowskin coz that's the only one affected by the color tone.... 
=( It affected all my color tones so I had to put 0 on the rgb. Right now I'm trying to figure out how to move around things. By the way do you happen to know how to make your own custom buttons for the menus?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
IF you mean button like images: You make the images, then you use different methods to show them... like bitmap manipulation etc...


If it's just your own commands, well you need to add the command to the list, and set a handler for that... Commands are added via the window class that will have it, while handlers are added via the scene that will have it (normally)
 
Last edited by a moderator:

Gamingstar

****** Gang Leader
Veteran
Joined
Jul 17, 2017
Messages
51
Reaction score
11
First Language
English
Primarily Uses
RMVXA
Is there any way to do this using numbers?
Example: "change [story] to 1" gets one ending but "change [story] to 2" gets another
I'm not good with coding or RPG maker when it comes to making the game do things
it doesn't do by default, so if there's an easier way please tell me!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
@Gamingstar 2 things here
One is that you have necro-posted, that is, you have posted in a Support thread that has seen no activity for over 30 days. Please check out our Forum Rules here.
The second is that you are asking an unrelated question to that of the OP. Please do not hi-jack a thread.
The solution for both those points is to post your own thread with a bit more detail. My guess is that it will be a question of using switches. You can't make a game without using them at some point. I strongly suggest that you work through Andar's compilation of info for new users, especially the playable tutorials he links to, one for events, and the other for switches and variables. Spending a bit of time on this now will save you a huge amount of time and frustration in the future.

[mod]Closing[/mod]
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games? And, if so, would any of you be interested in a short, proof of concept type non-euclidian puzzle game?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,883
Messages
1,017,232
Members
137,607
Latest member
Maddo
Top