14-06-2007, 04:50 PM
For your kill tile, make an editor, much like the warp or item tile. In this editor, have a scroll bar, scrlDamage, and use that scroll bar to set how much damage it does. Assign the amount of damage to the Tiles Data1.
Call SetPlayerHP(Index, GetPlayerHP(Index) - Map.Tile(getplayerx(index), getplayery(index)).data1)
Something like that will work. That's not exact code though
Also, you might want to go into sub that regenerates the players HP, and add a check so that their hp doesn't regenerate (or maybe even continues to go down) if they are standing on this tile
Call SetPlayerHP(Index, GetPlayerHP(Index) - Map.Tile(getplayerx(index), getplayery(index)).data1)
Something like that will work. That's not exact code though
Also, you might want to go into sub that regenerates the players HP, and add a check so that their hp doesn't regenerate (or maybe even continues to go down) if they are standing on this tile