Jump to content

Trying to make a Greater Power with a 12 hour cooldown.


Recommended Posts

Also reading global variables GameHour and GameDay (to check time going trough midnight) should do the job too. However, you propably need to use OBSE function SetCanCastPower as in vanilla you can cast a Greater Power only once per 24 hours. If your spell being a Greater Power isn't a neccessity, Lesser Power isn't restricted to this 24h limit.

Edited by RomanR
Link to comment
Share on other sites

Thanks for both your suggestions but I found just the exact thing I was looking for. It was SetPowerTimer. I put it in ScriptEffectStart portion of the script like so.

user.SetPowerTimer RechargeSpell1 1200

The timescale in the vanilla game goes from 0 to 3600 with 3600 equaling 24 hours so that 1200 equals 8 hours, Making it so that spell can be cast three times a day.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...