Jump to content

script in effects


senterpat

Recommended Posts

Hello again, I wrote this script, but I cant seem to be able to find it in the effect list when making a new actor effect, I looked at the vanilla game handled similar things, and they just have the effect script in the effect list. if anyone knows, please tell me.

 

Also I'm not sure but im afraid the script will run more than once, continually decreasing the skills. If you know if thats the case or know a way to accomplish thiis better, id appreciate the knowledge.

 

 

type:effect

scn myscript

 

begin scripteffectstart

 

if player.hasperk myperk

player.modav science -10

 

player.modav repair -10

 

player.modav energyweapons -10

 

player.modav guns -10

 

player.modav meleeweapons -10

 

player.modav lockpick -10

 

player.modav medicine -10

 

endif

 

end

 

 

thanks.

Edited by senterpat
Link to comment
Share on other sites

Now can anyone tell me why this script wont work in game? I've tried it with advskill as well and it didnt work either.

 

 

scn myscript

 

begin scripteffectstart

 

if player.hasperk myperk

 

getisuseditem magazinenvbarter

player.modav barter 1

 

getisuseditem magazinenvenergyweapons

player.modav energyweapons 1

 

getisuseditem magazinenvexplosives

player.modav explosives 1

 

getisuseditem magazinenvguns

player.modav guns 1

 

getisuseditem magazinenvlockpick

player.modav lockpick 1

 

getisuseditem magazinenvmedicine

player.modav medicine 1

 

getisuseditem magazinenvmeleeweapons

player.modav meleeweapons 1

 

getisuseditem magazinenvscience

player.modav science 1

 

getisuseditem magazinenvsneak

player.modav sneak 1

 

getisuseditem magazinenvspeech

player.modav speech 1

 

getisuseditem magazinenvsurvival

player.modav survival 1

 

getisuseditem magazinenvunarmed

player.modav unarmed 1

 

endif

 

end

 

 

 

sorry im asking so many questioins, just starting learning how to use the geck and the tutorials are lacking in some aspects.

Link to comment
Share on other sites

Now can anyone tell me why this script wont work in game? I've tried it with advskill as well and it didnt work either.

 

 

scn myscript

 

begin scripteffectstart

 

if player.hasperk myperk

 

getisuseditem magazinenvbarter

player.modav barter 1

 

getisuseditem magazinenvenergyweapons

player.modav energyweapons 1

 

getisuseditem magazinenvexplosives

player.modav explosives 1

 

getisuseditem magazinenvguns

player.modav guns 1

 

getisuseditem magazinenvlockpick

player.modav lockpick 1

 

getisuseditem magazinenvmedicine

player.modav medicine 1

 

getisuseditem magazinenvmeleeweapons

player.modav meleeweapons 1

 

getisuseditem magazinenvscience

player.modav science 1

 

getisuseditem magazinenvsneak

player.modav sneak 1

 

getisuseditem magazinenvspeech

player.modav speech 1

 

getisuseditem magazinenvsurvival

player.modav survival 1

 

getisuseditem magazinenvunarmed

player.modav unarmed 1

 

endif

 

end

 

 

 

sorry im asking so many questioins, just starting learning how to use the geck and the tutorials are lacking in some aspects.

 

would be more eficiet mod the magazines and add +1 effect with the condion hasperk

Link to comment
Share on other sites

Doh. Your that is about 200 times easier than the way I was doing it. Thank you very much, kudos to you.

 

Though if anyone can tell my why that script wasnt working in game, I'd appreciate you extending my knowledge.

 

EDIT: I think I found out why it wasnt working, in the script I had "if player.hasperk myperk" but for some reason the game saved "myperk" as "myperkDUPLICATE000" . I'm not exactly sure but i think it saves it like that when I have another item with the same name somewhere. I need to work on how I name things I suppose.

Edited by senterpat
Link to comment
Share on other sites

 

would be more eficiet mod the magazines and add +1 effect with the condion hasperk

 

 

I added this, but it seems like the magazine arent capable of giving a permananent value bonus. What I put the effect box was:

 

Effect: IncreaseSkillBarter

Duration: 0

Magnitude :1

 

And the condition:

 

Hasperk perk 'myperk', == 1.0

run on subject

I dont have any other boxes checked

 

Can anyone help with this?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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