News: Have you seen Chaos Project's fully automated Script Database Index yet?
Pages: [1] 2 3  All
  Print  
Author Topic: [XP] Icon Actor Command Window  (Read 15753 times)
Reno-s--Joker
Astral Trancist
*****

Level: 34
Offline Offline

Gender: Female
Posts: 674

Zombie account.


View Profile WWW
« on: January 15, 2009, 08:26:41 AM »

Icon Actor Command Window
Authors: Reno-s--Joker, Calintz16438
Version: 3.0
Type: Aesthetic Enhancement for Actor Command Window
Key Term: Battle Add-on

Introduction

Something I hope I can thank this awesome community with. :D

A purely aesthetic modification of the actor's command window (Attack, Skill, etc. window) during battle. See screenshots/demo for better description.

You will have to customise Scene Battle yourself and link it to this script if you have more battle commands (e.g. special skill windows like 'summon' or 'status').

This was my second script, so at the moment it's kinda rigid and hard to customise (although now greatly improved thanks to Calintz's help  Kiss). If anyone likes it enough, i'll try my best to make it even better. :D

Features

  • Now features easy to use config options so no scripting familiarity is needed at all! :D
  • Now includes an option for vertical icons!
  • Four tip window/ icon window combinations to choose from.
  • Each actor's commands on their turn appear in a centred* command window
  • Commands appear as icons (no text)
  • Non-invasive tip text to explain icons - select between two types (to ensure readability of tip - see screenshots)
  • Can have any number of commands (except it will go off the screen if you have TOO many of course)
  • Uses larger icons than normal
  • * Customise all position, opacity, windowskin, colour, etc. values easily with Cal's new config section

Screenshots

Default Script
(click to show/hide)
Calintz's Script
(click to show/hide)
Version 3.0
Coming soon... hopefully. ^-^
For the time being... just get the gist from the other versions. xD

Demo

Version 3.0 Demo: Rapidshare
http://rapidshare.com/files/205553108/Actor_Command.rar

Older Versions
Default Script Demo - Mediafire:
http://www.mediafire.com/download.php?jyzqgxrkkzj (more up-to-date, I think)
Default Script Alternate download site - Rapidshare:
http://rapidshare.com/files/184111783/ActorCommandDemo.rar
Calintz's Script Download
http://www.sendspace.com/file/rjrq73

Script

This is only the default script. Please download Calintz's demo if you wish to use his version of the script, and the 3.0 demo if you wish to use the latest version of the script (includes both Calintz's additions and the default script).
(click to show/hide)


Instructions

To download latest version:
See demos section above. It should be the first link. When you open the script in RMXP, check the comments in the first part of the script for how to customise. <3
...
If you'd like to download the original script (this does not include the nice customisation available in Calintz's script):
Download the demo and use the game's script layout as a guide. Demo requires Standard RTP thing to work.
OR
Copy and paste the script ("Main Script") above main.
You no longer need to make the two separate mods as before.  Happy
Finally, put your icons in the 'Graphics\Icons' folder and change the beginning parts of the main script to match their filenames. The icons should be 48x48.
To use Calintz's Mod:
Download the demo from the above link.

Compatibility

I'm pretty sure it WON'T work with any kind of CBS which doesn't involve the standard tell-your-actor-what-to-do-using-a-window function (e.g. an ABS).

Currently does not work well with Blizzard's Chaos Rage Limit System, and probably not with RTAB either :'(, but I am still working on a new version! Please see this version of the script and Blizzard's EOS script if you wish to embark on this quest yourself using a vertical window:    [REQUEST]I am looking to make these scripts compatible.

Credits and Thanks

  • Calintz for adding to my script and making a wonderful new version of the script! ^-^
  • GubiD from Creation Asylum forums for pointing me out to...
  • http://www.rpgrevolution.com/forums/lofiversion/index.php/t18178.html - Jens009 BoF Cross Command
  • Golden Sun for GBA - the inspiration for this script
  • shdwlink1993 for databasing my script
  • Fantasist for helping me improve the script by aliasing the Scene_Battle mods in to the main script
  • Jackolas for pointing out a bug!
  • Calintz (again) for suggesting I make it compatible with Blizzard's CRLS - it kinda worked! Tongue

Author's Notes

I have managed to develop some compatibility with Blizzard's Chaos Rage Limit System! Thanks to Calintz for giving me the motivation to make it work! :D Check second page of posts for demo DL.

Works great with window skins that don't use a rectangle as their selection shape (e.g. a glowing circle would make the icon appear to glow as you passed over it).
Also highly recommended - a battle command memory script.


I'm not a scripter so apologies about the version number and version history.... ^^;
And finally - please let me know if you get any errors!
« Last Edit: March 31, 2009, 09:33:56 AM by Reno-s--Joker » Logged

shdwlink1993
Ethereal Devastator
****

Level: 63
Offline Offline

Gender: Male
Posts: 435



View Profile WWW
« Reply #1 on: January 15, 2009, 08:35:07 AM »

Great looking script, Reno-s--Joker. I took the liberty of databasing it (I don't think anyone will mind Wink)
Logged

Stuff I've made:

(click to show/hide)

"Never think you're perfect or else you'll stop improving yourself."

"Some people say the glass is half full... some half empty... I just wanna know who's been drinking my beer."
Starrodkirby86
Kirby de Varita Estelar
Guardian of Chaos
********

Level: 194
Offline Offline

Gender: Male
Posts: 3282


~!


View Profile WWW
« Reply #2 on: January 15, 2009, 09:18:37 AM »

As the night pulls on, I can't really check out the demo at the moment, unfortunately. But what I do see here is pretty impressive and awesome. Visual uses of the battle menu really makes a game more interesting and this perked my eyes open the moment I unspoilered that spoiler. Tongue

I will consider using this, and hopefully there won't be any errors. If there are, be prepared to see if you can fix it. Happy

On an unrelated note, props to you with those cute names in the screenshot. And you finally got an avatar. :3 Lovely...
Logged


What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).


King Munkey
Moderator of Munkeys
Astral Trancist
*****

Level: 37
Offline Offline

Gender: Male
Posts: 789


Dance with the Munkey!


View Profile
« Reply #3 on: January 15, 2009, 12:20:16 PM »

This seems to be pretty interesting I must say. I would check out the demo but it is like 5 in the morning and I can't get back to sleep. But probably tonight I will check this out.
Logged


G_G Is my hero!
Munkey != monkey
Munkey > monkey
Fantasist
Lexima Warrior
*******

Level: 146
Offline Offline

Gender: Male
Posts: 2222



View Profile WWW
« Reply #4 on: January 15, 2009, 02:47:50 PM »

Aesthetic indeed Happy *powers up*
Logged

Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews


Calintz
Guardian of Chaos
********

Level: 108
Offline Offline

Gender: Male
Posts: 3814


A Pixel's Worst Nightmare


View Profile
« Reply #5 on: January 16, 2009, 02:41:36 AM »

It is really neat, that is for sure...
Logged
Reno-s--Joker
Astral Trancist
*****

Level: 34
Offline Offline

Gender: Female
Posts: 674

Zombie account.


View Profile WWW
« Reply #6 on: January 16, 2009, 06:58:37 AM »

Thanks everybody! I really appreciate your encouraging comments and I hope I can be of help if there are any issues.

I'm actually working on a few more aesthetic developments like animating it (although they're not going too well... Wacko), but I'll be waiting for your feedback!   Laugh

Thanks for the power up, Fantasist! And @Starrodkirby86: I do like to side with the monsters more often that not... I'll probably have to make a better, shinier avvie sometime soon.  Wink
Logged

Fantasist
Lexima Warrior
*******

Level: 146
Offline Offline

Gender: Male
Posts: 2222



View Profile WWW
« Reply #7 on: January 16, 2009, 07:22:08 AM »

Okay, some tips:

Read Blizzard's scripting tutorial about aliasing methods. That scene_battle 3 mod can be aliased.

The method Scene_Battle#start_phase1 is executed once everytime the battle scene starts. You can replace the command window by checking the class like this:
Code: [Select]
unless @actor_command_window.is_a?(Window_ActorStatus)
  @actor_command_window.dispose
  @actor_command_window = Window_ActorStatus.new
end

Logged

Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews


Reno-s--Joker
Astral Trancist
*****

Level: 34
Offline Offline

Gender: Female
Posts: 674

Zombie account.


View Profile WWW
« Reply #8 on: January 16, 2009, 07:45:02 AM »

Thanks for the tip!
I tried to use aliasing but I just got a vague hang of it last week. I'll have a go at it again.  Happy

EDIT:
Wow, thanks!  Laugh I've updated the script - now there's only one. Haha, and I've learned something more about aliasing.  Wink
Thanks again.
« Last Edit: January 16, 2009, 07:46:40 AM by Reno-s--Joker » Logged

fugibo
World Conqueror
Chaos User
******

Level: 44
Offline Offline

Posts: 1966



View Profile
« Reply #9 on: January 22, 2009, 04:39:30 AM »

Very nice job. I love the way you did the interface -- very next-genish.

Although, it'd be amazing if the script made those fancy shadows. But oh well, what use would we have of GIMP and Photoshop then, eh?
Logged
Reno-s--Joker
Astral Trancist
*****

Level: 34
Offline Offline

Gender: Female
Posts: 674

Zombie account.


View Profile WWW
« Reply #10 on: January 25, 2009, 06:10:51 AM »

:D Thank you!
I know, I wanted it to at least increase the opacity of the selected icon and decrease the others' (like in this awesome rng menu I found, can't remember where), but I'm just not good enough at scripting yet... :|

Anyways, thanks again, I really appreciate it. Happy
Logged

Calintz
Guardian of Chaos
********

Level: 108
Offline Offline

Gender: Male
Posts: 3814


A Pixel's Worst Nightmare


View Profile
« Reply #11 on: January 25, 2009, 08:53:38 PM »

Again...I like it, haha...
Logged
fugibo
World Conqueror
Chaos User
******

Level: 44
Offline Offline

Posts: 1966



View Profile
« Reply #12 on: January 31, 2009, 07:11:37 AM »

Opacity isn't hard, though you'd have to use sprites instead, I believe.

For each icon, you'd create a sprite at the appropriate coordinates stored to x and y like this:
Code: [Select]
sprite = Sprite.new
sprite.x = x; sprite.y = y
sprite.bitmap = Bitmap.new(RPG::Cache.icon(<yadayada>)
sprite.opacity = 120 # the default opacity; looks see-through

Each time you change the icon, you'd call this, assuming the sprites were in an array and @index was your menu index:
Code: [Select]
@sprites[@index - 1].opacity = 120
@sprites[@index].opacity = 255
Logged
Reno-s--Joker
Astral Trancist
*****

Level: 34
Offline Offline

Gender: Female
Posts: 674

Zombie account.


View Profile WWW
« Reply #13 on: January 31, 2009, 07:58:37 AM »

:D Thanks for the tips! I can see how that would work.
I don't understand arrays yet - could you explain how I could set one up?

^-^ Thanks again! <3
Logged

Fantasist
Lexima Warrior
*******

Level: 146
Offline Offline

Gender: Male
Posts: 2222



View Profile WWW
« Reply #14 on: January 31, 2009, 08:32:07 AM »

I'd not use sprites there. You could just redraw the window contents every time a button is pressed. You know the bitmap.blt method, right? Check the RMXP help file, the last argument is the optional opacity. But beware, do NOT do that in any update method. Do it only when the player moves the cursor.
Logged

Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews


Ryex
Arctic Bird of Programming
Global Moderator
Guardian of Chaos
****

Level: 194
Online Online

Gender: Male
Posts: 4986


Wants to write a compiler for fun


View Profile
« Reply #15 on: January 31, 2009, 09:05:51 AM »

You know the bitmap.blt method, right? Check the RMXP help file, the last argument is the optional opacity. But beware, do NOT do that in any update method. Do it only when the player moves the cursor.
LOL using the .blt method every frame?! NOW THAT WILL LAG! probably worse that refreshing the content of 6 windows, some that with gradient bars and such, every frame. I did that once went from 40FPS to 6FPS. LOL!

ya DON'T use ANY method that has even marginally heavy processing every frame unless you are deliberately trying to cause lag or know what you are doing. that includes anything that creates of modifies a bitmap.
Logged

If time were Truly linear, I would not be here and the world would be knee deep in ashes.
DropBox, the best free file syncing service there is.
(click to show/hide)
Fantasist
Lexima Warrior
*******

Level: 146
Offline Offline

Gender: Male
Posts: 2222



View Profile WWW
« Reply #16 on: January 31, 2009, 10:34:35 AM »

Quote
But beware, do NOT do that in any update method. Do it only when the player moves the cursor.
Tongue

I always update the equip windows in my CMS like that. Check for Input::repeat?(KEY) and then update the bitmap. Something like this:

Code: [Select]
def update
  blah_blah
  if Input.repeat?(Input::RIGHT) || Input.repeat?(Input::RIGHT)
    redraw_icons # Draws icons with 128 opacity, except the one at the @index position
  end
end
Logged

Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews


fugibo
World Conqueror
Chaos User
******

Level: 44
Offline Offline

Posts: 1966



View Profile
« Reply #17 on: January 31, 2009, 07:33:30 PM »

Oops, I remember that now. I thought that there was something like that, but I couldn't remember.

And as for lag, its funny how RMXP can make those heavy operations so trivial Tongue

That simple blt-opacity every frame would mean that instead of copy sprites to screen + flip buffer, it would become

- check to see if original bitmap is in cache
  - if yes, then use it
  - if no, load it and save it to cache
- create a new temporary buffer for drawing the opacity
- iterate through all pixels (thats 576 in a 24x24 image), multiplying all colors by opacity/255
- copy all those pixels to the sprite buffer, iterating through all of those pixels again (all 576) and another set of the same number in the destination
- copy all sprites to the screen

That's some serious CPU usage Tongue
Logged
Calintz
Guardian of Chaos
********

Level: 108
Offline Offline

Gender: Male
Posts: 3814


A Pixel's Worst Nightmare


View Profile
« Reply #18 on: January 31, 2009, 10:09:54 PM »

Aww...
I was really hoping I could use this...

It however, is NOT compatible with Blizz's Chaos Rage system... =(
Logged
Reno-s--Joker
Astral Trancist
*****

Level: 34
Offline Offline

Gender: Female
Posts: 674

Zombie account.


View Profile WWW
« Reply #19 on: February 01, 2009, 03:22:08 AM »

Wow, let me just digest all of that... :D
I'm having a few issues with the index looping but I'm sure I'll be able to work it out. It seems that it will work nicely. ^-^

@ Calintz16438: I haven't checked that script out yet, but I'll promise to look into is asap. Tongue
Logged

Pages: [1] 2 3  All
  Print  
 
Jump to:  


*
*
Shoutbox
Latest Shouts
View All
Today at 02:01:29 AM R.A.V.S.O: Gonna get quite busy this month that I'll probably be slightly more absent than the norm, on the bright side, I'm learning Unity
October 22, 2014, 10:46:13 PM Blizzard: Freaking awesome. <3 http://www.dorkly.com/post/69751/the-most-incredible-custom-n64s-ever
October 22, 2014, 01:26:08 PM gameus: It really helps when you have a PS3 and a PS4. You need PS+ to play online with the PS4 now so it's worth having just for that. Considering I've dealt with the whole Xbox live subscription before, this really wasn't any different. Plus, it gets you free games every month. I know you have to keep paying to keep them, but the collection does build up. I've got so many games across all 3 systems now. xD
October 22, 2014, 08:47:45 AM MarkHest: Boo
October 22, 2014, 07:53:26 AM WhiteRose: For some reason, PS+ has never really appealed to me, because you have to keep paying for it in order to keep playing your free games. I know that the price is so cheap that it's worth it, but I think I don't feel that any PS+ games are part of my "collection," if that makes sense. There's probably some sort of psychological thing that explains it. Haha. Tongue
October 22, 2014, 06:38:40 AM gameus: Too bad you don't have PS+. I got that game free awhile ago.
October 22, 2014, 04:22:04 AM WhiteRose: Dragon's Crown is 50% off on the PSN sale, and the gameplay looks fun... but.... I guess some of the art style is a little... different than what I might normally play. I'm kind of on the edge about whether to get it or not.
October 21, 2014, 04:53:40 PM Zexion: I dunno how to play it so i gave it away, but i think you just need to collect certain peices
October 21, 2014, 04:53:11 PM Zexion: okay, so I think i gave a $3000 monopoly prize away yesterday ._. this
October 21, 2014, 03:57:17 PM Blizzard
(click to show/hide)

View All


HB Games RpgMaker.org