Not sure if there's a fancy way to do it in SomEx, but here's one way:
Trigger: Always On : Start Condition have Item Quantity < 1 "chalice"
Page1:Change Player Parameter : HP Decrease by 2
Begin Screen Effect: Flash Red (optonal)
Begin Timer0
Change Active Page, this event: Forward one page
Page2: Set Timer0 Value in Counter "Measure Time"
IF "Measure Time" > 2 (change to set how fast health will decrease)
Change Active Page: This Event: Back one page
EndIf
You can also make the damage random by changing Page1 to:
Page1: Set Player Parameter in Counter: "HP Measuer"
Generate Random Value In Counter: "Randomizer" < 5 (change this to set damage range)
Change Counter's Value:"HP Measure" decrease by "Randomizer"
Change Player Parameter : HP , Set to Counter "HP Measure"
Begin Screen Effect: Flash Red (optonal)
Begin Timer0
Change Active Page, this event: Forward one page
Trigger: Always On : Start Condition have Item Quantity < 1 "chalice"
Page1:Change Player Parameter : HP Decrease by 2
Begin Screen Effect: Flash Red (optonal)
Begin Timer0
Change Active Page, this event: Forward one page
Page2: Set Timer0 Value in Counter "Measure Time"
IF "Measure Time" > 2 (change to set how fast health will decrease)
Change Active Page: This Event: Back one page
EndIf
You can also make the damage random by changing Page1 to:
Page1: Set Player Parameter in Counter: "HP Measuer"
Generate Random Value In Counter: "Randomizer" < 5 (change this to set damage range)
Change Counter's Value:"HP Measure" decrease by "Randomizer"
Change Player Parameter : HP , Set to Counter "HP Measure"
Begin Screen Effect: Flash Red (optonal)
Begin Timer0
Change Active Page, this event: Forward one page