Jump to content

Script help needed


Goldenhaze80

Recommended Posts

Posted this in the wrong forum before and recieved (understandably) no response but here's the script

 

ScriptName magmasummon
ref caster
ref summoned
begin scripteffectstart
set caster to getself
playMagicShaderVisuals effectSummonMythicDawn 2
         playsound AMBThunder
set summoned to caster.placeatme AAASummonMagmaGolem(01001201), 1, 32, 1
summoned.moddisposition caster 100
summoned.pme 
end

begin scripteffectupdate
if summoned.getdead == 1
summoned.removeme
endif
end

begin scripteffectfinish
if summoned.isactor == 1
summoned.removeme
endif
end

 

Its telling me that there's a missing parameter on line 10 "magic-effect"? What does that mean? Did I miss something?

 

I'm relatively new at this so any help is vastly appreciated!

Link to comment
Share on other sites

Line 10 would be the 10th line down. "summoned.pme" doesn't make sense to the games scripting language.

 

Edit: Notepad++ is very useful for all kinds of scripting.

Edited by MShoap13
Link to comment
Share on other sites

Line 10 would be the 10th line down. "summoned.pme" doesn't make sense to the games scripting language.

 

Edit: Notepad++ is very useful for all kinds of scripting.

thinking my script isn't going to work... anyone have a link to a script that would work? I'm simply trying to summon a custom atronach as a spell for an npc I am making...

Link to comment
Share on other sites

This is not my work, it is an example script I'm posting for you from the mod Recastable Summons.

 

scn KBSummonZombieScriptEffect

ref creature

begin ScriptEffectStart
Set KBSummons.Duration To 90.0
Set creature To PlaceAtMe KBSummonedZombie 1, 256, 0
end ScriptEffectStart

begin ScriptEffectUpdate
if ( creature.GetDead )
	Dispel KBSummonZombie
endif
end ScriptEffectUpdate

Link to comment
Share on other sites

This is not my work, it is an example script I'm posting for you from the mod Recastable Summons.

 

scn KBSummonZombieScriptEffect

ref creature

begin ScriptEffectStart
Set KBSummons.Duration To 90.0
Set creature To PlaceAtMe KBSummonedZombie 1, 256, 0
end ScriptEffectStart

begin ScriptEffectUpdate
if ( creature.GetDead )
	Dispel KBSummonZombie
endif
end ScriptEffectUpdate

will this work without the mod itself? and its a spell script instead of a spell effect script?

I'd be happy to credit the author... Will look up the mod!

Edited by Goldenhaze80
Link to comment
Share on other sites

You also need to add an entry to a plugin with a spell you've made that lists that script effect as it's magic effect. I think that's it though.
Link to comment
Share on other sites

You also need to add an entry to a plugin with a spell you've made that lists that script effect as it's magic effect. I think that's it though.

getting an error... says that "duration" is not a valid command?

here's my new script:

 

ScriptName AAAmagmasummon


ref caster
ref summoned

begin scripteffectstart
set caster to getself
playMagicShaderVisuals effectSummonMythicDawn 2
playsound AMBThunder
set summoned to caster.placeatme AAASummonMagmaGolem(01000D16) 1, 250, 1
summoned.moddisposition caster 100
summoned.pme zdre 
end

begin scripteffectupdate
if summoned.getdead == 1
summoned.removeme
endif
end

begin scripteffectfinish
if summoned.isactor == 1
summoned.removeme
endif
end

Edited by Goldenhaze80
Link to comment
Share on other sites

RemoveMe is a command used for items. It removes the scripted object from the container/inventory that it's in. You should be using Disable, or better yet, both Disable and DeleteReference.

Ty I fixed it.... do you have any idea what it means about a missing parameter in line 11?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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