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.
enemy in a chest..
Started by
caprontos
, Apr 30 2010 02:14 PM
2 replies to this topic
#1
Posted 30 April 2010 - 02:14 PM
#2
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();
}
}
}
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
Posted 30 April 2010 - 06:31 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();
}
}
}
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!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users