Contracting diseases

Post » Sat Feb 19, 2011 11:23 am

I would like to have the player character contract a disease under certain conditions and show the I have contracted message. However, player.AddSpellNS doesn't show the message, but instead shows the penalties you receive. Is there any way to show the message without the penalties? Thanks.
User avatar
BrEezy Baby
 
Posts: 3478
Joined: Sun Mar 11, 2007 4:22 am

Post » Sat Feb 19, 2011 2:28 am

The "NS" variant suppresses the message, so just use AddSpell.
User avatar
Robyn Howlett
 
Posts: 3332
Joined: Wed Aug 23, 2006 9:01 pm

Post » Sat Feb 19, 2011 1:19 am

I tried that but AddSpell just gives the added. message, rather than the default contracted message. It also still shows the penalties.
User avatar
Scarlet Devil
 
Posts: 3410
Joined: Wed Aug 16, 2006 6:31 pm

Post » Sat Feb 19, 2011 7:26 am

I tried that but AddSpell just gives the added. message, rather than the default contracted message. It also still shows the penalties.


Try this:

Message "You have contracted ."Message "  "Player.AddSpell 


That should give you the message you want without the unwanted one.
User avatar
NAtIVe GOddess
 
Posts: 3348
Joined: Tue Aug 15, 2006 6:46 am

Post » Sat Feb 19, 2011 11:58 am

The message itself isn't too much of an issue. I would probably just read the sContractedDisease game setting, but the main problem is the penalty messages like Your agility is being drained. Normally you don't get those messages when contracting a disease.
User avatar
Chad Holloway
 
Posts: 3388
Joined: Wed Nov 21, 2007 5:21 am


Return to IV - Oblivion