Jump to content

DamageTakenGT()


WizWom

Recommended Posts

I put in a test block:

IF
DamageTakenGT(1)
THEN
RESPONSE #100
	  DisplayStringHead(Myself,111)
END

 

My character has 29 base, but 35 after con bonus HP

 

Imagine my surprise when the first few hit points of damage did not display this: in fact, it did not display until I was below my BASE HP.

 

Very odd.

Link to comment

I wanted to use healing potions when I had taken more than twice the amount they heal in damage: i.e., when I had taken 18, use a standard healing potion.

 

So I wrote

IF
DamageTakenGT(18)
HasItem("_POTN18",Myself)
THEN
 RESPONSE #100
	  UseItem("_POTN18",Myself)
END

So, I wondered why my code wasn't using the Healing Potion and did the above test.

 

Instead I used the HPPercentLT in the end.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...