Jump to content

[LE] Any way to convert spell to magic effect?


Recommended Posts

 

Ah, that sounds complicated but I try. I already tried with applying J'Zargo Cloak Spell to the potion, but the results were not what I expected. I could place in anyone pocket, but they were no explosion and only damaging other nearby NPCs and me.

 

Still would be nice to have some kind of instant kill explosion potion even without a delay.

 

Also, are these scripts hard to make or not?

 

This particular one should not be difficult, no.

scriptname tothExplosionEffect extends ActiveMagicEffect

Spell Property ExplosionSpell Auto
float Property fDelayTime = 3.0 Auto

Actor target
Actor caster

Event OnEffectStart(Actor akTarget, Actor akCaster)
    RegisterForSingleUpdate(fDelayTime)
    target = akTarget
    caster = akCaster
EndEvent

Event OnUpdate()
    ExplosionSpell.Cast(caster, target)
EndEvent

Another possibility would be to set it to fire when the effect *ends*, which would let you use the standard potion durations (eg. how poisons work) to act as your timer. That one would be just this:

scriptname tothExplosionEffect extends ActiveMagicEffect

Spell Property ExplosionSpell Auto

Event OnEffectFinish(Actor akTarget, Actor akCaster)
    ExplosionSpell.Cast(caster, target)
EndEvent

I have a problem, applying the magic effect to the potion. I made magic effect with the first script, and saved it. I tried selecting it for a new potion (marked as poison), but on the dropdown list it doesn't appear. How should I make it appear?

 

EDIT: Ignore this, I set it to Fire and Forget and it works now.

Edited by tothmark0529
Link to comment
Share on other sites

However, I have a problem. I made a magic effect with first script foamyesque mentioned, applied it to the potion (marked as posion), gave some to myself, got poisoner perk, and placed it in the victim's pocket, however there is no explosion or even any damage. The victim just grunts, then everything is back to the same. Their health didn't even go down.

How do I fix this? I can post an esp if it helps.

Link to comment
Share on other sites

Sorry for making a separate comment for this, but I did the following:

Adding two properties:
- One named "ExplosionEffect"
- Another named "DelayTime"

I used what foamyesque (thank you again!) recommended, and I put it in this format for the first:

Type: SPELL

Name: ExplosiveSpell

Initial value: Auto



This didn't work. The compile failed, here is the error:

Starting 1 compile threads for 1 files...
Compiling "cenExplosiveEffect"...
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,32): no viable alternative at input 'Spell'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,38): required (...)+ loop did not match anything at input 'Property'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,6): Unknown user flag Spell
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,67): mismatched input 'Auto' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,73): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,32): no viable alternative at input 'SPELL'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,38): required (...)+ loop did not match anything at input 'property'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,6): Unknown user flag SPELL
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script variable ::ExplosionSpell_var already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already has a get function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already has a set function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,67): mismatched input 'Auto' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,73): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,32): no viable alternative at input 'ExplosionSpell'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script property ExplosionSpell already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script variable ::ExplosionSpell_var already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script property ExplosionSpell already has a get function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script property ExplosionSpell already has a set function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,58): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(9,76): required (...)+ loop did not match anything at input 'Auto'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(9,82): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(11,60): mismatched input 'Auto' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(11,66): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,32): no viable alternative at input 'AUTO'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,37): required (...)+ loop did not match anything at input 'Auto'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script property ExplosionSpell already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script variable ::ExplosionSpell_var already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script property ExplosionSpell already has a get function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script property ExplosionSpell already has a set function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,43): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(15,32): no viable alternative at input 'AUTO'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(15,37): required (...)+ loop did not match anything at input 'Auto'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(15,43): mismatched input '\\r\\n' expecting STATE
No output generated for cenExplosiveEffect, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on cenExplosiveEffect



I tried doing the "DelayTime" property:

Type: Float

Name: DelayTime

Initial Value: fDelayTime = 3.0 Auto



That also failed. Here is another error:

Starting 1 compile threads for 1 files...
Compiling "cenExplosiveEffect"...
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,32): no viable alternative at input 'Spell'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,38): required (...)+ loop did not match anything at input 'Property'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,6): Unknown user flag Spell
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,67): mismatched input 'Auto' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,73): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,32): no viable alternative at input 'SPELL'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,38): required (...)+ loop did not match anything at input 'property'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,6): Unknown user flag SPELL
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script variable ::ExplosionSpell_var already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already has a get function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already has a set function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,67): mismatched input 'Auto' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,73): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,32): no viable alternative at input 'ExplosionSpell'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script property ExplosionSpell already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script variable ::ExplosionSpell_var already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script property ExplosionSpell already has a get function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script property ExplosionSpell already has a set function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,58): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(9,76): required (...)+ loop did not match anything at input 'Auto'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(9,82): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(11,60): mismatched input 'Auto' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(11,66): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,32): no viable alternative at input 'AUTO'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,37): required (...)+ loop did not match anything at input 'Auto'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script property ExplosionSpell already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script variable ::ExplosionSpell_var already defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script property ExplosionSpell already has a get function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script property ExplosionSpell already has a set function defined
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,43): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(15,32): no viable alternative at input 'AUTO'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(15,37): required (...)+ loop did not match anything at input 'Auto'
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(15,43): mismatched input '\\r\\n' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(17,49): mismatched input 'Auto' expecting STATE
D:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(17,55): mismatched input '\\r\\n' expecting STATE
No output generated for cenExplosiveEffect, compilation failed.

Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on cenExplosiveEffect



Any help or advice is appreciated!

Edited by tothmark0529
Link to comment
Share on other sites

Can you post the full and complete scripts you were trying to compile? Those errors being thrown suggest there is more code you're using than I provided: there's errors that say you're using states, errors that say your code is much longer, errors that say you're defining the property's get and set functions, etc.

Link to comment
Share on other sites

Alright, I try that, How would I do that? Post the .esp here or is there any other way? I try to post some screenshots, if that's enough:

The magic effect screen (The ExplosionPotion script name is renamed to ExplosionForPotion now.): https://imgur.com/k0VyVGA

Starting script source: https://imgur.com/CbIXUru

Modified script source: https://imgur.com/RVp57t5

ExplosionSpell Property: https://imgur.com/Y6JUAoM

ExplosionSpell Property Error (Starting script source): https://imgur.com/fUuTdRC

DelayTime Property: https://imgur.com/iYRh5Hi

DelayTime Property Error (Starting script source): https://imgur.com/4gbZTfS
https://imgur.com/CbIXUruhttps://imgur.com/CbIXUruhttps://imgur.com/CbIXUruhttps://imgur.com/CbIXUruhttps://imgur.com/CbIXUru

Link to comment
Share on other sites

You don't have to try if you don't want to, just know this, every single modder out there at one point was in the same exact position you are right now, and then they decided to do the next step, and the next, and the next...

Link to comment
Share on other sites

  • Recently Browsing   0 members

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