Thread: Prevent hurting
View Single Post
  #25  
Old 08-30-2001, 02:50 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

Well why didn't you say so in the first place!

Anyway, try this...

if (playerenters){
toweapons -blahblah;
setstring armorpower,5;
destroy;
}
if (isweapon){
if (playerhurt){
playerhearts+=.5;
if (strtofloat(#s(armorpower))<Whatever it is you're using as the enemy power here){
playerhearts-=I'll let you do the math here ;
}
}
}

You'll hafta do what's in blue though, since I have no clue what you're using for your enemy strength, and the ratio you want of armor:enemy strength damage o.0
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote