Branching story and multiple ending question

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*))
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) 
show me the code that you used...
i was wondering hwo to do this myself, good info here!
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
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...
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 > 😮 good luck dude and congrats!
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...
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
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.... 
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?
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)
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!
@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.

Moderator note: Closing

Original thread: https://forums.rpgmakerweb.com/threads/branching-story-and-multiple-ending-question.21064/