*shrugs*
Fine with me. Here's the code so far:
NPC Code:
if(!strequals(#3(0),head35.gif)&&playerisfemale) setplayerprop #3,head35.gif;
if(!strequals(#3(0),head992.gif)&&playerismale) setplayerprop #3,head992.gif;
if(playerswimming){//or whatever
this.testx=playerx;
this.testy=playery;
if(keydown(0)) this.testy--;
if(keydown(1)) this.testx--;
if(keydown(2)) this.testy++;
if(keydown(3)) this.testx++;
this.wall=0;
for(this.tx=this.testx;this.tx<this.testx+2;this.t x+=0.25){
for(this.ty=this.testy;this.ty<this.testy+2;this.t y+=0.25){
if(onwall(this.tx,this.ty)&&board[this.tx+this.ty*64]<102*1024+12) this.wall=1; //I don't know the tile values
// precisely....sufficed to say, we just tweak this until it detects the dark blue tiles, and if that's the onwall, ignore
// it.
}
}
if(this.wall<1){
playerx=this.tx;
playery=this.ty;
}
}
//optional code: if you really can't set negative glove strength, this will make them throw anything which is at their
// glove strength...at level 2 you can lift a green stone, but it hurts and you immediately throw it, and you can
// carry vases/signs easily...at level 3 you can lift a blackstone and carry greenstones...etc.
if(carrying){
if(playerglovepower<1||(playerglovepower<2&& (carryingstone||carryingblackstone))||carryingblac kstone) hurt 1;
}