AureliusOfRome Posted August 6, 2019 Author Share Posted August 6, 2019 Thank you! I make sure to try these too. Link to comment Share on other sites More sharing options...
AureliusOfRome Posted August 6, 2019 Author Share Posted August 6, 2019 (edited) 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 August 6, 2019 by tothmark0529 Link to comment Share on other sites More sharing options...
AureliusOfRome Posted August 6, 2019 Author Share Posted August 6, 2019 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 More sharing options...
AureliusOfRome Posted August 7, 2019 Author Share Posted August 7, 2019 (edited) 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: SPELLName: ExplosiveSpellInitial value: AutoThis 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 SpellD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,67): mismatched input 'Auto' expecting STATED:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,73): mismatched input '\\r\\n' expecting STATED:\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 SPELLD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script variable ::ExplosionSpell_var already definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already has a get function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already has a set function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,67): mismatched input 'Auto' expecting STATED:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,73): mismatched input '\\r\\n' expecting STATED:\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 definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script variable ::ExplosionSpell_var already definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script property ExplosionSpell already has a get function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script property ExplosionSpell already has a set function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,58): mismatched input '\\r\\n' expecting STATED:\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 STATED:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(11,60): mismatched input 'Auto' expecting STATED:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(11,66): mismatched input '\\r\\n' expecting STATED:\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 definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script variable ::ExplosionSpell_var already definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script property ExplosionSpell already has a get function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script property ExplosionSpell already has a set function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,43): mismatched input '\\r\\n' expecting STATED:\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 STATENo output generated for cenExplosiveEffect, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on cenExplosiveEffectI tried doing the "DelayTime" property:Type: FloatName: DelayTimeInitial Value: fDelayTime = 3.0 AutoThat 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 SpellD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,67): mismatched input 'Auto' expecting STATED:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(3,73): mismatched input '\\r\\n' expecting STATED:\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 SPELLD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script variable ::ExplosionSpell_var already definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already has a get function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,15): script property ExplosionSpell already has a set function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,67): mismatched input 'Auto' expecting STATED:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(5,73): mismatched input '\\r\\n' expecting STATED:\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 definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script variable ::ExplosionSpell_var already definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script property ExplosionSpell already has a get function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,15): script property ExplosionSpell already has a set function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(7,58): mismatched input '\\r\\n' expecting STATED:\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 STATED:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(11,60): mismatched input 'Auto' expecting STATED:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(11,66): mismatched input '\\r\\n' expecting STATED:\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 definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script variable ::ExplosionSpell_var already definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script property ExplosionSpell already has a get function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,15): script property ExplosionSpell already has a set function definedD:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(13,43): mismatched input '\\r\\n' expecting STATED:\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 STATED:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(17,49): mismatched input 'Auto' expecting STATED:\Games\steamapps\common\skyrim\Data\Scripts\Source\cenExplosiveEffect.psc(17,55): mismatched input '\\r\\n' expecting STATENo output generated for cenExplosiveEffect, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on cenExplosiveEffectAny help or advice is appreciated! Edited August 7, 2019 by tothmark0529 Link to comment Share on other sites More sharing options...
foamyesque Posted August 7, 2019 Share Posted August 7, 2019 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 More sharing options...
AureliusOfRome Posted August 7, 2019 Author Share Posted August 7, 2019 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/k0VyVGAStarting script source: https://imgur.com/CbIXUruModified script source: https://imgur.com/RVp57t5ExplosionSpell Property: https://imgur.com/Y6JUAoMExplosionSpell Property Error (Starting script source): https://imgur.com/fUuTdRCDelayTime Property: https://imgur.com/iYRh5HiDelayTime Property Error (Starting script source): https://imgur.com/4gbZTfShttps://imgur.com/CbIXUruhttps://imgur.com/CbIXUruhttps://imgur.com/CbIXUruhttps://imgur.com/CbIXUruhttps://imgur.com/CbIXUru Link to comment Share on other sites More sharing options...
maxarturo Posted August 7, 2019 Share Posted August 7, 2019 The errors are related to the fact of not knowing the basics. You need to start from the basics !. Invest a couple of day with those tutorials, you will end up wiser : https://www.creationkit.com/index.php?title=Scripting Link to comment Share on other sites More sharing options...
AureliusOfRome Posted August 7, 2019 Author Share Posted August 7, 2019 Alright, alright I try to learn it. Maybe, but just maybe it will work. Link to comment Share on other sites More sharing options...
AureliusOfRome Posted August 7, 2019 Author Share Posted August 7, 2019 Well, it looks there are no errors now, I am testing if it works or not. Link to comment Share on other sites More sharing options...
maxarturo Posted August 7, 2019 Share Posted August 7, 2019 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 More sharing options...
Recommended Posts