Removing combat shouts when casting spells

Post » Mon Apr 15, 2013 3:14 am

Hi, I have a simple script intended to make an NPC cast a healing spell on the player when the player drops below half health. It works fine, but the only annoying thing is that the NPC occasionally yells out the startcombat voiceovers--"die fetcher!", that sort of thing, when casting the restoration spell. The npc doesn't actually enter combat or anything. Is there some way around this?

Here's the script, at any rate.
;every 5 secondsset timer2 to timer2 + GetSecondsPassedif ( timer2 > 5 )    set timer2 to 0    if ( player->GetHealthGetRatio < .5 )        if ( telvi_follow == 10)            set cur_magicka to GetMagicka            if ( cur_magicka > 10 )                Cast "lack_telvi heal" Player                ModCurrentMagicka -10            endif        endif    endif    if ( GetHealthGetRatio < .5 )        set cur_magicka to GetMagicka        if ( cur_magicka > 10 )            Cast "lack_telvi selfheal" LACK_Telvi            ModCurrentMagicka -10        endif    endifendif
User avatar
Rebecca Clare Smith
 
Posts: 3508
Joined: Fri Aug 04, 2006 4:13 pm

Return to III - Morrowind