Hi gang.
Everytime I am getting cocky about my modding skills I get humbled by something like this.,
I am having the player enter a dungeon. When he does, a script runs. The script uses the skse command for menu opn type "loading" to trigger and that works fine. I have debub messages everywhere to make sure.
so that script is running.
Then I made formlists that have the base ids of all the embers in the game. almost always used by braziers, like the two down the ramp in bleak falls barrow. I ALSO made a second formlist of all the references to embers in bleak falls barrow, just in case.
Then I made a quest where i stop and run the quest after a couple of seconds of entering the dungeon, to fill in aliases and give them a script. the script as it i supposed to extends reference alias. Like so:
Scriptname nolightsonhit extends ReferenceAlias Int property choose AutoEvent OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, \ bool abBashAttack, bool abHitBlocked) debug.Notification("Hit!!!!!") if (aksource.HasKeyword(MagicDamageFire) == 1 ) choose = 1 elseif (aksource.HasKeyword(MagicDamageFrost) == 1 ) choose = 2 RegisterForSingleUpdate(2.0)EndIf EndEvent Event OnUpdate() if choose == 1self.GetReference().disable()debug.Notification("fire!!!!!")choose = 0Elseif choose == 2debug.Notification("frost!!!!!")self.GetReference().enable()choose = 0EndIf
So I have a debug message to run no matter what on hit, just for testing.
But the objective is to enable and disable the embers on top of the braziers when hit bny fire or ice. to go with my mod eternal darkness, at : http://www.nexusmods.com/skyrim/mods/70454/?
but the blasted alises do not fill!! or if they do they do not attack the script! Been trying for two days. heeeelppppppppp! please?
here is my alias (made 30 of them). I tried with and without player near check, and with oner formlists at a time. nothing works. testing in bleak falls barrow:
http://imagizer.imageshack.us/v2/800x600q90/633/pdWuHN.png
I also tried using the console commands stopquest and startquest to stop and start the quest event but no joy with scripts attaching.