Ninja Penguin

NINJA PENGUIN

It is about ninja penguins.

Why penguins?
Because they are easy to sprite.

Why ninjas?
Because normal penguins are boring.

Features:
-Penguins
-Ninjas
-PENGUINS AND NINJAS COMBINED
-RTAB battle system
-ABS battle system
-AI that doesn't suck
-Equipment-combo-thing-something-or-other based skills
-Silly holiday events
-Silly hats
-Crafting and junk
-Buckets
-Penguins wearing buckets as hats
-Penguins being hit by various objects ranging from bricks to LOLTRAINs
-I don't know lots of other stuff I'm tired

No up-to-date screenshots, as magic and items currently do not work and none of the tilesets are finished. No demo, because my external HD decided to die. No character info, because there really wasn't any to begin with. No story description, because after about two sentences the rest of the story is up to you. There's not even one story, depending on the branches you could end up doing all kinds of wierd stuff and wondering if I was on drugs when I made it.

So, here's some old screenshots:
Content Hidden Show
Image
Image
Image
Image
Very old. As in, none of these are up to date.

And those two sentences of the story:
Pengoku wakes up to the smell of smoke, and finds the entire village has been set ablaze. The culprit is his brother, Pengzoda.

So yeah there you go.

I've started college, and am currently pursuing a degree in game programming. I thought it would help prepare me for a career in programming games.
HAHAHA NO
It's just as useless as all my previous years of school, except now I'm paying them to waste my time instead of wasting my time for free. Oh, we're doing trigonometry? That would have been awesome like FOUR YEARS AGO


SO ANYWAYS
There's a lot of stuff to go over here. I'm not sure how to list it all, even, so this might look and sound wierd. Oh well.
More info on the features:

-RTAB battle system-
Ninja Penguin's battles use a dynamic delay system. How fast your turn comes around depends on more than just your AGI. It doesn't use your AGI at all, for that matter.
Every action, weapon, skill, and item has a delay. Attacking uses your weapon's delay, skills use the skill's delay, and so on.
Attacking with a claymore will take longer than attacking with a dagger, for example, but won't slow down how fast you can cast spells.

Another feature of the battles is the TP guage. Think of it as a kind of overdrive bar, except on a smaller scale. As you deal and take damage, the bar fills up to a maximum of 300%. Different actions and weapons yield different amounts.
Once you have at least 100% TP, you can use TP skills. The power of these skills depends on how much TP you have. For example, Mitzy's magic-based Manifestation:
copypasta Show
Image
As you can see, it extends the range of your next single-target spell. As you can also see, I need to make a new icon for drain.
When you use it, it consumes your TP and adds a 'Manifestation' status:
Image
This status will wear off when you cast a spell that can be manifested.
It will also wear off on its own if you wait too long before using it, or if you use a TP skill while it is active (Including Manifestation itself. Using Manifestation twice will overwrite, not add to, the magnitude of the last use), if you are KO'd, or if the battle ends.
It will NOT wear off if you cast a non-manifestable spell, or if you do any action other than those mentioned above.
Drain is a manifestable spell, so let's cast that on one of those Claire clone things:
Image
And there you can see the downside of manifesting a spell. It will divide the damage/healing by the number of targets it hits. That's where the amount of TP you use it with comes into play. The more TP you have, the more it reduces the number the damage is divided by. For example, at 275%TP:
Image
At 300 TP, it will always apply the full damage of the spell to all targets. Due to the way this works, the more targets there are, the closer to 300 TP you'll need to be before you get a significant increase in effect. This property only applies to damage/healing effects of spells. Spells that apply states (Such as Poison or Repel) will apply their states just as well at 100TP as they will at 300TP, so you can manifest them at low TP without worry.

It's also fully animated and features a projectile class, allowing me to get silly effects such as this:
Image

-ABS battle system-
Some portions of the game will use an ABS system for exploring and battles. These sections will require more than just button mashing to get through. More on this after I finish everything for it.

-AI that doesn't suck-
Enemies in the RTAB system are no longer mostly random. They'll heal when they (or their allies!) need healing, conserve NP if they're running low, and use TP attacks just like you, among other things.
Enemies in the ABS system don't just charge at you for the most part, they'll wait for openings to attack, try to avoid being hit, and much more.

-Unique skill and stat system-
The skills you have access to are based entirely on your equipment. Different equipment combinations may also change the skills you get.
The stats have become... complex. Way too complex to explain here.
As a comparison, this is what skills are modified by in the default RMXP formula:
Power, STR, INT, DEX, AGI, Attack, Evasion, Skill Hit%, Pdef, Mdef, Variance, Guarding(halves damage)
And here's what they are modified by in Ninja Penguin (So far):
Power, Base Damage, Weapon Base Damage, Ammo base damage, STR, INT, DEX, AGI, Attack, Evasion, Evasion Stats (not always agi vs. dex), Acc, Magic Acc, TP, TP Factors, Magic Attack, Skill Hit%, Pdef, Mdef, User Hit%, Casting Time, Delay, number of targets hit, Resists, Resist Rate, Resist Cap, User Crit%, Skill Crit%, Skill Crit multiplier, Skill soft base damage cap, Skill soft base damage rate, evasion ratio, skill hit% floor, skill damage ratio cap, comparison of skill's modifiers vs. enemy's defenses, guarding(reduces damage, may negate damage entirely), and a whole bunch of attribute flags for various other effects.
So... yeah.
Most magical skills cannot be evaded, but can be resisted. If a spell is resisted, its damage will be lowered, and (eventually) the duration/power of any status effects will be lessened.

-No more corrupt saves!-
Features a save-patcher system. If something gets changed that makes saves unloadable, the game will be able to patch them up so you won't have to start over.
Saves will no longer be corrupted due to updates to the game.
Incidentally, this update means that all your saves are corrupted.
I remember this game. I think I was fairly impressed.

But you dumped the RTP. I can now respect this game more. ^_-
Yes I loved this game. Thank god for the no-RTP, it clashed so horribly. ^_^
Alright, made the first post prettier. Or something.

Just finished the bare bones of the skill formula:
  1.  def skill_effect(user, skill)
  2.     state_p[user] = []
  3.     state_m[user] = []
  4.     self.damage[user] = ["", [3, 0], [false, ""], 0, 0]
  5.     if ((skill.scope == 3 or skill.scope == 4) and self.hp == 0) or
  6.        ((skill.scope == 5 or skill.scope == 6) and self.hp >= 1)
  7.       return false
  8.     end
  9.     tpf = skill.tpfactors
  10.     hit_acc = skill.hit
  11.     hit_acc += skill.acc
  12.     hit_acc += (user.acc * skill.acc_f)
  13.     hit_acc += (user.macc * skill.macc_f)
  14.     hit_acc *= skill.attributes.include?(4) ? user.hit : 100.0
  15.     hit_acc /= 100.0
  16.     if self.cant_evade?
  17.       hit_eva = 100
  18.     else
  19.       eva_stats = skill.get_eva_stats(user, self)
  20.       hit_eva = (100.0 - skill.eva_r) + (skill.eva_r * (eva_stats[0] / eva_stats[1])).truncate + (self.eva * skill.eva_f)
  21.     end
  22.     hit_p = (hit_acc / hit_eva) * 100.0
  23.     if hit_p < skill.hit_floor
  24.       hit_acc = skill.hit_floor
  25.       hit_eva = 100
  26.     end
  27.     hit_r = rand(hit_eva) < hit_acc
  28.     if hit_r == false
  29.       unless skill.attributes.include?(0)
  30.         hit_result = false
  31.       else
  32.         hit_result = true
  33.       end
  34.     else
  35.       hit_result = true
  36.     end  
  37.     if hit_result == true
  38.       unless skill.attributes.include?(6)
  39.         pow = skill.power
  40.         negcheck = 1.0
  41.         negcheck = -1.0 if pow < 0
  42.         pow *= negcheck
  43.         pow += ((((skill.element_set.include?(16) ? user.altbasedmg : user.basedmg) * skill.dmg_f) / 100.0) + ((user.magdmg * skill.mdmg_f) / 100.0))
  44.         pow += (user.str * skill.str_f) / 100
  45.         pow += (user.dex * skill.dex_f) / 100
  46.         pow += (user.agi * skill.agi_f) / 100
  47.         pow += (user.int * skill.int_f) / 100
  48.         powmult = 1.0
  49.         if tpf != nil and tpf[0].include?(0)
  50.           tpindex = tpf[0].index(0) + 1
  51.           if user.tpm[0] == 300
  52.             powmult = tpf[tpindex][2]
  53.           elsif user.tpm[0] >= 200
  54.             powmult = tpf[tpindex][1] + ((tpf[tpindex][2] - tpf[tpindex][1]) * ((user.tpm[0] - 200).to_f / 100))
  55.           elsif user.tpm[0] >= 100
  56.             powmult = tpf[tpindex][0] + ((tpf[tpindex][1] - tpf[tpindex][0]) * ((user.tpm[0] - 100).to_f / 100))
  57.           end
  58.         end
  59.         pow *= powmult
  60.         if pow > skill.scap and skill.scap != 0
  61.           base = negcheck * (((pow - skill.scap) * skill.scap_r) + skill.scap)
  62.         else
  63.           base = negcheck * pow
  64.         end
  65.         resist = 1
  66.         unless skill.attributes.include?(1)
  67.           if hit_r == false or skill.attributes.include?(5)
  68.             resist = skill.resist_rate unless skill.attributes.include?(5)
  69.             loop do
  70.               hit = rand(hit_eva) < hit_acc
  71.               if hit == true or resist >= skill.resist_cap
  72.                 base /= resist
  73.                 break
  74.               else
  75.                 resist *= skill.resist_rate
  76.               end
  77.             end
  78.           end
  79.         end
  80.         if skill.attributes.include?(2)
  81.           mdif = 1.0 + ((rand(skill.variance) + rand(skill.variance) - skill.variance) / 100.0)
  82.         else
  83.           mdifr = []
  84.           dval = []
  85.           def_factors = [skill.pdef_f, skill.mdef_f]
  86.           if tpf != nil and tpf[0].include?(3)
  87.             tpindex = tpf[0].index(3) + 1
  88.             if user.tpm[0] == 300
  89.               def_factors = tpf[tpindex][2]
  90.             elsif user.tpm[0] >= 200
  91.               def_factors = [tpf[tpindex][1][0] + ((tpf[tpindex][2][0] - tpf[tpindex][1][0]) * ((user.tpm[0] - 200).to_f / 100)),tpf[tpindex][1][1] + ((tpf[tpindex][2][1] - tpf[tpindex][1][1]) * ((user.tpm[0] - 200).to_f / 100))]
  92.             else
  93.               def_factors = [tpf[tpindex][0][0] + ((tpf[tpindex][1][0] - tpf[tpindex][0][0]) * ((user.tpm[0] - 100).to_f / 100)),tpf[tpindex][0][1] + ((tpf[tpindex][1][1] - tpf[tpindex][0][1]) * ((user.tpm[0] - 100).to_f / 100))]
  94.             end
  95.           end
  96.           dval[0] = [((user.atk.to_f * skill.atk_f) + (user.matk.to_f * skill.matk_f)) / 100.0, 0].max
  97.           dval[1] = [((self.pdef.to_f * def_factors[0]) + (self.mdef.to_f * def_factors[0])) / 100.0, 0].max
  98.           dratio = [dval[0] / dval[1], skill.dcap].min
  99.           if dratio > 0.833
  100.             mdifr[0] = 1.2 * dratio
  101.           elsif dratio >= 0.5
  102.             mdifr[0] = 1.0
  103.           else
  104.             mdifr[0] = 0.4 + (1.2 * dratio)
  105.           end
  106.           if dratio > 1.5
  107.             mdifr[1] = -0.8 + (1.2 * dratio)
  108.           elsif dratio >= 1.25
  109.             mdifr[1] = 1.0
  110.           else
  111.             mdifr[1] = -0.5 + (1.2 * dratio)
  112.           end
  113.           mdifr[2] = mdifr[0] - mdifr[1]
  114.           mdif = (rand(mdifr[2] * 100.0) + (mdifr[1] * 100.0)) / 100.0
  115.         end
  116.         crtc = 0
  117.         if skill.crit_f > 0
  118.           crtc = ((1250 * (attacker.dex.to_f / self.agi.to_f)) * skill.crit_f).round
  119.         end
  120.         if skill.crit != 0
  121.           crtc += skill.crit
  122.         end
  123.         crit = true if rand(10000) < crtc
  124.         mdifmod = 0.0
  125.         mdifmod += 1.0 if crit
  126.         mdifmod -= 1.0 if [self.guarding?, skill.attributes.include?(3)] == [true, false]
  127.         mdif = [mdif + mdifmod, 0].max
  128.         damage_result = (((base.to_f * elements_correct(skill.element_set)) / 100.0) * mdif).round.to_i
  129.         if user.tpm[2][0] == 1
  130.           tpf = $data_skills[user.tpm[1]].tpfactors
  131.           tpindex = tpf[0].index(4) + 1
  132.           manifest_r = 0.00
  133.           if user.tpm[0] == 300
  134.             manifest_r = tpf[tpindex][2]
  135.           elsif user.tpm[0] >= 200
  136.             manifest_r = tpf[tpindex][1] - ((tpf[tpindex][1] - tpf[tpindex][2]) * ((user.tpm[0] - 200).to_f / 100.00))
  137.           else
  138.             manifest_r = tpf[tpindex][0] - ((tpf[tpindex][0] - tpf[tpindex][1]) * ((user.tpm[0] - 100).to_f / 100.00))
  139.           end
  140.           damage_result = (damage_result / (((user.tpm[2][1] - 1).to_f * manifest_r) + 1.00)).round.to_i
  141.         end
  142.         if resist > 1
  143.           crit = true
  144.           critstring = "RESIST"
  145.         else
  146.           critstring = "CRITICAL"
  147.         end
  148.         self.damage[user] = [damage_result, [0, 0], [crit, critstring], (damage_result > 0 ? 1 : 0), (damage_result > 0 ? 1 : 0)]
  149.         remove_states_shock if damage_result > 0
  150.       end
  151.       @state_changed = false
  152.       states_plus(user, skill.plus_state_set)
  153.       states_minus(user, skill.minus_state_set)
  154.       if skill.attributes.include?(6)
  155.         unless @state_changed
  156.           hit_result = false
  157.         end
  158.       end
  159.     end
  160.     if hit_result == false
  161.       self.damage[user] = ["Miss", [2, 3], [false, ""], 0, 0]
  162.     end
  163.     unless $game_temp.in_battle
  164.       self.damage_effect(user)
  165.       self.damage[user] = nil
  166.       return true
  167.     end
  168.   end
Expand to see the code.
That's right, the bare bones.

Edit-
Image
The cliffs need work, I think. Beyond adding a bit of shading and shadows, that is.
Any suggestions?
Ilovethenewgraphics <3
Alright, I am officially out of my mind.
Or a genius.
Or both.
I'm not sure, I've been awake for a good thirty hours at this point.

I've change the animation system to support visual equipment.
This was easy, actually. Took... lemme see... 25 lines of code.

Now comes the hard stuff:
I also changed the maximum number of equipment slots from 5 to infinite.
You'll only be able to equip as many things as I code into the menu, though... which won't be infinite.
Also, this system will let you dual-wield, and there'll be more equipment types than... how many does RMXP have? 4?
And, all of this will show up on your character in battle.
The problems with this are:
I gotta resprite all the battlers into different poses for each of the following categories:
-single weapon
--main hand, no shield
--main hand, shield
--offhand, no shield
--offhand, shield
-shield
--main hand, no offhand
--offhand, no main hand
--mainhand and offhand
-two weapons
-bows
-two handed weapons
Each of the above categories is further split into more categories depending on the type of weapon being wielded.
Each sprite for the weapons needs a different sheet for each type of pose and two-weapon combination
Each piece of visible armor needs a different sheet for each pose
All of these need seperate sheets for the skill poses


Additionally:
-Main menu needs to be redone entirely
-Inventory and skill menus need to be redone entirely
-Inventory system needs to be redone
-Battle formulas need to be changed to use the new equip system
-Animation system needs to support multiple attacks per round
-Animation system and skills need to know which weapon to use the skill with
-Battle formulas need to know how to handle shields properly
-Help window needs to be overhauled completely to work with all the new stats and crap
-All the event commands need to be updated or have their use removed entirely (probably the latter)
-Shops need to be redone entirely
-ABS... well, we'll see after I get it moved into script form.
-Equipment skills need to be moved into code
-Battle test is basically fucked completely now
-Yeah I've basically given up on the database editor at this point

Once I get the basic system down it'll be eaaaasy, though. Honest.

Bleeeeh getting ideas faster than I can code them.
...

CATSLEDDING
I NEED A CATSLEDDING MINIGAME D8
Actually, this seems pretty cool, and fairly original(original doesn't always mean no one's done it before ;) ).

Add a tech demo, after you get more of the system done. Then I'll really be impressed.
There were some old demos, but they died with my external HD.
There's a couple videos on youtube, though:
http://www.youtube.com/user/whalecakes#grid/uploads
They're pretty old as well, though.

Currently, due to my meddling with the formulas and handling for everything, about all you can do is... walk around the map.
A tech demo instead of a gameplay demo would probably be a good idea, though.

I think I'm going to use a grid system for the new inventory, where each character has their own seperate item bag. There'll also be a shared item bag that has an infinite (or much larger, at the very least) capacity.
The catch would be that characters can only use items in their item bag during battle, and your weapons and gear will also take up room in the bag.
Alright, I've finished some of the basic parts of the menu.
Oh, and I changed Ninpo to Aether, since it's a more generic term and can be applied to characters other than Pengoku. And because Ninpo sounded kinda dumb.
Image
The little scene there... think of it as a kind of zoom-in on your party. What it looks like changes depending on the area you're in. This one would be in a cave, obviously. I was planning on making it the inside of a tent or something, but this is better. It provides a more diverse range of settings so that the mood of the area won't be completely lost when you open the menu. Also this way I do not have to sprite a tent interior or explain why Pengoku pitched a tent inside a shop or something.
The characters there will be moving around and doing various activities. They'll react to each other and their conditions. For example, in the finished product, a poisoned character would look and act ill, a KO'd character would just lie there, etc.
Moving the cursor selects a target from the scene. You'll then be able to see more detailed info on them, and choose an action for them to do.
For example, that mailbox up there is the shared item bag. You may notice that it does not look like an item bag. Yes, you may very well notice that. I won't stop you. Selecting that will let you choose to move items to the character's inventories, use items from it, etc.
Selecting Mitzy would bring up a choice to open her inventory, use skills, view her status, change her equipment, and use alchemy to craft items.

The basic layout might change a bit by the time I'm done, but this is what it'll look like for the most part.

Oh, yeah. I guess I should also clarify that that picture is -not- a mockup, since it kind of looks like one. I think I should also mention that the scene in the background is not a map and those are not events.
I don't think I'll make the water animated when I get around to spriting it.

Still wondering if I should use a ring menu for the action choices or put a list on the right. A ring menu around the character would be hard to see, I think. I'll mess around with it after I finish the cursor's movement.


Also fixed a few things:
-Aether gauge (formely known as the Ninpo gauge) now turns red as it drops, instead of green.
-Hitting F12 to return to the title no longer crashes the game
-Improved the handling of the status bars
-EXP bars now start off yellow and turn red as they fill, instead of... whatever the hell I had that made them like 6 different colors as they filled up.
-TP and EXP gauge text no longer uses the crisis or knockout color if the gauge is low.
-AP gauge background color is now tinted blue like it should be, instead of green.
-Visual equipment now checks the equipments priority (affects the z level it is displayed at, i.e. armor goes below weapons) instead of the equipment SPRITE's priority. Problem with that was that sprites don't have a priority, so it crashed when battle started.
-Visual equipment now uses the equipment sprite's width / @frames and height / @poses, instead of just width and height. Oops.
-Walking regen now checks $data_states[state_id].negate_xx_regen instead of trying to check state_id.negate_xx_regen and crashing. Oops.
-Walking regen now uses to_i so you don't end up with 93.64738/112 health. Oops.
-Drain now hurts the target and heals you, instead of the other way around. Oops.
-The wooden staff's stats are now set to $data_weapons[7] instead of $data_weapons[8]. Oops.
-hit_eva for skills now uses skill.eva_r instead of (100 * skill.eva_r), since it's a percentage instead of a multiplier. Oops.
-hit_eva for skills now uses (target's stat / user's stat) instead of (user's stat / target's stat). Oops.
-The magic attack of weapons is now boosted based on the wielder's MND instead of their STR. Oops.

Lastly, I updated the game over screen:
http://img213.imageshack.us/img213/5657 ... meover.png


Edit-
Just finished coding in the cursor movement.
It's really pretty neat, it... flies around or something. You could make it do loops and stuff if you were bored, I guess.
Unfortunately, it makes for a very unexciting screenshot:
Image
I made Pengoku slide back and forth for that screenshot to make sure it followed targets, but... yeah, you can't see it because it's a screenshot!
The cursor there will follow its target around. Pressing left/right/up/down switches targets to the closest one in that direction.

Oh you know what bugger explaining it I'll just record the damn thing.
http://www.youtube.com/watch?v=1cFg2zcWf0c
Jaberwoky wrote:

Lastly, I updated the game over screen:
http://img213.imageshack.us/img213/5657 ... meover.png

LOL
This is so original and cool! :thumb:
I think the penguins need some shading, as the edges look jagged and harsh in comparasin to everything else. the magicians hat of the penguin looks a little pillow shaded and needs some creases. But your tilesets look fantastic so far! 😀
good for you to stick to this project even though there's a lot to do to make a graphically custom game :grin:
Yeah, Mitzy's hat is kinda... bleh on the sprite.
All the walking sprites for the characters are gonna have to be redone anyways, since I increased the walking speed.

Anyways... I fixed a bug with the delay system. It was not accurately using the delay of actions... for example, a 500 delay weapon was attacking at 75% of the speed of a 250 delay weapon, instead of at half the speed.
Not good.
The new aspd formula is
(base * haste) / (1.0 - ((base - action delay) / base))
Where base = 1000
Now speed is really truly affected by the delay of your actions. Completely. As in, an action with 0 delay will cause your turn to come around instantly. Additionally, it now really truly is affected by the speed scaling of RTAB, and you'll really truly feel the difference in the speeds of different actions. It's pretty neat. Really. Truly.


Also started working on the action menu and the info area on the right:
Image
I need some feedback. Or insight. Or something.
I... dunno what to put in that big blank spot below the state icons.
So, I'd like to know what stats everyone thinks would be the most important.
Here's a list and description of all the stats:

-Base Damage-
Affects the amount of damage your attacks can do. When dual-wielding, each hit uses the corresponding weapon's base damage, which makes it a tricky stat to put in the menu. If it is included, should it be like the screenshot, and add the two weapon's base damages together, or should it write it out as DMG:16(16), an average of the two, or something else?

-TP Gain-
How much TP you gain from attacking, and how much the enemy gains from being attacked. When dual-wielding, TP from each hit uses the TP gain of the corresponding weapon.

-Delay-
This would be the weapon's delay. The lower it is, the faster your turn comes around after attacking. When dual-wielding, it's calculated by adding both weapon's delays together.

-Attack-
This is compared against the target's p.def to determine the range of the base damage multiplier. That's really all it does, but it's still an important stat. It's affected by STR. The amount that STR affects it depends on the weapon. For dual-wielding, each hit uses the corresponding weapon's attack+STR value, so it would require similar formatting as base damage.

-P.Def-
Compared against the attacker's attack to determine the range of the base damage multiplier.

-M.Def-
Compared against the attacker's magic attack to determine the range of the base damage multiplier.

-STR-
Affects attack. When attacking, it's compared against the target's STR and can change the base damage multiplier by +-0.5.

-DEX-
Affects accuracy and critical hit rate.

-AGI-
Affects evasion, critical avoidance, and the success rate of fleeing from battle.

-MND-
Affects most magic attacks. When casting spells, it's compared against the target's MND to determine the resist rate.

-Accuracy-
Adds directly to the accuracy of physical attacks, so it has more effect on hit rate than boosting DEX.

-Magic Accuracy-
Adds directly to the accuracy of magical attacks, so it hase more effect on hit rate than boosting MND.

-Evasion-
Adds directly to the evasion rate of physical and magical attacks, so it has more effect on avoidance than boosting AGI or MND.

-Critical Rate-
Actual chance of a critical is based on a comparison of your DEX vs. the target's AGI, so this could only display any critical% boosts from equipment.


That's pretty much all of them. Keep in mind that the equipment menu will show all of these in greater detail, and that I only need the -most important- ones.
I was thinking base damages + delay + attack + defense, and maybe the four base stats(STR,DEX,AGI,MND) along with how much they're increased/decreased by equipment. I'm also thinking of dropping one of the state icon rows there, so instead of making a new row, it'll resize it to match the size of the ones up top. It'll still get two rows of the resized ones, though.... Maybe I'd better make an example to clarify what it would look like.
With less than or equal to seven different states, it'd be the same size as the ones in the screenshot up there. With 8 or more, it'd resize them:
Image
Looks good, love the menu cursor. Like I said, get on with the demo.
...So how about some suggestions for the stats to put in that blank spot? >.> I dunno what to put there. It should contain the stats you'd need to see at a glance. I'm thinking just damage/delay/attack/defense, but even then I dunno what the best way to display damage/attack would be in regards to dual-wielding.
i like how tis game combines ninja and penguins.

Image
My backpack-drawing skills are terrible D:
Whatever, it gets the job done and I have spent waaaay too much time on just the graphic.
Oh, Mitzy's item bag will be her hat :u

Finished:
Rotation
Flipping
Movement
Cancelling placement
Opening/Closing menu
Collision with edges/other items

To do:
4x10 temporary storage area
Switching items between pages
Switching items between characters
Transferrings items from shops/drops/chests/etc. into inventory (like fuck am I coding a sorter for this thing)
Window showing item stats that follows the cursor
Make some actual pictures for the items instead of the squiggles
Maybe make the colored squares only pop up when you pick something up? I don't know. Wouldn't be difficult. Maybe I'll just add it to the options menu.


Also, I just had a thought.
I bet I could use this system to make a player-owned house that you can decorate however you want, without having to change much at all. So... yeah. I guess that'd be neat?
Image
I didn't really take into account how silly some items would look when rotated (i.e. potions).
That brown brick on the right is the temporary storage area. Should your item bag become so crowded that it's impossible to move anything (and thus impossible to organize it), you can just plop items into this area until you've made room for them.
It's temporary, so you can't close the item menu if there's anything sitting there.

Finished:
-Transfer between item bags (including temporary storage)
-A few item graphics (the three in the screenshot)
-Ability to toggle the colored squares and/or the gridlines on/off

Not finished:
-The temporary storage area's graphic
-Swapping between pages of the item bag
-Adding items to the bags without having to manually set the coordinates
-Description window for items


If anyone feels like coding an auto-sorter (as in, press a key and it positions/flips/rotates items to leave as much free space as possible) for this thing, lemme know.
I started rewriting most of the default classes and merging them with the non-default stuff.
Just finished recoding the animated battlers and battle system:
Image
The animation system's probably 95% done at this point. Recoded it almost entirely from scratch, so it's not using Minkoff's system anymore.
I say 95% because I'm sure I've forgotten SOMETHING, but I don't know what.
It's got dual-wielding, single-wielding with either hand, visual equipment, multiple attacks per round, and all that stuff.
The battle system is maybe 75% done. Still need to finish the item formula, the skill formula, and most of the windows. Did not recode the entire thing, just the entire phase4 section.
Although the animation system has support for status conditions, I still have not coded them into the actual battle system, so I need to work on that eventually.

After I get that and the menu done, I'll only have maybe 3-4 more things to finish before I can start back on the actual gameplay. Yay!

Oh, yeah, and the item grid's about 90% done, too:
I love this game so much!



____________________
Crayon Shin Chan dvd boxset
One Piece dvd boxset
The Cosby Show 1-8 dvd boxset
CSI-Complete-Series
Species 1-4 dvd boxset
Dallas dvd boxset
Discovery Channel Complete dvd boxset
ahaha this is looking really good. its always nice to see someone talented with a good sense of humor.
keep up the great details (like that the stash is in the hat, i like that)
also to fix the weird graphics of the potions on the side, you could do an extra graphic with the liquid in the flask also shifted.
The flask idea would require a minimum of three different graphics for anything affected by gravity. This in turn would require recoding the entire system for rotating/flipping, which was complete dick to get working in the first place (would shift around, get placed int he wrong spot, stack on top of other items, etc.).
So, I'll go with "shut up it's magic D8<"
You're welcome to try, though.
  1. class Window_Item_Bag < Window_Base
  2.  
  3.   attr_accessor :phase
  4.  
  5.   def initialize(bag = -1, x = 0, y = 0, z = 200)
  6.     super(0,0,640,480)
  7.     self.contents = Bitmap.new(width-32,height-32)
  8.     self.opacity = 0
  9.     @bag_grid = Sprite.new
  10.     @bag_contents = []
  11.     @grab_offset = [16,16,16,8]
  12.     @index = [0, 0, 0, bag]
  13.     @tempstorage = Item_Bag.new(4,10)
  14.     @tempstorage.background = [0,0]
  15.     if bag == -1
  16.       @itembag = $game_party.item_bag
  17.     else
  18.       @itembag = $game_actors[bag].item_bag
  19.     end
  20.     @offsets = [x, y, @itembag.background[0], @itembag.background[1], z, 416, 0]
  21.     @bag_grid.bitmap = Bitmap.new(32 * @itembag.columns, 32 * @itembag.rows)
  22.     @bag_grid.x = @offsets[0] + @offsets[2]
  23.     @bag_grid.y = @offsets[1] + @offsets[3]
  24.     @bag_grid.z = @offsets[4] + 20
  25.     @temp_contents = []
  26.     @temp_grid = Sprite.new
  27.     @temp_grid.bitmap = Bitmap.new(32 * @tempstorage.columns, 32 * @tempstorage.rows)
  28.     @temp_grid.x = @offsets[0] + @offsets[2] + @offsets[5]
  29.     @temp_grid.y = @offsets[1] + @offsets[3] + @offsets[6]
  30.     @temp_grid.z = @offsets[4]
  31.     @page = Sprite.new
  32.     @page.bitmap = Bitmap.new(120,32)
  33.     @page.z = @offsets[4] + 31
  34.     @tempindex = [0,0]
  35.     @grabbed_item = Sprite.new
  36.     @grabbed_item.z = @offsets[4] + 45
  37.     @toggle = [true, true, false]
  38.     @phase = [0, 0]
  39.     @grabbed = [nil, 0]
  40.     @info_window = Jaber_Info.new
  41.     @info_window.y = 500
  42.     bag_open
  43.     @cursor = Sprite.new
  44.     @cursor.bitmap = RPG::Cache.picture("Cursor")
  45.     @cursor.ox = 85
  46.     @cursor.oy = 8
  47.     @cursor.z = @offsets[4] + 50
  48.     @cursor.angle = 135
  49.     @cursor.x = 200 + @offsets[0] + @offsets[2]
  50.     @cursor.y = 200 + @offsets[1] + @offsets[3]
  51.   end
  52.  
  53.   def bag_open
  54.     @animation_pictures = []
  55.     case @index[3]
  56.     when -1
  57.       @animation_pictures[0] = Sprite.new
  58.       @animation_pictures[0].bitmap = RPG::Cache.picture("Pengoku_BagBack")
  59.       @animation_pictures[0].x = @offsets[0]
  60.       @animation_pictures[0].y = @offsets[1]
  61.       @animation_pictures[0].z = @offsets[4] + 5
  62.       @animation_pictures[1] = Sprite.new
  63.       @animation_pictures[1].z = @offsets[4] + 30
  64.       @animation_pictures[1].bitmap = RPG::Cache.picture("Pengoku_BagFrontTop")
  65.       @animation_pictures[1].ox = @animation_pictures[1].bitmap.width / 2
  66.       @animation_pictures[1].oy = @animation_pictures[1].bitmap.height
  67.       @animation_pictures[1].x = @offsets[0] + 16 + @animation_pictures[1].ox
  68.       @animation_pictures[1].y = @offsets[1] + 16 + @animation_pictures[1].oy
  69.       @animation_pictures[3] = Sprite.new
  70.       @animation_pictures[3].z = @offsets[4] + 30
  71.       @animation_pictures[3].bitmap = RPG::Cache.picture("Pengoku_BagFrontBottom")
  72.       @animation_pictures[3].ox = @animation_pictures[3].bitmap.width / 2
  73.       @animation_pictures[3].oy = @animation_pictures[3].bitmap.height
  74.       @animation_pictures[3].x = @offsets[0] + 16 + @animation_pictures[3].ox
  75.       @animation_pictures[3].y = @offsets[1] + 367 + @animation_pictures[3].oy
  76.       @animation_pictures[2] = Sprite.new
  77.       @animation_pictures[2].bitmap = RPG::Cache.picture("Pengoku_BagFlap")
  78.       @animation_pictures[2].ox = @animation_pictures[2].bitmap.width / 2
  79.       @animation_pictures[2].oy = 32
  80.       @animation_pictures[2].x = @offsets[0] + @animation_pictures[2].ox
  81.       @animation_pictures[2].y = @offsets[1] + @animation_pictures[2].oy
  82.       @animation_pictures[2].z = @offsets[4] + 31
  83.       @animation_pictures[4] = Sprite.new
  84.       @animation_pictures[4].bitmap = RPG::Cache.picture("Pengoku_BagBack2")
  85.       @animation_pictures[4].ox = @animation_pictures[4].bitmap.width / 2
  86.       @animation_pictures[4].x = @offsets[0] - 32 + @animation_pictures[4].ox
  87.       @animation_pictures[4].y = @offsets[1] - 16
  88.       @animation_pictures[4].z = @offsets[4] + 3
  89.       @animation_pictures[0].y += 480
  90.       @animation_pictures[1].y += 480
  91.       @animation_pictures[2].y += 480
  92.       @animation_pictures[3].y += 480
  93.       @animation_pictures[4].y += 480
  94.       frame = 0
  95.       loop do
  96.         Graphics.update
  97.         for sprite in @animation_pictures
  98.           sprite.y -= 24
  99.         end
  100.         frame += 1
  101.         break if frame == 20
  102.       end
  103.       refresh_contents(0)
  104.       refresh_bag(0)
  105.       refresh_squares(0)
  106.       frame = 0
  107.       loop do
  108.         Graphics.update
  109.         frame += 1
  110.         if @animation_pictures[1].zoom_y == 0.0
  111.           @animation_pictures[3].zoom_y = [@animation_pictures[3].zoom_y -= 0.15, 0.0].max
  112.           @animation_pictures[3].zoom_x = [@animation_pictures[3].zoom_x -= 0.15, 0.0].max
  113.         else
  114.           @animation_pictures[1].zoom_y = [@animation_pictures[1].zoom_y -= 0.03, 0.0].max
  115.         end
  116.         @animation_pictures[2].zoom_y = [@animation_pictures[2].zoom_y -= 0.1, 0.0].max
  117.         @animation_pictures[4].y -= 1 if frame <= 32
  118.         break if @animation_pictures[3].zoom_y <= 0.0
  119.       end
  120.       refresh_contents(1)
  121.       refresh_bag(1)
  122.       refresh_squares(1)
  123.       update_info_text
  124.     end
  125.   end
  126.  
  127.   def bag_close
  128.     case @index[3]
  129.     when -1
  130.       @info_window.dispose
  131.       fly_cursor_off
  132.       @cursor.dispose
  133.       frame = 0
  134.       loop do
  135.         frame += 1
  136.         Graphics.update
  137.         if @animation_pictures[3].zoom_y < 1.0
  138.           @animation_pictures[3].zoom_x = [@animation_pictures[3].zoom_x + 0.15, 1.0].min
  139.           @animation_pictures[3].zoom_y = [@animation_pictures[3].zoom_y + 0.15, 1.0].min
  140.         else
  141.           @animation_pictures[1].zoom_y = [@animation_pictures[1].zoom_y + 0.03, 1.0].min
  142.         end
  143.         @animation_pictures[2].zoom_y = [@animation_pictures[2].zoom_y + 0.1, 1.0].min if frame >= 20
  144.         @animation_pictures[4].y += 1 if frame <= 32
  145.         break if frame == 41
  146.       end
  147.       for item in @bag_contents
  148.         item.dispose unless item.nil?
  149.       end
  150.       @grabbed_item.dispose
  151.       @bag_grid.dispose
  152.       frame = 0
  153.       loop do
  154.         Graphics.update
  155.         for picture in @animation_pictures
  156.           picture.y += 48
  157.         end
  158.         frame += 1
  159.         break if frame > 20
  160.       end
  161.     end
  162.   end
  163.  
  164.   def refresh_contents(target_bag)
  165.     if target_bag == 0
  166.       contents = @bag_contents
  167.       bag = @itembag
  168.       page = @index[2]
  169.     elsif target_bag == 1
  170.       contents = @temp_contents
  171.       bag = @tempstorage
  172.       page = nil
  173.     end
  174.     for item in contents
  175.       item.dispose unless item.nil?
  176.     end
  177.     contents.clear
  178.     for item in bag.items
  179.       if (page != nil) and (item[2] != page)
  180.         contents.push(nil)
  181.         next
  182.       end
  183.       pic = Sprite.new
  184.       pic.bitmap = RPG::Cache.picture(bag.get_item_data(item[3]).gridpicture)
  185.       pic.ox = 16
  186.       pic.oy = 16
  187.       pic.z = @offsets[4] + 21
  188.       contents.push(pic)
  189.     end
  190.   end
  191.  
  192.   def set_grabbed
  193.     if @grab_offset[8] != nil
  194.       if @phase[1] == 0
  195.         contents = @bag_contents
  196.       elsif @phase[1] == 1
  197.         contents = @temp_contents
  198.       end
  199.       @grabbed_item.bitmap = contents[@grabbed[0]].bitmap
  200.       @grabbed_item.ox = 16
  201.       @grabbed_item.oy = 16
  202.       @grabbed_item.angle = contents[@grabbed[0]].angle
  203.       @grabbed_item.mirror = contents[@grabbed[0]].mirror
  204.       @grabbed_item.x = contents[@grabbed[0]].x
  205.       @grabbed_item.y = contents[@grabbed[0]].y
  206.       @grabbed_item.opacity = 255
  207.     else
  208.       @grabbed_item.opacity = 0
  209.     end
  210.   end
  211.  
  212.   def refresh_grabbed(rotate = 0)
  213.     if @grab_offset[8] != nil
  214.       if @grabbed_item.angle != (90 * @grab_offset[7][1][0])
  215.         @grabbed_item.angle = (90 * @grab_offset[7][1][0])
  216.         if rotate == 1
  217.           temp = @grab_offset[4]
  218.           @grab_offset[4] = @grab_offset[5]
  219.           @grab_offset[5] = -temp
  220.         else
  221.           temp = @grab_offset[4]
  222.           @grab_offset[4] = -@grab_offset[5]
  223.           @grab_offset[5] = temp
  224.         end
  225.       end
  226.       @grabbed_item.mirror = @grab_offset[7][1][1]
  227.     end
  228.   end
  229.  
  230.   def update_info_text
  231.     @info_window.set_item(get_cursor_object(2), get_cursor_object(1))
  232.   end
  233.  
  234.   def update
  235.     super
  236.     if Input.repeat?(Input::RIGHT)
  237.       if @phase[1] == 0
  238.         @index[0] += 1
  239.         if @index[0] == @itembag.columns
  240.           @phase[1] = 1
  241.           @index[0] -= 1
  242.         end
  243.       elsif @phase[1] == 1
  244.         @tempindex[0] = [@tempindex[0] + 1, @tempstorage.columns - 1].min
  245.       end
  246.       update_info_text
  247.     end
  248.     if Input.repeat?(Input::LEFT)
  249.       if @phase[1] == 0
  250.         @index[0] = [@index[0] - 1, 0].max
  251.       elsif @phase[1] == 1
  252.         @tempindex[0] -= 1
  253.         if @tempindex[0] < 0
  254.           @tempindex[0] = 0
  255.           @phase[1] = 0
  256.         end
  257.       end
  258.       update_info_text
  259.     end
  260.     if Input.repeat?(Input::UP)
  261.       @index[1] = [@index[1] - 1, 0].max
  262.       @tempindex[1] = @index[1]
  263.       update_info_text
  264.     end
  265.     if Input.repeat?(Input::DOWN)
  266.       @index[1] = [@index[1] + 1, @itembag.rows - 1].min
  267.       @tempindex[1] = @index[1]
  268.       update_info_text
  269.     end
  270.     if Input.trigger?(Input::X)
  271.       if @phase[0] == 1
  272.         $game_system.se_play($data_system.cursor_se)
  273.         @grab_offset[7][1][0] += 1
  274.         @grab_offset[7][1][0] %= 4
  275.         refresh_grabbed(1)
  276.       end
  277.     end
  278.     if Input.trigger?(Input::Y)
  279.       if @phase[0] == 1
  280.         $game_system.se_play($data_system.cursor_se)
  281.         @grab_offset[7][1][0] -= 1
  282.         @grab_offset[7][1][0] %= 4
  283.         refresh_grabbed
  284.       end
  285.     end
  286.     if Input.trigger?(Input::Z)
  287.       if @phase[0] == 1
  288.         $game_system.se_play($data_system.cursor_se)
  289.         @grab_offset[7][1][1] = !@grab_offset[7][1][1]
  290.         @grab_offset[7][0] = !@grab_offset[7][0]
  291.         refresh_grabbed
  292.       end
  293.     end
  294.     if Input.trigger?(Input::L)
  295.       @index[2] -= 1
  296.       @index[2] %= @itembag.pages
  297.       refresh_contents(0)
  298.       refresh_bag(0)
  299.       refresh_squares(0)
  300.       update_info_text
  301.       update_page
  302.     end
  303.     if Input.trigger?(Input::R)
  304.       @index[2] += 1
  305.       @index[2] %= @itembag.pages
  306.       refresh_contents(0)
  307.       refresh_bag(0)
  308.       refresh_squares(0)
  309.       update_info_text
  310.       update_page
  311.     end
  312.     if Input.trigger?(Input::A)
  313.       #@info_window.set_item(1)
  314.     end
  315.     update_cursor
  316.     if @grab_offset[8] != nil
  317.       @grabbed_item.x = @cursor.x - (@grab_offset[4])
  318.       @grabbed_item.y = @cursor.y - (@grab_offset[5])
  319.     end
  320.   end
  321.  
  322.   def update_cursor
  323.     x_off = @grab_offset[0]
  324.     y_off = @grab_offset[1]
  325.     if @grabbed[0] != nil
  326.       x_off = @grab_offset[2]
  327.       y_off = @grab_offset[3]
  328.     end
  329.     x_off += @offsets[0] + @offsets[2]
  330.     y_off += @offsets[1] + @offsets[3]
  331.     index_x = @index[0]
  332.     index_y = @index[1]
  333.     index_ax = @index[0]
  334.     index_ay = @index[1]
  335.     if @phase[1] == 1
  336.       x_off += @offsets[5]
  337.       y_off += @offsets[6]
  338.       index_x = @tempindex[0]
  339.       index_y = @tempindex[1]
  340.     end
  341.     index_c = @itembag.columns
  342.     index_r = @itembag.rows
  343.     if @cursor.x < x_off + (32 * index_x)
  344.       @cursor.x += [((x_off + (32 * index_x)) - @cursor.x) / 3, 1].max
  345.     elsif @cursor.x > x_off + (32 * index_x)
  346.       @cursor.x += [((x_off + (32 * index_x)) - @cursor.x) / 3, -1].min
  347.     end
  348.     if @cursor.y < y_off + (32 * index_y)
  349.       @cursor.y += [((y_off + (32 * index_y)) - @cursor.y) / 3, 1].max
  350.     elsif @cursor.y > y_off + (32 * index_y)
  351.       @cursor.y += [((y_off + (32 * index_y)) - @cursor.y) / 3, -1].min
  352.     end
  353.     angle = 135 - (((90 / (index_c - 1)) * index_ax) * (index_ay >= index_r / 2 ? -1 : 1))
  354.     angle -= ((90 / (index_r - 1)) * index_ay * (index_ax >= index_c / 2 ? 1 : -1))
  355.     angle -= 180 if ((index_ax >= index_c / 2) and (index_ay >= index_r / 2))
  356.     angle %= 360
  357.     @cursor.angle %= 360
  358.     if @cursor.angle.to_i != angle.to_i
  359.       angle_inc = (angle - @cursor.angle)
  360.       if angle_inc > 180
  361.         angle_inc -= 360
  362.       elsif angle_inc < -180
  363.         angle_inc += 360
  364.       end
  365.       if angle_inc < 0
  366.         @cursor.angle += [angle_inc / 4, -1].min
  367.       elsif angle_inc > 0
  368.         @cursor.angle += [angle_inc / 4, 1].max
  369.       end
  370.     end
  371.     update_info_offset(angle)
  372.     update_page
  373.   end
  374.  
  375.   def can_dispose?
  376.     return @tempstorage.items.empty?
  377.   end
  378.  
  379.   def dispose_warning
  380.     $game_system.se_play($data_system.buzzer_se)
  381.   end
  382.  
  383.   def refresh_bag(target_bag)
  384.     count = -1
  385.     x_off = @grab_offset[0] + @offsets[0] + @offsets[2]
  386.     y_off = @grab_offset[1] + @offsets[1] + @offsets[3]
  387.     if target_bag == 0
  388.       bag = @itembag
  389.       contents = @bag_contents
  390.       page = @index[2]
  391.     elsif target_bag == 1
  392.       bag = @tempstorage
  393.       contents = @temp_contents
  394.       x_off += @offsets[5]
  395.       y_off += @offsets[6]
  396.       page = nil
  397.     end
  398.     for item in bag.items
  399.       count += 1
  400.       next if (page != nil) and (item[2] != page)
  401.       contents[count].x = x_off + (32 * item[0][0])
  402.       contents[count].y = y_off + (32 * item[0][1])
  403.       if item[1][0] == 1
  404.         contents[count].y += 32 * item[0][2][0]
  405.       elsif item[1][0] == 2
  406.         contents[count].x += 32 * item[0][2][0]
  407.         contents[count].y += 32 * item[0][2][1]
  408.       elsif item[1][0] == 3
  409.         contents[count].x += 32 * item[0][2][1]
  410.       end
  411.       contents[count].angle = (90 * item[1][0])
  412.       contents[count].mirror = item[1][1]
  413.     end
  414.   end
  415.  
  416.   def refresh_squares(target_grid)
  417.     if target_grid == 0
  418.       grid = @bag_grid
  419.       bitmap = RPG::Cache.picture("10x10ItemGrid")
  420.       bag = @itembag
  421.       page = @index[2]
  422.     elsif target_grid == 1
  423.       grid = @temp_grid
  424.       bitmap = RPG::Cache.picture("4x10gridtemp")
  425.       bag = @tempstorage
  426.       page = 0
  427.     end
  428.     grid.bitmap.clear
  429.     if @toggle[0]
  430.       grid.bitmap.blt(0, 0, bitmap, Rect.new(0,0,bitmap.width, bitmap.height))
  431.     end
  432.     return unless @toggle[1]
  433.     x_inc = -1
  434.     for x in bag.grid[page]
  435.       x_inc += 1
  436.       y_inc = -1
  437.       for y in x
  438.         y_inc += 1
  439.         next if y == nil
  440.         case bag.items[y[0]][3][0]
  441.         when 0
  442.           bitmap = RPG::Cache.picture("Grid_Item")
  443.         when 1
  444.           bitmap = RPG::Cache.picture("Grid_Weapon")
  445.         when 2
  446.           bitmap = RPG::Cache.picture("Grid_Armor")
  447.         end
  448.         grid.bitmap.blt(32 * x_inc, 32 * y_inc, bitmap, Rect.new(0,0,32,32))
  449.       end
  450.     end
  451.   end
  452.  
  453.   def update_c
  454.     if @phase[0] == 0
  455.       grab_item
  456.       update_info_text
  457.     elsif @phase[0] == 1
  458.       place_item
  459.       update_info_text
  460.     end
  461.   end
  462.  
  463.   def update_b
  464.     if @phase[0] == 1
  465.       cancel_placement
  466.       update_info_text
  467.     end
  468.   end
  469.  
  470.   def update_page
  471.     @page.bitmap.clear
  472.     @page.bitmap.draw_outline_text(0,0,120,32,(@index[2]+1).to_s + "/" + @itembag.pages.to_s)
  473.   end
  474.  
  475.   def grab_item
  476.     need_refresh = -1
  477.     return if get_cursor_object == nil
  478.     if @phase[1] == 0
  479.       $game_system.se_play($data_system.decision_se)
  480.       @grabbed = [get_cursor_object(0), 0]
  481.       @phase[0] = 1
  482.       @grab_offset[4] = ((@index[0] * 32) - (@bag_contents[@grabbed[0]].x - 16 - (@offsets[0] + @offsets[2])))
  483.       @grab_offset[5] = ((@index[1] * 32) - (@bag_contents[@grabbed[0]].y - 16 - (@offsets[1] + @offsets[3])))
  484.       @grab_offset[6] = @itembag.grid[@index[2]][@index[0]][@index[1]][1]
  485.       @grab_offset[7] = [false, @itembag.items[@grabbed[0]][1].dup]
  486.       @grab_offset[8] = @itembag.items[@grabbed[0]]
  487.       @itembag.items.delete_at(@grabbed[0])
  488.       @itembag.items.compact!
  489.       @itembag.refresh_grid
  490.       need_refresh = 0
  491.     elsif @phase[1] == 1
  492.       $game_system.se_play($data_system.decision_se)
  493.       @grabbed = [get_cursor_object(0), 1]
  494.       @phase[0] = 1
  495.       @grab_offset[4] = (((@tempindex[0] * 32) + @offsets[5]) - (@temp_contents[@grabbed[0]].x - 16 - (@offsets[0] + @offsets[2])))
  496.       @grab_offset[5] = (((@tempindex[1] * 32) + @offsets[6]) - (@temp_contents[@grabbed[0]].y - 16 - (@offsets[1] + @offsets[3])))
  497.       @grab_offset[6] = @tempstorage.grid[0][@tempindex[0]][@tempindex[1]][1]
  498.       @grab_offset[7] = [false, @tempstorage.items[@grabbed[0]][1].dup]
  499.       @grab_offset[8] = @tempstorage.items[@grabbed[0]]
  500.       @tempstorage.items.delete_at(@grabbed[0])
  501.       @tempstorage.items.compact!
  502.       @tempstorage.refresh_grid
  503.       need_refresh = 1
  504.     end
  505.     if need_refresh != -1
  506.       set_grabbed
  507.       refresh_grabbed
  508.       refresh_contents(need_refresh)
  509.       refresh_bag(need_refresh)
  510.       refresh_squares(need_refresh)
  511.     end
  512.   end
  513.  
  514.   def get_cursor_object(mode = 0)
  515.     val = nil
  516.     if @phase[0] == 1
  517.       if @toggle[2]
  518.         if mode == 0
  519.           val = @grabbed[0]
  520.         elsif mode == 1
  521.           val = @itembag.get_item_data(@grab_offset[8][3])
  522.         elsif mode == 2
  523.           val = @grab_offset[8][3]
  524.         end
  525.       end
  526.     else
  527.       if @phase[1] == 0
  528.         ind = @itembag.grid[@index[2]][@index[0]][@index[1]]
  529.         if ind != nil
  530.           if mode == 0
  531.             val = ind[0]
  532.           elsif mode == 1
  533.             val = @itembag.get_item_data(@itembag.items[ind[0]][3])
  534.           elsif mode == 2
  535.             val = @itembag.items[ind[0]][3]
  536.           end
  537.         end
  538.       elsif @phase[1] == 1
  539.         ind = @tempstorage.grid[0][@tempindex[0]][@tempindex[1]]
  540.         if ind != nil
  541.           if mode == 0
  542.             val = ind[0]
  543.           elsif mode == 1
  544.             val = @tempstorage.get_item_data(@tempstorage.items[ind[0]][3])
  545.           elsif mode == 2
  546.             val = @tempstorage.items[ind[0]][3]
  547.           end
  548.         end
  549.       end
  550.     end
  551.     return val
  552.   end
  553.  
  554.   def cancel_placement
  555.     $game_system.se_play($data_system.cancel_se)
  556.     if @grabbed[1] == 0
  557.       @itembag.items.push(@grab_offset[8])
  558.       @itembag.refresh_grid
  559.       need_refresh = 0
  560.     elsif @grabbed[1] == 1
  561.       @tempstorage.items.push(@grab_offset[8])
  562.       @tempstorage.refresh_grid
  563.       need_refresh = 1
  564.     end
  565.     @grabbed.clear
  566.     @grab_offset[8] = nil
  567.     set_grabbed
  568.     refresh_contents(need_refresh)
  569.     refresh_bag(need_refresh)
  570.     refresh_squares(need_refresh)
  571.     @phase[0] = 0
  572.   end
  573.  
  574.   def place_item
  575.     off_x = @grab_offset[6][0]
  576.     off_x = -@grab_offset[6][0] + @grab_offset[8][0][2][0] if @grab_offset[7][1][1]
  577.     off_y = @grab_offset[6][1]
  578.     if @grab_offset[7][1][0] == 1
  579.       off_x = @grab_offset[6][1]
  580.       if @grab_offset[7][1][1]
  581.         off_y = @grab_offset[6][0]
  582.       else
  583.         off_y = -@grab_offset[6][0] + @grab_offset[8][0][2][0]
  584.       end
  585.     elsif @grab_offset[7][1][0] == 2
  586.       if @grab_offset[7][1][1]
  587.         off_x = @grab_offset[6][0]
  588.       else
  589.         off_x = -@grab_offset[6][0]  + @grab_offset[8][0][2][0]
  590.       end
  591.       off_y = -@grab_offset[6][1] + @grab_offset[8][0][2][1]
  592.     elsif @grab_offset[7][1][0] == 3
  593.       off_x = -@grab_offset[6][1]  + @grab_offset[8][0][2][1]
  594.       if @grab_offset[7][1][1]
  595.         off_y = -@grab_offset[6][0] + @grab_offset[8][2][0]
  596.       else
  597.         off_y = @grab_offset[6][0]
  598.       end
  599.     end
  600.     if @grab_offset[7][0]
  601.       if @grab_offset[7][1][0] == 0 or @grab_offset[7][1][0] == 2
  602.         if off_x != (@grab_offset[8][0][2][0] / 2)
  603.           off_x = (off_x - @grab_offset[8][0][2][0]).abs
  604.         end
  605.       elsif @grab_offset[7][1][0] == 1 or @grab_offset[7][1][0] == 3
  606.         if off_y != (@grab_offset[8][0][2][0] / 2)
  607.           off_y = (off_y - @grab_offset[8][0][2][0]).abs
  608.         end
  609.       end
  610.     end
  611.     if @phase[1] == 0
  612.       newpos = [@index[0] - off_x, @index[1] - off_y, @grab_offset[7][1].dup, @grab_offset[8][3].dup]
  613.       unless @itembag.grid_open?(newpos, @index[2])
  614.         $game_system.se_play($data_system.buzzer_se)
  615.         return
  616.       end
  617.       $game_system.se_play($data_system.decision_se)
  618.       @grab_offset[8][2] = @index[2]
  619.       @grab_offset[8][0][0] = newpos[0]
  620.       @grab_offset[8][0][1] = newpos[1]
  621.       @grab_offset[8][1] = @grab_offset[7][1].dup
  622.       @itembag.items.push(@grab_offset[8])
  623.       @itembag.refresh_grid
  624.       need_refresh = 0
  625.     elsif @phase[1] == 1
  626.       newpos = [@tempindex[0] - off_x, @tempindex[1] - off_y, @grab_offset[7][1].dup, @grab_offset[8][3].dup]
  627.       unless @tempstorage.grid_open?(newpos, 0)
  628.         $game_system.se_play($data_system.buzzer_se)
  629.         return
  630.       end
  631.       $game_system.se_play($data_system.decision_se)
  632.       @grab_offset[8][2] = 0
  633.       @grab_offset[8][0][0] = newpos[0]
  634.       @grab_offset[8][0][1] = newpos[1]
  635.       @grab_offset[8][1] = @grab_offset[7][1].dup
  636.       @tempstorage.items.push(@grab_offset[8])
  637.       @tempstorage.refresh_grid
  638.       need_refresh = 1
  639.     end
  640.     @grab_offset[8] = nil
  641.     @grabbed.clear
  642.     set_grabbed
  643.     refresh_contents(need_refresh)
  644.     refresh_bag(need_refresh)
  645.     refresh_squares(need_refresh)
  646.     @phase[0] = 0
  647.   end
  648.  
  649.   def dispose
  650.     bag_close
  651.     @bag_contents.clear
  652.     @temp_contents.clear
  653.     @temp_grid.dispose
  654.     @page.dispose
  655.     for sprite in @animation_pictures
  656.       sprite.dispose
  657.     end
  658.     super
  659.   end
  660.  
  661.   def update_info_offset(angle = nil)
  662.     inc_x = Math.cos(@cursor.angle / (180 / Math::PI)) * 75
  663.     inc_y = Math.sin(@cursor.angle / (180 / Math::PI)) * 75
  664.     inc_x *= -1
  665.     angle = @cursor.angle if angle == nil
  666.     case (angle.to_i / 90)
  667.     when 0
  668.       inc_x -= @info_window.width
  669.       inc_x -= [(@cursor.x.to_i + inc_x.to_i), 0].min
  670.       inc_y -= [(@cursor.y.to_i + inc_y.to_i + @info_window.height) - 480, 0].max
  671.       @info_window.flipped = true
  672.     when 1
  673.       inc_x -= [(@cursor.x.to_i + inc_x.to_i + @info_window.width) - 640, 0].max
  674.       inc_y -= [(@cursor.y.to_i + inc_y.to_i + @info_window.height) - 480, 0].max
  675.       @info_window.flipped = false
  676.     when 2
  677.       inc_x -= [(@cursor.x.to_i + inc_x.to_i + @info_window.width) - 640, 0].max
  678.       inc_y -= @info_window.height
  679.       inc_y -= [(@cursor.y.to_i + inc_y.to_i), 0].min
  680.       @info_window.flipped = false
  681.     else
  682.       inc_x -= @info_window.width
  683.       inc_y -= @info_window.height
  684.       inc_x -= [(@cursor.x.to_i + inc_x.to_i), 0].min
  685.       inc_y -= [(@cursor.y.to_i + inc_y.to_i), 0].min
  686.       @info_window.flipped = true
  687.     end
  688.     @info_window.x = @cursor.x + inc_x
  689.     @info_window.y = @cursor.y + inc_y
  690.     @info_window.z = @cursor.z - 1
  691.   end
  692.  
  693.   def fly_cursor_off(dist = nil)
  694.     move_dist = 60
  695.     move_dist = dist if dist != nil
  696.     inc_x = Math.cos(@cursor.angle / (180 / Math::PI)) * move_dist
  697.     inc_y = Math.sin(@cursor.angle / (180 / Math::PI)) * move_dist
  698.     inc_x *= -1
  699.     until (@cursor.x > 640) or (@cursor.x < 0) or (@cursor.y > 480) or (@cursor.y < 0)
  700.       Graphics.update
  701.       @cursor.x += inc_x
  702.       @cursor.y += inc_y
  703.     end
  704.   end
  705.  
  706. end
  707.  
  708. class Item_Bag
  709.  
  710.   attr_accessor :items
  711.   attr_accessor :grid
  712.   attr_accessor :rows
  713.   attr_accessor :columns
  714.   attr_accessor :background
  715.   attr_accessor :pages
  716.  
  717.   def initialize(columns = 10, rows = 10, pages = 2)
  718.     @items = []
  719.     @background = [32,32]
  720.     @pages = pages
  721.     @rows = rows
  722.     @columns = columns
  723.     reset_grid
  724.   end
  725.  
  726.   def reset_grid
  727.     @grid = []
  728.     i = 0
  729.     pages.times do
  730.       @grid.push([])
  731.       columns.times do
  732.         @grid[i].push([])
  733.       end
  734.       i += 1
  735.     end
  736.   end
  737.  
  738.   def refresh_grid
  739.     index = 0
  740.     reset_grid
  741.     for data in @items
  742.       item = get_item_data(data[3])
  743.       data[0][2] = item.dimensions
  744.       for area in item.gridcoords
  745.         x_plus = area[0]
  746.         x_plus = -area[0] + data[0][2][0] if data[1][1]
  747.         y_plus = area[1]
  748.         if data[1][0] == 1
  749.           x_plus = area[1]
  750.           if data[1][1]
  751.             y_plus = area[0]
  752.           else
  753.             y_plus = -area[0] + data[0][2][0]
  754.           end
  755.         elsif data[1][0] == 2
  756.           if data[1][1]
  757.             x_plus = area[0]
  758.           else
  759.             x_plus = -area[0] + data[0][2][0]
  760.           end
  761.           y_plus = -area[1] + data[0][2][1]
  762.         elsif data[1][0] == 3
  763.           x_plus = -area[1] + data[0][2][1]
  764.           if data[1][1]
  765.             y_plus = -area[0] + data[0][2][0]
  766.           else
  767.             y_plus = area[0]
  768.           end
  769.         end
  770.         @grid[data[2]][data[0][0] + x_plus][data[0][1] + y_plus] = [index, area]
  771.       end
  772.       index += 1
  773.     end
  774.   end
  775.  
  776.   def grid_open?(data, page)
  777.     item = get_item_data(data[3])
  778.     for area in item.gridcoords
  779.       x_plus = area[0]
  780.       x_plus = -area[0] + item.dimensions[0] if data[2][1]
  781.       y_plus = area[1]
  782.       if data[2][0] == 1
  783.         x_plus = area[1]
  784.         if data[2][1]
  785.           y_plus = area[0]
  786.         else
  787.           y_plus = -area[0] + item.dimensions[0]
  788.         end
  789.       elsif data[2][0] == 2
  790.         if data[2][1]
  791.           x_plus = area[0]
  792.         else
  793.           x_plus = -area[0] + item.dimensions[0]
  794.         end
  795.         y_plus = -area[1] + item.dimensions[1]
  796.       elsif data[2][0] == 3
  797.         x_plus = -area[1] + item.dimensions[1]
  798.         if data[2][1]
  799.           y_plus = -area[0] + item.dimensions[0]
  800.         else
  801.           y_plus = area[0]
  802.         end
  803.       end
  804.       if data[0] + x_plus >= @columns or data[0] + x_plus < 0
  805.         return false
  806.       end
  807.       if data[1] + y_plus >= @rows or data[1] + y_plus < 0
  808.         return false
  809.       end
  810.       if @grid[page][data[0] + x_plus][data[1] + y_plus] != nil
  811.         return false
  812.       end
  813.     end
  814.     return true
  815.   end
  816.  
  817.   def real_x(id)
  818.     x_plus = 0
  819.     x_plus = @items[id][0][2] if @items[id][1][1]
  820.     if @items[id][1][0] == 2
  821.       x_plus = @items[id][0][2]
  822.     elsif @items[id][1][0] == 3
  823.       x_plus = @items[id][0][3]
  824.     end
  825.     return x_plus
  826.   end
  827.  
  828.   def real_y(id)
  829.     y_plus = 0
  830.     if @items[id][1][0] == 1
  831.       y_plus = @items[id][0][2]
  832.     elsif @items[id][1][0] == 2
  833.       y_plus = @items[id][0][3]
  834.     elsif @items[id][1][0] == 3
  835.       y_plus = @items[id][0][2]
  836.     end
  837.     return y_plus
  838.   end
  839.  
  840.   def get_item_data(item)
  841.     case item[0]
  842.     when 0
  843.       return $data_items[item[1]]
  844.     when 1
  845.       return $data_weapons[item[1]]
  846.     when 2
  847.       return $data_armors[item[1]]
  848.     end
  849.   end
  850.  
  851. end
Expand to see the code.
I don't actually remember how this works.

I don't even know how I'm going to work out adding items into the thing. I don't feel like coding a method to find open spots for items, so I'll probably just make the player manually stick stuff in it themselves.

I'm currently working on the new quest log.
I have run into a slight problem.

Problem: Can't code the layout very well without having the background sprited. Can't sprite the background very well until I know how the layout will fit.
With a window, it can be most any shape.
But did I make it a window? Noooo. I had to go and make it a book, so now it has to have proportions that
A) look normal for a book
B) Aren't too small
C) have room for a list on the side
The end result is that the code for quests is not going to be autoformatted, it's going to have to be manually set up similar to how the info window for items works.
Which looks like this:
  1. $data_weapons[2].info = [[0,[220,120]],[1,[0,0,0], $data_weapons[2].name],[1,[0,0,2], "(1H Katana)"],[3,[0,26], "basedmg"],[1,[16,20,0], $data_weapons[2].basedmg.to_s],[3,[58,26], "magdmg"],[1,[74,20,0], $data_weapons[2].matk.to_s],[3,[116,26], "delay"],[1,[132,20,0], $data_weapons[2].delay.to_s],[1,[0,38,0], "STR+10  DEX+5  AGI+10"],[4,[63,1]],[1,[0,57,0], "A katana that has been passed",17],[1,[0,72,0], "down through Pengoku's family",17],[1,[0,87,0], "for generations.",17]]
Expand to see the code.

Progress so far:
Image
All it can currently do is list the quest lists. Quests will (eventually) be sorted by location.
After I make the cursor. And page-turning. And graphics. And method for drawing the data for it. And make the list on the right for the quests themselves.


Also tested out fotz's pixelmovement's built-in waypoint generator for pathfinding.
IT IS BOLLOCKS.
I get to do them by hand, yay!
Luckily, this won't be needed for a good while, so I can put in on hold for a looong time.


Lastly:
Flooded my damn fort again. :|
Image
Sooooooo hows the game going? Hope you haven't given up on this game and it looks funny. I have an idea that might be a pain in the arse but hey here goes: Perhaps certain items could react differently when they are in the correct position to one another. ie If a potion were to be turned upside down above a potion that was right side up underneath so that the openings were next to each-other then the two potions could mix to form a better potion as the potion on top would lose the cork and spill. So in the end you would end up with a better potion and an empty bottle. To help it should look like this:
p- potion 1 upside down
b- potion 2 right side up. Confusing probably but hey if it woks it works.
Darth J wrote:
Sooooooo hows the game going? Hope you haven't given up on this game and it looks funny. I have an idea that might be a pain in the arse but hey here goes: Perhaps certain items could react differently when they are in the correct position to one another. ie If a potion were to be turned upside down above a potion that was right side up underneath so that the openings were next to each-other then the two potions could mix to form a better potion as the potion on top would lose the cork and spill. So in the end you would end up with a better potion and an empty bottle. To help it should look like this:
p- potion 1 upside down
b- potion 2 right side up. Confusing probably but hey if it woks it works.


I think making it more complicated is the last thing Jaberwocky wants.
Or I could maybe just use the crafting menu.
Also isn't the point of putting a cork in the bottle to keep it from spilling out? >.>


ANYWAYS

BAM
Image
Things you can see in this screenshot:
- Visual equipment
- Multiple attacks

Things you can't see:
- Weather over actors/under windows
- Fixed Z values
- Fixed viewports
- Fixed damage pops
- Fixed attack speeds
- Global $spriteset for smoother transitions between scenes

I need to go sprite some shields so I can dual-wield them.


Redesigned the equipment menu:
Image
It's now part of the main menu, like the inventory/quest log are.
I think I made the silhouette too small.
I also have no idea where I'm going to put the item info or any of that junk.


Finished stackable item movement and handling and all that junk:
Image
Also added toggles for the info windows, grid, and colored squares.
Also finally gave each character their own inventory. Still need to make the seperate graphics, though.

Other stuff finished:
- Pengoku walks faster, flipping out of caterpillar sprites reduced
- Running from battles works again
- Quest log, obviously
- Fixed text spacing in message windows:
Image


Things to do:
- Take a nap
Whoops, double-clicked
I wasn't too impressed by this game when I first saw it - personal bias against the lolsorandom^_^ness of ninja-penguins, but now this is looking really good and my past prejudices are washed away like last night's cider ~

This looks great man, hope you finish it some time.
Image
Equipment menu completed. Now works properly with equipment that uses multiple slots (i.e. 2handed weapons), and properly marks the equipment in the item bag as being equipped. It was complete dick to get it working correctly >_>;
(Don't ask me how that works because I don't have a damn clue)

NOW YOU CAN FINALLY FULFILL THAT RETARDED DREAM OF BEING ABLE TO DUAL-WIELD SHIELDS

Other stuff:
Moved magic orbs to their own menu, changed named to 'Aether', changed number from two to three. This should prevent a majority of the stupid remarks. Also recoded the way the cursors move so they move to the closest object in the direction you press, rather than the object with the smallest x/y difference. Basically what this means is it checks both the x and y values, instead of just one or the other, so the cursor moves in a much more predictable manner and is easier to use. Or something like that.

All that's left is...
Status menu, item bag sub-menu, skill menu, and the aether menu.
After that, the new main menu is completed. Mostly.
Except the graphics. And the movement of the characters (which will have to wait til I'm done respriting them).
Actually I don't even know what I'd put in the status menu since you can kinda already see all the stats and everything that isn't hidden right there...
Battle system is finally coming together.

Three working skills!
...Zero working items, though.
Actually I don't think you can even open the item menu in battle without it crashing >_>;

Finally got the state resistances working now, though. The duration, effect, and tick speed can all change depending on how much it gets resisted.
Or so I assume. I suppose I should go make a skill that adds a state and test the thing.
hey this is
shaping up to become pretty nice
looks like you're really determined to make this into a full fledged game
keep up the good work!

also
Jaberwoky wrote:
NOW YOU CAN FINALLY FULFILL THAT RETARDED DREAM OF BEING ABLE TO DUAL-WIELD SHIELDS

ahahaha fuck yeah
Just heard of this game but i wanna play! Is this a new release of PS 2?

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=67448