Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Half Damage when hit? (https://forums.graalonline.com/forums/showthread.php?t=24357)

Aknts 02-23-2002 05:21 AM

Half Damage when hit?
 
if (washit) {
playerhearts+=playerhurtdpower/2;
}

Why doesn't that work?
I can't think of any way to put it other then that.

TDO2000 02-23-2002 05:28 AM

Re: Half Damage when hit?
 
Quote:

Originally posted by Aknts
if (washit) {
playerhearts+=playerhurtdpower/2;
}

Why doesn't that work?
I can't think of any way to put it other then that.

um playerswordpower (Misunderstood your question first)

TDK_RC6 02-23-2002 05:56 AM

well, that will only deal the apropriate damage, i dont think you can take away .25 of a heart, you would have to keep a hit count in a string, and when it reaches 2 hits, then take away 1/2 heart


All times are GMT +2. The time now is 02:03 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.