Jump to content

Photo

Can Someone help me modifiying the Flair Sword

Item Script

  • Please log in to reply
3 replies to this topic

#1 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 13 March 2020 - 01:18 PM

Is it possible to add a "use SuperQuake Attack, instead of Hurricane Spin" function to this script(s)?

I'd be really happy if someone can help me.

 

item script FlareSwordItem{
    void run(int nothing, int firesprite){
        int name[] = "FlareSwordFFC";
        int args[8];
        args[0] = firesprite;
        RunFFCScript(Game->GetFFCScript(name), args);
    }
}

ffc script FlareSwordFFC
{void run(int firesprite)
{
        int SwordX;
        int SwordY;
        int PreviousSwordX;
        int PreviousSwordY;
        int SwordDmg;
        while(true){
            SwordX = -1000;
            SwordY = -1000;
            for (int i = Screen->NumLWeapons(); i > 0; i--) {
                lweapon wpn = Screen->LoadLWeapon(i);
                if ( wpn->ID == LW_SWORD ) {
                    SwordX = wpn->X;
                    SwordY = wpn->Y;
                    SwordDmg = wpn->Damage;
                }
            }
            if ( SwordX == -1000 && SwordY == -1000 )
                Quit();
            if ( Link->Action != LA_CHARGING && Link->Action != LA_GOTHURTLAND && (SwordX != PreviousSwordX || SwordY != PreviousSwordY) ) {
                Game->PlaySound(13);
                lweapon wpn = CreateLWeaponAt(LW_FIRE, SwordX, SwordY);
                wpn->UseSprite(firesprite);
                wpn->Damage = SwordDmg;
                wpn->Step = 0;
            }
            PreviousSwordX = SwordX;
            PreviousSwordY = SwordY;
            Waitframe();
        }
    }
}

 



#2 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 13 March 2020 - 02:00 PM

I don't know why I made this hillarious mistakes in the headline.
Maybe I need to sleep  :tard:



#3 Emily

Emily

    Scripter / Dev

  • ZC Developers

Posted 14 March 2020 - 08:30 AM

Err, no. That wouldn't be a modification. It'd be an entirely separate script. That looks EXTREMELY SPECIFIC to the hurricane spin.


  • Bagu likes this

#4 Bagu

Bagu

    Fandomizer

  • Members
  • Real Name:A.I. Bot Bottomheimer
  • Location:Germany

Posted 14 March 2020 - 08:35 AM

Oh ok, It was just an Idea





Also tagged with one or more of these keywords: Item Script

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users