mmh not sure but there seem to be some problems with quest scripts or at least i didnt find explanations for the behavior:
-quest only starts autmaticly if "start game enabled" is checked --- good
===================================
-quest script starts even without the quest running as long as no
if (JSwordsDistributionQuest.IsRunning())
has been called before its functions --- weird!
===================================
-quest scripts run more than once even if they can only run once O.o
explanation:
my script functions have the condition:
if (JSwordsDistributionQuest.IsRunning())
and the last function is
Debug.MessageBox("JaySuS Swords have succsesfully been distributed in Skyrim")
JSwordsDistributionQuest.CompleteQuest()
endif
endEvent
hence it should only be able to run once since the quest that has to run as a condition gets shut down at the end, yet i get the message box twice! ----- O.o
====================================
full current script (that basicly works but results in CTDs on loading another save or going back to main menu and i assume thats due to the fact that the messagebox appears twice and hence the script prolly spams itself to death or somin):
Scriptname JSwordsDistributionQuestScript extends quest
{distributes swords in skyrim}
quest property JSwordsDistributionQuest auto ;; the token quest that gets everything running
leveleditem property JSwordsAlbswordLVLI auto ;; my lvl lists full of swords
leveleditem property JSwordsBandits1HAxeLVLI auto
leveleditem property JSwordsBandits1HSwordLVLI auto
leveleditem property JSwordsBandits2HAxeLVLI auto
leveleditem property JSwordsBandits2HSwordLVLI auto
leveleditem property JSwordsBanditsDaggerLVLI auto
leveleditem property JSwordsDibellaLVLI auto
leveleditem property JSwordsDragonbrandLVLI auto
leveleditem property JSwordsDragonstingLVLI auto
leveleditem property JSwordsFencing1HSwordLVLI auto
leveleditem property JSwordsGouJiAnLVLI auto
leveleditem property JSwordsImperial1HSwordLVLI auto
leveleditem property JSwordsJianLVLI auto
leveleditem property JSwordsKhajit1HSwordLVLI auto
leveleditem property JSwordsKnight1HSwordLVLI auto
leveleditem property JSwordsKnight2HSwordLVLI auto
leveleditem property JSwordsMeansowrdLVLI auto
leveleditem property JSwordsStormcloak1HAxeLVLI auto
leveleditem property JSwordsStormcloak2HAxeLVLI auto
leveleditem property JSwordsStormcloak1HSwordLVLI auto
leveleditem property JSwordsStormcloak2HSwordLVLI auto
leveleditem property JSwordsGungnirLVLI auto
leveleditem property LItemThalmorWeapon1H auto ;; lvl lists i want my swords to add to
leveleditem property CWSoldierImperialGear auto
leveleditem property CWSoldierImperialGearNoTorch auto
leveleditem property LItemBanditSword auto
leveleditem property LItemBanditWarAxe auto
leveleditem property LItemBanditBattleaxe auto
leveleditem property LItemBanditGreatsword auto
leveleditem property LItemWarlockDagger auto
leveleditem property LItemWeaponDaggerTown auto
leveleditem property LItemWeaponDagger auto
leveleditem property LItemWeaponDaggerForsworn auto
leveleditem property LItemWeaponSword auto
leveleditem property LItemWeaponGreatSword auto
leveleditem property LItemSoldierSonsSword auto
leveleditem property LItemSoldierSonsWaraxe auto
leveleditem property LItemSoldierSonsBattleaxe auto
leveleditem property LItemSoldierSonsGreatsword auto
leveleditem property DeathItemDragonPriest auto
actor property Risaad auto ;; those race specific actors could probably be combined in a form list or somin tho im not sure if addform can put items in actors inside a form list atm
actor property Madran auto
actor property Ahkari auto
actor property Atahba auto
actor property Marandrujo auto
actor property Majhad auto
actor property Zaynabi auto
actor property Khayla auto
actor property Razhinda auto
actor property Dromarash auto
actor property Grushnag auto
event OnInit() ;;script get initialized and the following happens
if (JSwordsDistributionQuest.IsRunning()) ;;in case the quest runs do the following
LItemThalmorWeapon1H.AddForm (JSwordsAlbswordLVLI, 25, 1) ;; not sure if this works, adds 1 albswordLVLI at lvl 25 to a ThalmoorLVLI, what if player is not at lvl 25? or does it add it anyway but only makes it available at lvl 25 like in the lvl list window?
CWSoldierImperialGear.AddForm (JSwordsImperial1HSwordLVLI, 1, 1) ;; works like a charm, items get added
CWSoldierImperialGearNoTorch.AddForm (JSwordsImperial1HSwordLVLI, 1, 1)
LItemBanditSword.AddForm (JSwordsBandits1HSwordLVLI, 1, 5)
LItemBanditWarAxe.AddForm (JSwordsBandits2HAxeLVLI, 1, 5)
LItemBanditBattleaxe.AddForm (JSwordsBandits2HAxeLVLI, 1, 5)
LItemBanditGreatsword.AddForm (JSwordsBandits2HSwordLVLI, 1, 5)
LItemWarlockDagger.AddForm (JSwordsBanditsDaggerLVLI, 1, 5)
LItemWeaponDaggerTown.AddForm (JSwordsBanditsDaggerLVLI, 1, 5)
LItemWeaponDagger.AddForm (JSwordsBanditsDaggerLVLI, 1, 5)
LItemWeaponSword.AddForm (JSwordsBandits1HSwordLVLI, 1, 5)
LItemWeaponGreatSword.AddForm (JSwordsBandits2HSwordLVLI, 1, 5)
LItemSoldierSonsSword.AddForm (JSwordsStormcloak1HSwordLVLI, 1, 5)
LItemSoldierSonsWaraxe.AddForm (JSwordsStormcloak1HAxeLVLI, 1, 5)
LItemSoldierSonsBattleaxe.AddForm (JSwordsStormcloak2HAxeLVLI, 1, 5)
LItemSoldierSonsGreatsword.AddForm (JSwordsStormcloak2HSwordLVLI, 1, 5)
DeathItemDragonPriest.AddForm (JSwordsDragonstingLVLI, 1, 1)
Risaad.additem (JSwordsKhajit1HSwordLVLI, 1, 1) ;;didnt check it yet but should work, not sure what happens if they respawn tho, i guess as long as the current save is a derivate of one that had this script run on it the item should get burned into the inventory of that actor, could be that it only works with lvl lists tho which would kinda svck as khajit caravan dudes dont have one
Madran.additem (JSwordsKhajit1HSwordLVLI, 1, 1)
Ahkari.additem (JSwordsKhajit1HSwordLVLI, 1, 1)
Atahba.additem (JSwordsKhajit1HSwordLVLI, 1, 1)
Marandrujo.additem (JSwordsKhajit1HSwordLVLI, 1, 1)
Majhad.additem (JSwordsKhajit1HSwordLVLI, 1, 1)
Zaynabi.additem (JSwordsKhajit1HSwordLVLI, 1, 1)
Khayla.additem (JSwordsKhajit1HSwordLVLI, 1, 1)
Razhinda.additem (JSwordsKhajit1HSwordLVLI, 1, 1)
Dromarash.additem (JSwordsKhajit1HSwordLVLI, 1, 1)
Grushnag.additem (JSwordsKhajit1HSwordLVLI, 1, 1)
Debug.MessageBox("JaySuS Swords have succsesfully been distributed in Skyrim")
JSwordsDistributionQuest.CompleteQuest()
endif
endEvent
way to go....

gosh i want my vertices and polygons back... damn properties and functions and whatnot lol, dont you have trainees or somin for that, or a guy in the basemant? (kidding, utmost respect of coding folk

)