View Single Post
  #10  
Old 02-24-2006, 06:30 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by ApothiX
What's up with the double-semicolon?
>> temp.case_two = tilesSwitch(temp.case_x,temp.case_y,7/8,7/8);;
Ooops, something I got out of there eventually. (that's a really old version of the script because I couldn't get on RC from where I was posting :P)

Add: the one I'm using now just uses the onTiles function I made because I am finally able to detect NPCs correctly for Stefan adding an npc.var for whether or not the NPC is blocking. Now I just need to wait for Stefan to add read access to players[i].paused, players[i].rating, and players[i].ratingd, and then reimplement the AP system somehow... though reimplementing the AP system is going to be hard. Gotta look for NPCs that don't use the heal() function, gotta make exceptions for spar and event levels, and I gotta add a earnedhp variable so the maxhp variable can override it (which will be a fun challenge).

hp = how many hearts
maxhp = how many hearts you can have currently.
earnedhp = how many hearts you have by default

maxhp can go under earnedhp depending on AP, but I don't want to cap it because perhaps there would be some event in which you want to give a player 20 hearts.

But yea, that's the easiest way to manipulate to include the AP system based on how everything's already built for Classic.

I don't know how I got on this tangent.

Last edited by jake13jake; 02-24-2006 at 09:33 PM..
Reply With Quote