How would I make all health poultices use the same cooldown timer?
I messed around with the condition groups to no avail.
Sharing cooldown timers?
Débuté par
Pellegrin
, nov. 18 2009 05:45
#1
Posté 18 novembre 2009 - 05:45
#2
Posté 18 novembre 2009 - 04:36
I too have been looking into this but to no avail so far. Here's a friendly bump, maybe someone has an idea
#3
Posté 18 novembre 2009 - 05:06
You would probably have to do some scripting. Catch the event when one is used and somehow start the cooldown on the other (I have no idea if this is actually possible, btw)
#4
Posté 18 novembre 2009 - 05:38
I've seen the bioware scripts use a command to set the cooldown on abilities/items, so all you'd have to do is catch the event (I *think* it's EVENT_TYPE_ABILITY_CAST_IMPACT - if I remember correctly, there's code in ability_core.nss to remove an item from your inventory during that event if the abilty in question is from an item) and trigger all the potion cooldowns.
#5
Posté 19 novembre 2009 - 05:43
There's a function called Ability_SetCooldown (object oCaster, int nAbility, object oItem = OBJECT_INVALID, float fCooldown = 0.0f)
I figure oCaster = stEvent.oCaster and nAbility = ABILITY_ITEM_HEALTH_POULTICE (and so on).
But what for oItem and fCooldown? Default is a no go.
I figure oCaster = stEvent.oCaster and nAbility = ABILITY_ITEM_HEALTH_POULTICE (and so on).
But what for oItem and fCooldown? Default is a no go.





Retour en haut






