User Tag List

Results 1 to 4 of 4

Thread: Miniboss portal script

  1. #1
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,146
    Level
    18
    vBActivity - Bars
    Lv. Percent
    11.52%

    Miniboss portal script

    Purpose: In the Gameboy Zelda games, when you defeat a dungeon's miniboss, a portal appears, linking the starting room with the miniboss's room. This script allows you to reproduce this effect.

    Miniboss Portal Script on ZCtut.com (Updated December 9, 2007)

    I've updated the script, and moved it to my site, for central access. Now the script uses a better method of determining a miniboss's death.
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

  2. #2
    Octorok
    Join Date
    Nov 2006
    Age
    29
    Posts
    463
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    1,774
    Level
    14
    vBActivity - Bars
    Lv. Percent
    9.46%

    Re: Miniboss portal script

    Cool, nice to see that you are back and the site is back! :) I'll check it out right now!

    Click here to level up my card, or be sacrificed... ^_^

    Want to see Shattered Earth, AGN's RPG, back? Got a computer that is capable of running a server? PM me!

  3. #3
    Wizrobe
    Join Date
    Dec 2006
    Age
    29
    Posts
    3,693
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    8,939
    Level
    28
    vBActivity - Bars
    Lv. Percent
    43.5%

    Re: Miniboss portal script

    Awesome. But what exactly does the first augment do? The site says it is the level of the miniboss, to determine if the portal should appear at all. What exactly should I set the augment to?
    Quote Originally Posted by rock_nog View Post
    Well of course eveything's closed for Easter - don't you know of the great Easter tradition of people barricading themselves up to protect themselves from the return of Zombie Christ?


  4. #4
    Lynel
    ZC Developer
    pkmnfrk's Avatar
    Join Date
    Jan 2004
    Location
    Toronto
    Age
    37
    Posts
    1,248
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    3,146
    Level
    18
    vBActivity - Bars
    Lv. Percent
    11.52%

    Re: Miniboss portal script

    It requires a bit of explanation. In the concept quest I'm working on, I have a global variable (mb_defeated) to keep track of which baddies Link has defeated. Each bit in this variable represents one mini boss. Bit 1 is Level 1's mini boss, etc.

    I've included everything in the script to make it happen right out of the box. So, in effect, you set D0 to 1 for Level 1's miniboss portal, etc. But, out of the box, no portals will ever appear unless you have another script setting these bits.

    For example, let's say you have a custom boss in Level 1. You set the portals' D0 to 1, and you include this in the boss's script:

    Code:
    //Boss is defeated
    mb_defeated = setbit(mb_defeated, 1, true);
    That will set bit 1, and cause the portal to appear.

    If you have some other means of keeping track of which boss is defeated, you can modify the script to suit. As an example, I originally used Screen->D[7] to check to see if 'the miniboss on this screen' was defeated. In this case, D0 could be the screen number, and it would look like this:

    Code:
    		//Change this to how you determine the miniboss is dead
    		while(Game->GetScreenD(lev,7) == 0) {
    			Waitframe();
    		}
    If you need more specific help, feel free to ask.
    Tale of the Cave - a web comic - Updates Monday, Wednesday, Friday
    ZC Tutorials - Tutorials and Script Library - Updated July 30, 2008
    ZeldaGuard - Corruption in my save files? It's more likely than you think!
    I do script requests!

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