View Single Post
  #9  
Old 04-10-2006, 09:14 PM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Quote:
Originally Posted by colin012
Kind of. but you can't fight befor you say start and it doesn't add to your deaths.

And whats the npc code for a healing thing?
Depends on the system. Classic worlds use playerhearts (I think).

example:

NPC Code:
if (playertouchsme)
playerhearts++;



When the player touches the NPC, their hearts increase by one (++).

NPC Code:
playerhearts+=1;
playerhearts=playerhearts+1;



These would also do the same.

In a lot of systems, though, it uses custom HP that use client/clientr strings.

Example:

NPC Code:
if (playertouchsme)
setstring clientr.hp,strtofloat(#v(clientr.hp))+1;



At least I think that's what it is. Haven't done GS1 in a while.
Reply With Quote