scrivener07 Posted August 11, 2011 Share Posted August 11, 2011 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 More sharing options...
drakeelvin Posted August 11, 2011 Share Posted August 11, 2011 There is a 3rd paremater to the AddItem command, its hiddenflag, just add a 1 and it will hide the message when item is added. Link to comment Share on other sites More sharing options...
scrivener07 Posted August 11, 2011 Author Share Posted August 11, 2011 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 More sharing options...
Gribbleshnibit8 Posted August 11, 2011 Share Posted August 11, 2011 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 EndifI 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 More sharing options...
drakeelvin Posted August 11, 2011 Share Posted August 11, 2011 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 More sharing options...
scrivener07 Posted August 11, 2011 Author Share Posted August 11, 2011 RAWR!!! Drakeelvin wins! kudos for everyone thanks for taking the time. 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. So true Link to comment Share on other sites More sharing options...
Recommended Posts