I'm making multiple levels of the same status, like for Stun, there's 3 level of effect, 1st level last short, 2nd level last for a couple of round and 3rd level have 25% chance of recovering every turn which might take long.
I want to show that by adding a simple graphic like either some sort of colored dot or a number.
Can anyone make that?
~Thanks
Maybe use cases?
e.g.
case level_of_skill #there should be a variable for the level of the skill
when 1
graphic=RPG::Cache.icon('one_star_rating') #graphic for level one
when 2
graphic=RPG::Cache.icon('two_star_rating') #graphic for level two
when 1
graphic=RPG::Cache.icon('three_star_rating') #graphic for level three
end
self.contents.blt(x, y, graphic, Rect.new(0, 0, 24, 24)) #draws the graphic for that level where you specified x and y
You should probably put this code in something like a 'def draw_skill_level_icon' so you can use it wherever you want to.
Hope I helped. >.<;
Too bad I'm not a scripter...
D: You aren't? My bad...
OH WAIT this is ToA!!! *faints*
Shouldn't it work if you treat each of the three levels as different statuses in the database?
Yeah, but for the sake of the resauce file, I think just 3 simple images will work instead of having 3x12 dupes of icons that's for stats.
But if no one is willing to do this, I consider it RESOLVED and rape you guys with higher data to download >8)
OMG, THERE WILL BE 10kB MORE OF DATA TO DOWNLOAD! I CAN'T TAKE THIS! *goes off, kills self*
Seriously, a few more kB for a couple of extra icons isn't much compared to a full game of 100 MB or even more. I think that might be the best idea. Also, have you considered using "Chain Status Effects" from ToA so the status effects work like they are upgradable? i.e. Somebody gets inflicted with Paralysis 1 and when trying to inflict it again, it becomes Paralysis 2.
You mean extra 310kb (It's always 600kb, extra junk I didn't get a chance to delete), a total of a nice near 1mb, and I'm trying to cut down the icons, where all weapon uses the same icon, so I'm doing the most possible solution on cutting down the amount of data my game have at the end of the whole crap.
And I don't see any use for Chain Status Effect.. for now..
Those status effect supposed to be harder to maintain later in the game.
Oh well, then I guess I just make more dupes of the icons then.
Now for the next hunt for the last script I might need.