Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#956631 23/03/25 09:34 PM
Joined: Sep 2024
O
Orchid Offline OP
stranger
OP Offline
stranger
O
Joined: Sep 2024
Hello there,
I am new to osiris scripting. Is there any way to stock/store an integer in a rule to reuse in another rule (in the same goal) ?
Or is there any call to change Max Hit Point in Osiris (I know of the IncreaseMaxHp in game)?

For example I want to store in memory the Current hit point of a character after applying damage :

Code
IF
StatusApplied((CHARACTER)_Target, "HARM", _,_)
AND
GetMaxHitpoints(_Target, _MaxHP)
AND
GetHitpoints(_Target, _CurrentHP)
AND
Random(71, _HarmDice)
AND
IntegerSum(_HarmDice,13,_HarmDamage)
AND
_CurrentHP > _HarmDamage
AND
IntegerSubtract(_CurrentHP, _HarmDamage, _CurrentHPToHarm)
AND
IntegerSubtract(_MaxHP,_HarmDamage,_NewMaxHP)
AND
GetHitpointsPercentage(_Target, _CurrentHPPercentageReal)
THEN
ApplyDamage(_Target,_HarmDamage,"Necrotic",_Target)

Thanks!

Joined: Oct 2024
A
stranger
Offline
stranger
A
Joined: Oct 2024
Go to the discord, you gonna have more luck there for anything related to making a mod.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5