I try to edit a script that takes into account the number of creatures killed in a log book. My problem is that a script contains only a certain amount of lines, so I need several scripts to perform the updates of the book, and i cannot seem to make them all run!
This is how the main script look:
begin tf_kills
short UpdateOn
if ( MenuMode == 1 )
return
endif
if ( OnActivate == 1 )
if ( Player->GetItemCount "Misc_Quill" > 0)
set UpdateOn to 1
else
messagebox, "You haven't any quill pen to update this journal."
activate
endif
endif
if ( UpdateOn == 1 )
StartScript "tf_animal"
StartScript "tf_ash"
StartScript "tf_daedra"
StartScript "tf_other"
StartScript "tf_undead"
; ACTION READ
set UpdateOn to 0
messagebox, "Achievements updated"
activate
endif
end tf_kills
And for the startscripts i just copy/paste the main script changing only the "StartScripts" by the "getdeadcount" list of all the creatures...
Any comments will be desperatly appreciated!