In reply to: Hmmm... -- Xorlak 15:15:29 09-21-2004
Thanks, more... Posted by: William 13:05:30 09-24-2004 |
Thanks a lot for this:
#for(slot!=0;slot!<4;slot!=slot!+1)
{
#createitem("goblin.itm",slot!)
}
#for(slot!=0;slot!<4;slot!=slot!+1)
{
#createitem("goblin.itm",slot!)
#random(19,itemX[slot!]!) *Assuming a 19 X 15 board
#random(15,itemY[slot!]!)
#putitem(slot!, itemX[slot!]!, itemY[slot!]!, 1)
}
But shouldn't the for loop look like this:
#for(slot!=0;slot!<5;slot!=slot!+1)
Here I have 4 enemies so it need to check under 5... SI that correct? Do you have any other suggestions for my battle?
Like the enemy will fly back one step if you hit them, would that be a good idea?
Any other ideas?
Thanks... =)