View Single Post
  #3  
Old 03-27-2001, 12:16 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
*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;
}

__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233

Last edited by Tyhm; 03-27-2001 at 12:29 PM..
Reply With Quote