Jump to content

A script that does not save


E.L. Palmer

Recommended Posts

I have been studying the scripts from the mods in my game. I will some time tweak the scripts to see what happens ingame. When I close it I get "line 11: Script  command "modav2" not found." Yet the line is present.

scn aaaTelekineConsumingEffectScript

ref self
ref caster

begin scripteffectstart
set self to getself
set caster to aaatelekinequest.caster

if(getdistance caster> 2048)
    modav2 health -1             <----------------- line 11
    modav2 fatigue -2
    modav2 magicka -2
    caster.modav2 health 1
    caster.modav2 fatigue 2
    caster.modav2 magicka 2

    if ( getrandompercent  > 100)
        caster.pushactoraway self -20        
    endif

elseif(getdistance caster> 1024)
    modav2 health -2
    modav2 fatigue -4
    modav2 magicka -4
    caster.modav2 health 2
    caster.modav2 fatigue 4
    caster.modav2 magicka 4

    if ( getrandompercent  > 90)
        caster.pushactoraway self -20        
    endif

elseif(getdistance caster> 512)
    modav2 health -4
    modav2 fatigue -8
    modav2 magicka -8
    caster.modav2 health 4
    caster.modav2 fatigue 8
    caster.modav2 magicka 8

    if (  getrandompercent > 80)
        caster.pushactoraway self -20        
    endif


elseif(getdistance caster> 256)
    modav2 health -8
    modav2 fatigue -16
    modav2 magicka -16
    caster.modav2 health 8
    caster.modav2 fatigue 16
    caster.modav2 magicka 16

    if ( getrandompercent > 70)
        caster.pushactoraway self -20        
    endif


elseif(getdistance caster> 128)
    modav2 health -16
    modav2 fatigue -32
    modav2 magicka -32
    caster.modav2 health 16
    caster.modav2 fatigue 32
    caster.modav2 magicka 32

    if ( getrandompercent > 60)
        caster.pushactoraway self -20        
    endif


elseif(getdistance caster> 64)
    modav2 health -32
    modav2 fatigue -64
    modav2 magicka -64
    caster.modav2 health 32
    caster.modav2 fatigue 64
    caster.modav2 magicka 64

    if ( getrandompercent > 50)
        caster.pushactoraway self -20        
    endif

endif

end

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use