Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

Color Inverter Script

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade
View previous topic :: View next topic  
Author Message
Blazes Battles Inc.
I'm a chimp, not a




Joined: 25 Jan 2003
Posts: 505

PostPosted: Sun Aug 03, 2003 8:52 am    Post subject: Color Inverter Script Reply with quote

(Note: This may belong in OHR Plotscripting Help, so please move it if it does. Since I'm not asking for help, though, I wasn't sure if I should put that in there or not...)

While I was brainstorming for ideas of how to enter a battle in Rune Mage, I wanted to do something just a bit different from normal battles. Most RPGs have some weird warping effect, and a lot of the earlier ones had a pixel-expanding sort of way to go into battle, but I couldn't figure out anyway to easily do that in the OHR. So I went into the Plotscripting Dictionary, and I got the idea to make every color invert, if that's what it's even called, so that every color became the exact opposite of what it was in color. As in, black turns to white, blue turns to yellow (we're talking light here, not pigments, so blue doesn't turn to orange like it would if we talking pigment colors), etc., etc. I've never seen it done before (not that it hasn't BEEN done before, I haven't played lots of games on the gamelist and someone may have already done it but not released the game), so I decided to use it. Anyways, if anyone else wants to use it, here's the script:

Code:
Define script (#,clrinvert,none)

Script, clrinvert, begin
Variable (var1)
Variable (var2)
For (var1,0,2,1)
Do(for(var2,0,255,1)
Do(Write color (var2,var1,63--read color (var2,var1))))
Fade screen in
##You can use 'update palette' instead of
##'fade screen in' for an instant change
end


If you've used scripts before, this is obviously a mind-numbingly simple one, but if you don't know what it's doing, it runs through every color on the palette changing the three different colors in them (being blue, green, or red). In other words, it runs through the same two commands 768 times. It doesn't even take that much time for it to do it. Try it at least once to see what the menu looks like afterwards, this ugly pale yellow color with some pinkish stuff for some of the solid backgrounds.

The good thing about this is the commands don't use pre-defined numbers, so it'll work with any master palette. Feel free to use this for whatever.
_________________
Preserve OHR history! Do it for the children!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Fenrir-Lunaris
WUT




Joined: 03 Feb 2003
Posts: 1747

PostPosted: Fri Aug 15, 2003 9:58 pm    Post subject: Reply with quote

Damn. I wish I found this sooner, but my weeklong hiatus forced me to overlook it. Sorry to revive the thread, but it'll stay long dead after this post I'm sure.

It's quick, fast, and looks good, along with the fact that it cuts down on unneeded 'swirl' effect backdrops for bossbattles, and saves roughly 1/2 MB per such battle. I'm in your debt. I'll be plugging you in the credits of TSSE, so thanks for the script.
Back to top
View user's profile Send private message
Blazes Battles Inc.
I'm a chimp, not a




Joined: 25 Jan 2003
Posts: 505

PostPosted: Sat Aug 16, 2003 3:20 am    Post subject: Reply with quote

Oookay... Thanks, though it probably doesn't look as neat as a swirl effect (though whatever you want to you is up to you). It really wasn't that good a script, but I'm glad if it actually helped anyone.

And you don't need to put me in the credits or anything like that. I didn't really do anything except code the thing (the idea's unoriginal enough, they seem to love it in some shows any movies).

But, above all else, THANKS FOR THE REPLY!

I have a hard time getting those in my threads...
_________________
Preserve OHR history! Do it for the children!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Sat Aug 16, 2003 1:15 pm    Post subject: Reply with quote

Nice script.... you really can make alot of nice battle fade ins with this:

Code:

script, clrattack, begin
 variable (var)
 clrinvert
 wait (3)
 tweak palette (50, 50, 50)
 update palette
 wait (3)
 reset palette
 tweak palette (20, 20, 20)
 update palette
 wait (1)
 for (var, 0, 9) do, begin
  tweak palette (-10, -10, -10)
  update palette
  wait (1)
 end
 reset palette
 fight formation(#)   
end


I made a sister script too, which cycles hues...
_________________
"It is so great it is insanely great."
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> The Arcade All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group