Save-Point

Full Version: Save-Point
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Board Message
Sorry, you do not have permission to access this resource.
Save-Point - Switch State Icon request

Save-Point

Full Version: Switch State Icon request
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sooo, here I am again asking for help :O

I have the classic and easiest Status Effect as Icons script, it goes like this:

Quote:# Status Effects as Icons
# Original Script by Ccoa
# Since Falcon didn't have 1337 search skills, he rewrote this
class Window_Base
#--------------------------------------------------------------------------
# * Draw State
# actor : actor
# x : draw spot x-coordinate
# y : draw spot y-coordinate
# width : draw spot width
#--------------------------------------------------------------------------
def draw_actor_state(actor, x, y, width = 120)

j = 0
for i in 0...actor.states.length
if j < 9
if $data_states[actor.states[i]].rating >= 1
ix = 18 * i
bitmap = RPG::Cache.icon($data_states[actor.states[i]].id.to_s + ".png" )
self.contents.blt(x + ix, y + 4, bitmap, Rect.new(0, 0, 24, 24))
j += 1
end
end
end
if j == 0
self.contents.draw_text(x, y, 128, 32, "")
end

end
end

What I want: I want only ONE icon to be shown at a time, and for it to switch between all the states the user has.

Bonus: Not as necessary, because I would have enough with what I requested but, if possible, instead of one icon, two of them, one for the possitive states and another for the negative (specified manually, maybe with an array?)

Thanks before hand! ^^
Hey, Iqus. Not sure if the system will work for you or not because it is an SDK script by Trickster, but......

State Cycling

Did you ever get more than one state inflicted upon an actor in battle. Did you hate that it only displayed the highest ranked state. Well this script fixes that problem, by cycling through the states every x frames. Best thing about this script is that there is no lag involved in doing so. Now Loops State animations as well. V3.0 Works better out of battle, z axis problems fixed.


And it does cycle through states in both menus and battlesystem displays. But you do need to use the SDK and MACL scripts for its use.

Put Ccoa's script below these... and don't forget to have icons for 'EVERY' status effect you have.
Well, I heard about this script but I thought it was just for state animations. I will take a look at the code, thanks! ^^