This is my script, not that difficult. I have tried many permutations to get it to work, but to no avail.
Scriptname aaaModApocZombieSpellScript extends ActiveMagicEffectSpell property PoisonSpread autoSpell property Disease autoActor property Caster autoActor property Afflicted autoMagicEffect property ThisEffect autoThisEffect = SelfAfflicted = ThisEffect.GetTargetActor()Caster = ThisEffect.GetCasterActor()Event OnEffectStart(Afflicted, Caster)Afflicted.AddSpell(PoisonSpread)endEventEvent OnEffectFinish(Afflicted, Caster)Afflicted.AddSpell(Disease)endEvent
I cannot see any problems, according to creationkit.com function references, I am doing everything right. I simply wish to know what is the problem?
Here are the compiler errors:
G:\steam\steamapps\common\skyrim\Data\Scripts\Source\aaaModApocZombieSpellScript.psc(12,11): no viable alternative at input '='
G:\steam\steamapps\common\skyrim\Data\Scripts\Source\aaaModApocZombieSpellScript.psc(23,29): extraneous input ',' expecting ID
G:\steam\steamapps\common\skyrim\Data\Scripts\Source\aaaModApocZombieSpellScript.psc(30,30): extraneous input ',' expecting ID
No output generated for aaaModApocZombieSpellScript.psc, compilation failed.
This is a supposedly simple script I would use to add a disease and the ability to spread it to NPCs.