View Single Post
  #1  
Old 05-17-2009, 02:59 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
player.isinvincible

First off:
PHP Code:
InvinciblePlayer(seconds); // Makes the player invincible for a set amount of time
InvinciblePlayer2(); // Makes the player invincible until it uses...
UnInvinciblePlayer(); 
These will work completely separately from ispaused and gold AP.

player.isinvincible will return -1 for not invincible, and >0 for if they are(and 0 if they are indefinitely).

This will do exactly what paused and 100ap does -- player doesn't block and swords do nothing. I've thought of many, many times where I would like to make the player invincible, but without forcing them to pause/giving them 100 AP and such. I don't imagine it'd be too hard to add, just another check, no?
Reply With Quote