Aller au contenu

Photo

Sharing cooldown timers?


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
Pellegrin

Pellegrin
  • Members
  • 80 messages
How would I make all health poultices use the same cooldown timer?

I messed around with the condition groups to no avail.

#2
Joshua Raven

Joshua Raven
  • Members
  • 182 messages
I too have been looking into this but to no avail so far. Here's a friendly bump, maybe someone has an idea :)

#3
eiham

eiham
  • Members
  • 38 messages
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
dan_upright

dan_upright
  • Members
  • 39 messages
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
Pellegrin

Pellegrin
  • Members
  • 80 messages
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.