User Tag List

Results 1 to 4 of 4

Thread: OnDeath() {

  1. #1
    On top of the world ShadowTiger's Avatar
    Join Date
    Jun 2002
    Location
    Southeastern New York
    Posts
    12,231
    Mentioned
    31 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    29,581
    Level
    46
    vBActivity - Bars
    Lv. Percent
    60.47%
    Achievements It's over 9000!

    OnDeath() {

    Forgive me if this is already implemented, but I had an idea for a Death Handler.



    OnDeath(Link->MaxHP > 3)
    {
    Link->Rupees = --3;
    }


    I know I butchered a lot of that, but you get the idea. That being but an example, I can run through the concept in terms of what it could accomplish. Suppose you had more than three heart containers. If you did, it would deduct three rupees when you died. If you didn't have more than three HC, it wouldn't. Think of it as a "Beginner's safety net." Just a little something you could code in. Hell, if you were vicious, you could reverse the > sign and change it to a < and change the 3 to a 12, and cater only to those who have already tested their mettle. You could even deduct a heart container piece or something, assuming you could buy more from shops. (Yay Mock Experience Counters... ...) And, since this is a script, you could place it not in a global script, but in an FFC script in a single room, (Or more than one.) and have death conditions in certain rooms. Make the death penalty free for bosses, but higher or lower for certain dungeons. Maybe even set a continue flag if you died in a place, whereas that continue flag wouldn't be set if you hadn't died yet.

    Maybe, ... just maybe, ... you could even circumvent death entirely, and have it warp you to a different room and restore your health if your health goes into the 0 or negatives, rather than taking you to the death scene. (Though I hear that's hardcoded and unavoidable.) Or perhaps it could just warp you to that scene AFTER the death scene. (Hard to do as well, I'd wager.)

    Mhm. Thoughts?

  2. #2
    Wizrobe C-Dawg's Avatar
    Join Date
    Jan 2002
    Posts
    4,205
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    6,613
    Level
    25
    vBActivity - Bars
    Lv. Percent
    0.19%

    Re: OnDeath() {

    Whenever you die, you lose a heart container?

    Holy shit, sign me up, Batman. I love torturing the player!

  3. #3
    On top of the world ShadowTiger's Avatar
    Join Date
    Jun 2002
    Location
    Southeastern New York
    Posts
    12,231
    Mentioned
    31 Post(s)
    Tagged
    3 Thread(s)
    vBActivity - Stats
    Points
    29,581
    Level
    46
    vBActivity - Bars
    Lv. Percent
    60.47%
    Achievements It's over 9000!

    Re: OnDeath() {

    ... ... Um ... ... Yeah. Play Neverwinter Nights and you'll find no end of OnDeath XP Handlers.

    I swear, one of these days, I've got to get a Sarcasm detector. Holy shit Batman indeed.

  4. #4
    Developer
    ZC Developer
    jman2050's Avatar
    Join Date
    Jun 2001
    Location
    Do you really need to know
    Age
    37
    Posts
    3,883
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    5,711
    Level
    23
    vBActivity - Bars
    Lv. Percent
    46.5%

    Re: OnDeath() {

    Actually, I had planned to convert Link's code to scripts, with one of the scripts being a death script. I'm don't think that'll come before 2.5, but we'll see what happens.
    AGN's Resident Zelda Classic Developer and Sonic the Hedgehog Fanboy

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