Jump to content

Need help with adding a notification message to a script


morogoth35

Recommended Posts

Hi guys, I have made a spell that silences enemies and have gotten help from Darkfox127 with the scripting. The script works like I want it to but there is one thing that I want to add to it, and that is a notification that shows up when the player tries casting the spell while it's on cooldown.



Here is the script that Darkfox127 made:



http://pastebin.com/bdQLDp4w



Here's the link to my mod:



http://www.nexusmods...im/mods/78375/?



So here's how the mod works right now:



When the player casts the spell on an enemy the enemy gets silenced and cannot cast spells. At the same time you cast the spell the spell goes on cooldown for 120 seconds. During the cooldown you can't cast the spell again, but you can still try and cast it and when you do you get the vanilla message saying "You don't have enough magicka to cast the spell".



I want to have a notification show up when the player tries to cast the spell when it's on cooldown that says "Arcane Disruption is on cooldown." Or "Arcane Disruption is on cooldown for "X" seconds."



Can anyone here maybe add this to the script that Darkfox127 made for me?



Thanks!


Link to comment
Share on other sites

  • Recently Browsing   0 members

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