Jump to content

Photo

A boss script request


  • Please log in to reply
2 replies to this topic

#1 ZebraStallion

ZebraStallion

    Follower of Destiny

  • Members

Posted 03 April 2008 - 04:53 PM

Remember NoeL's quest with Botha, the plant boss? I am using those tiles. I need it to sit in the back of the room where botha originally did with it's eye closed. While it sits there, There will be three vines that are 2 tiles tall that pop up out of the ground one at a time. To get the vines away, you have to hit them with the boomerang. After the vines are defeated, the eye will open and it will try to suck you in. Linkus already made the pull to center scriptfor me. After it tries to suck you in, then you can hit it with the sword. You have to do this 3 times.

Here is a picture of Botha for those of you who don't know:
IPB Image

And here is the "vacuum" script thaht Linkus made to add to the boss script:
CODE

import "std.zh"

ffc script vacuum{
    void run(){
        while(true){
            int x = 128;
            int y = 84;
            float b; float p; float q;
            int suckx = 1;
            int sucky = 1; //suction pawer
            //int r = n; //r is radius in pixels
            this->X = x; this->Y = y;
            p = Link->X - x;
            q = Link->Y - y;
            b = Tan(q / p); //checks angle between Link and FFC
            //if(r <= (sqrt((p * p) + (q * q)))
            //^distance formula to check if Link is in range.
            //remove "//' at the beginning of lines 7, 11, and  
            //42 and replace "n" with length of radius.    
            
                if((b == 0) && (p > 0)){
                    Link->X -= suckx;
                }
                if((b > 0) && (b <= 90) && (p > 0) && (q > 0)){
                    Link->X -= suckx; Link->Y -= sucky;
                }
                if((b == 0) && (q > 0)){
                    Link->Y -= sucky;
                }
                if((b >= -90) && (b < 0) && (p < 0) && (q > 0)){
                    Link->X += suckx; Link->Y -= sucky;
                }
                if((b == 0) && (p < 0)){
                    Link->X += suckx;
                }
                if((b > 0) && (b <= 90) && (p < 0) && (q < 0)){
                        Link->X += suckx; Link->Y += sucky;
                }
                if((b == 0) && (q < 0)){
                    Link->Y += sucky;
                }
                if((b >= -90) && (b < 0) && (p > 0) && (q < 0)){
                        Link->X -= suckx; Link->Y += sucky;
                }
            //}
        Waitframes(3); //controls suck rate
        }
    }
}

Edited by ZebraStallion, 03 April 2008 - 04:53 PM.


#2 ZebraStallion

ZebraStallion

    Follower of Destiny

  • Members

Posted 10 April 2008 - 06:14 PM

Vould somebody please do this for me? I really need to make this boss.

#3 ZebraStallion

ZebraStallion

    Follower of Destiny

  • Members

Posted 18 April 2008 - 09:30 PM

... I really need help with this. I need this before the Spring Expo. PLEASE?! I'll add the person who does this into the POS credits!


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users