Jump to content

Photo

enemy in a chest..


  • Please log in to reply
2 replies to this topic

#1 caprontos

caprontos

    Recipient of Ways

  • Members

Posted 30 April 2010 - 02:14 PM

Just needs to open a chest combo (with either sword or push up whatever is simpler) create enemy at the spot
(only up from it maybe half a tile so its not right on top of you all of sudden..) and play a sound.

Certain chests in Links awakening had zols in them.. if its not worth the bother I can live with out it.

#2 Daemon

Daemon

    Apprentice

  • Members
  • Real Name:Sabbastian
  • Location:United States

Posted 30 April 2010 - 02:52 PM

CODE
ffc script chestenemy{
    void run(int eid){
        while(true){
            if(Link->X < this->X+8 && Link->X > this->X-8 && Link->Y == this->Y+8 && Link->InputUp){
                this->Data ++;
                npc e = Screen->CreateNPC(eid);
                e->X = this->X;
                e->Y = this->Y-8;
                Quit();
            }
        Waitframe();
        }
    }
}


Set the FFC's combo to a chest, then have the tile next to it be an open chest. The FFC's D0 argument is the ID of the enemy you want it to spawn.

#3 caprontos

caprontos

    Recipient of Ways

  • Members

Posted 30 April 2010 - 06:31 PM

QUOTE(Daemon @ Apr 30 2010, 03:52 PM) View Post

CODE
ffc script chestenemy{
    void run(int eid){
        while(true){
            if(Link->X < this->X+8 && Link->X > this->X-8 && Link->Y == this->Y+8 && Link->InputUp){
                this->Data ++;
                npc e = Screen->CreateNPC(eid);
                e->X = this->X;
                e->Y = this->Y-8;
                Quit();
            }
        Waitframe();
        }
    }
}


Set the FFC's combo to a chest, then have the tile next to it be an open chest. The FFC's D0 argument is the ID of the enemy you want it to spawn.


thanks a lot!


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users