Jump to content

Message Spam


scrivener07

Recommended Posts

My mod adds items when a doctors bag is used. This script works fine but if a few are used at once I am spammed with the item added message for each added item and it can last a while. Is there a way I can cut this down to just one message letting me know items where added to inventory even if 10 doctors bags are used. This would equal 20 messages right now.

 

begin ScriptEffectStart
additem SurgicalScalpel01 1
additem SurgicalForceps01 1
end

Link to comment
Share on other sites

Yes thank you so much just what I was looking for. I did want some kind of message though. I tried attaching a message in the script but this is a message box and I have to press ok to confirm it. Is there a way to make this appear as just a regular item message and make it appear only once even if I use 10 doctors bags at once?

begin ScriptEffectStart
additem SurgicalScalpel01 1 1
additem SurgicalForceps01 1 1
ShowMessage RRxMsgDocBag
end

Link to comment
Share on other sites

You could try adding a condition around the message line. If the effect of the doctor's bag lasts longer than a frame or two, it should work.

 

Try adding:

If player.isSpellTarget DoctorBag != 1
showMessage RRxMsgDocBag
Endif

I think that's correct. I'm really tired. Replace the names with whatever you need to make sure it's correct. If that doesn't work, then the next step would be to take the message system out into a quest, which would be awful complex for something so mundane.

Link to comment
Share on other sites

In the message properties there is a checkbox to make a message appear as a box or as a regular message. Just toggle the checkmark on that box to switch between box mode (click OK) or a message that appears in the top left corner like additem messages normally do.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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