User Tag List

Results 1 to 4 of 4

Thread: Fairy Spell from AoL?

  1. #1
    Gibdo redmage777's Avatar
    Join Date
    Apr 2003
    Age
    44
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,402
    Level
    16
    vBActivity - Bars
    Lv. Percent
    9.94%

    Fairy Spell from AoL?

    Those of you who are unfamiliar with the fairy spell:
    It is a spell from the second Zelda game which allowed Link to shape-shift into a fairy and fly over obstacles while he was on that screen.

    How it should work in Zelda Classic:
    Link sets it as an A/B item and activates it, While he is a fairy, he cant use items but can only be blocked by "no fly zones." To deactivate it, the player pushes the A or B button and becomes human again. In order to prevent abuse of the spell, Link should have to deactivate the spell before he can walk onto the next screen.


    One of these days I'll have to learn scripting myself but until that day comes...
    Tile Contest #14 Winner

  2. #2
    Keese
    Join Date
    Jan 2008
    Age
    28
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    747
    Level
    9
    vBActivity - Bars
    Lv. Percent
    60.81%

    Re: Fairy Spell from AoL?

    There's a guy over at pure who's making a Z2 remake:
    http://www.purezc.com/forums/index.php?showtopic=39651 There might be a tread here but I'm too lazy to look.
    He's not on the spells yet but he said he'll release the scripts when he's done.

  3. #3
    Gibdo redmage777's Avatar
    Join Date
    Apr 2003
    Age
    44
    Posts
    715
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    vBActivity - Stats
    Points
    2,402
    Level
    16
    vBActivity - Bars
    Lv. Percent
    9.94%

    Re: Fairy Spell from AoL?

    Yes I've seen that one, amazing work I must say... And yes common sense should have told me he would eventually have to produce a Fairy spell.
    Tile Contest #14 Winner

  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,143
    Level
    18
    vBActivity - Bars
    Lv. Percent
    10.86%

    Re: Fairy Spell from AoL?

    The main issue I see in this regard would be the "ignoring walls" bit. But, if I had to take a quick, untested stab at it, I would probably write something like:

    Code:
    bool isFairy = false;
    bool inFairy = false;
    const int fairyItem = 1234; //for the sprite modification
    
    global script slot2 {
      void run() {
        while(true) {
    
          if(isFairy()) doFairy();
    
          Waitframe();
        }
      }
    
      void doFairy() {
        if(!inFairy) {
          Link->Item[fairyItem] = true;
          Link->Action = LA_NONE;
          inFairy = true;
        }
    
        if(Link->InputUp) {
          Link->Dir = DIR_UP;
          if(Link->Y > 3) Link->Y -= 2;
        }
    
        if(Link->InputDown) {
          Link->Dir = DIR_DOWN;
          if(Link->Y < 173) Link->Y += 2;
        }
    
        if(Link->InputLeft) {
          Link->Dir = DIR_LEFT;
          if(Link->X > 3) Link->X -= 2;
        }
    
        if(Link->InputRight) {
          Link->Dir = DIR_RIGHT;
          if(Link->X < 253) Link->X += 2;
        }
        
        if(Link->InputA) {
          Link->Item[fairyItem] = false;
          inFairy = false;
          isFairy = false;
        }
     
      }
    
    }
    
    item script fairySpell {
      void run() {
        isFairy = true;
      }
    }
    Warning: Totally untested or syntax checked.

    You need to make two items: one is the spell (which gets the item script above), and the other is a hidden item which serves only to modify Link's sprite. Put the sprite item's ID into the constant in the script at the top.
    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