I'm working in the latest version of Zelda Classic 2.5 with the Metroid Prime tileset by toaofgamecube. I've got a partial code that does seem to work to accomplish most of what I'm trying to do but one section of it refuses to bend to my will. I've attempt to search out other code that does what I want to no avail, so I'm going to post what I've got; then explain what I'm trying to do.
In case it isn't obvious, I'm trying to make code that creates easily customizable ammo upgrades for a Metroid-style quest (although they could probably be adapted to other quests fairly easily).
So far, the item script works exactly as desired as does some of the global script. (For some reason, my current amount of arrows is not being reset, but the rupees are.)
The respawner is an expanded and modified version of the script I posted to the database designed to keep spawning enemies if any of your current amounts of items is less than its maximum (or endlessly) and it seems to work as designed. However, the refill station doesn't.
I've seen some code which scans every combo for a flag and then refills the ammo of your choice to a certain amount when you encounter the combo in question. However, what I'd like is to have it where all you have to do is touch the FFC and it will automatically refill you. The variable refilltype would determine what items are then filled.
Any help at finishing this up would be appreciated.
Edited by ywkls, 20 February 2015 - 06:16 PM.