User Tag List

Results 1 to 10 of 10

Thread: Energy Tanks and Invul Frames

  1. #1
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,129
    Level
    11
    vBActivity - Bars
    Lv. Percent
    54%

    Question Energy Tanks and Invul Frames

    Question 1; and I put this in scripting since I'm almost positive this is going to require some scripting to pull off...

    How would I set up an Energy Tank health system like Metroid uses. I want to do this for both Health and Magic (magic is simply being renamed Energy for flavor in the quest). I had this crazy idea to do a more scifi style quest, so I want to use Metroid's health system and adapt it for Energy which is being used for energy based weapons and special utility items.

    Optionally, I'd like the energy value to be kinda abstract in the sense that no specific numbers are shown to the player so the energy tank system should have the energy tank squares as its top row and the bottom would simply be the Energy 00-99 counter, but the magic side would show Energy Tanks on the top row and a standard meter on the bottom.

    Question 2; How do I reduce Enemy Invul frames? I'd like to set up the game so that the enemies do not have as many invul frames, so that rapid shots can each deal damage without passing though harmlessly (enemy hp's are getting adjusted up a bunch). Ideally, I'd also like knockback removed with the exception of specific items (Sword, Hammer, Hookshot, Bomb Weapons).

    Thanks in advance.
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

  2. #2
    Quest Builder Anarchy_Balsac's Avatar
    Join Date
    Nov 2005
    Posts
    751
    Mentioned
    11 Post(s)
    Tagged
    2 Thread(s)
    vBActivity - Stats
    Points
    2,612
    Level
    16
    vBActivity - Bars
    Lv. Percent
    69.57%
    Setup a variable to record current health and round up to the nearest full heart (Health is in 16ths of a heart IIRC). Set up another to represent a "life bar". Set up a 3rd for "checked damage"

    Then run a function that runs every frame to check for damage, deduct "checked damage" from "life bar" and if life bar <= 0, set life bar back to max, and health to "current health "- 16. Otherwise, set health back to "current health".

    The ONLY problem with this is that you may "die" with one full E-tank, and given how ZC works, I'm not sure if there is a way around this @ZoriaRPG

  3. #3
    The Time-Loop Continues ZC Developer
    Gleeok's Avatar
    Join Date
    Apr 2007
    Posts
    4,827
    Mentioned
    259 Post(s)
    Tagged
    10 Thread(s)
    vBActivity - Stats
    Points
    12,978
    Level
    33
    vBActivity - Bars
    Lv. Percent
    28.31%
    Someone actually did a Metroid HP system before. It might of just been: Game->Counter[..] = Link->HP; And maybe the reserve tanks were just another counter you check only when HP drops to zero.

    You can check Link->HP <= 0 now and setting it above zero will save Link from dying. (This has been around since 2.5 RC1 IIRC).
    This post contains the official Gleeok seal of approval. Look for these and other posts in an area near you.

  4. #4
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,129
    Level
    11
    vBActivity - Bars
    Lv. Percent
    54%
    There was a script I was using for an item that acted like a fairy in a bottle. Not sure if that will be of help.

    How do I use the subscreen to display full or empty health tanks?

  5. #5
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,129
    Level
    11
    vBActivity - Bars
    Lv. Percent
    54%
    Better question; is there a way to modify how many hp are in a heart meter piece?

  6. #6
    Keese Just registered
    Join Date
    Jan 2018
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    335
    Level
    6
    vBActivity - Bars
    Lv. Percent
    69.33%
    Quote Originally Posted by Lelouche Vi Britannia View Post
    There was a script I was using for an item that acted like a fairy in a bottle. Not sure if that will be of help.

    How do I use the subscreen to display full or empty health tanks?
    Note that with scripting you can draw anything in the passive subscreen area by setting the Y, for example, in a drawtile or drawinteger function, to a negative number that is less than zero but greater than around -64 or so.
    To draw that type of thing to the active subscreen, you might need to write code that adds and takes away items based on whether the Energy Tank is full or not, and overlap their space on the subscreen so that the item changes there depending on if the tank is full or not.

  7. #7
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,129
    Level
    11
    vBActivity - Bars
    Lv. Percent
    54%
    Currently working with someone on PureZC to get it working. I'll let everyone know how it goes.

  8. #8
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,781
    Level
    21
    vBActivity - Bars
    Lv. Percent
    73.06%
    Erm, yes. I was the one who wrote the Metroid ETanks thing, including drawing to the subscreen.

    Here, have fun: Metroid ETanks and Save Points.

    There's a lot of stuff that @ywkls had in his quest that you will need to strip out, but it's fairly easy to understand.

  9. #9
    The Timelord
    QDB Manager
    ZC Developer

    Join Date
    Oct 2006
    Location
    Prydon Academy
    Posts
    1,396
    Mentioned
    112 Post(s)
    Tagged
    1 Thread(s)
    vBActivity - Stats
    Points
    4,781
    Level
    21
    vBActivity - Bars
    Lv. Percent
    73.06%
    You cannot interact with npc states that control knockback or inv frames in 2.50.x. You can force the enemy xy manually, as a hack, but inv frames aren't something that you can read, or set, in ZC < 2.54 (some Alpha).

    In the latest builds, you have npc->InvFrames. I might look into a knockback boolean, and of course add npc->Knockback(dir) or (angle), along with npc->Hit(w_type, damage, dir).

    HP/Heart and MP/Block are internal engine constants. At present, there is no way to change them, although it doesn't seem overly difficult to add that as a future feature. I scripted my own HP and MP mechanics to bypass this in 2.50.

  10. #10
    Octorok Lelouche Vi Britannia's Avatar
    Join Date
    Oct 2015
    Location
    Britannia - Area 11
    Posts
    173
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,129
    Level
    11
    vBActivity - Bars
    Lv. Percent
    54%
    Quote Originally Posted by ZoriaRPG View Post
    You cannot interact with npc states that control knockback or inv frames in 2.50.x. You can force the enemy xy manually, as a hack, but inv frames aren't something that you can read, or set, in ZC < 2.54 (some Alpha).

    In the latest builds, you have npc->InvFrames. I might look into a knockback boolean, and of course add npc->Knockback(dir) or (angle), along with npc->Hit(w_type, damage, dir).

    HP/Heart and MP/Block are internal engine constants. At present, there is no way to change them, although it doesn't seem overly difficult to add that as a future feature. I scripted my own HP and MP mechanics to bypass this in 2.50.
    *sigh* Oh well, I'll just have to deal with it. Of course at the rate I'm working on this project, We'll be well into a new version of ZQuest by then.
    Lost my wings and grew 8 tentacles... I've seen enough Hentai to know where this is going....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Armageddon Games is a game development group founded in 1997. We are extremely passionate about our work and our inspirations are mostly drawn from games of the 8-bit and 16-bit era.
Social