Hello,
I'm reaching the final stages of my current project and have run into a few problems. I'm using personal modified variations of Marc's library scripts from Mori Mountain Estate, modified as I'm using a different order for books and do not wish to include all the modded books he provided sorting for. I've renamed the various scripts and objects in an effort to prevent conflicts in the event players are using other mods which use his scripts. I am however having a problem when I go to compile my scripts and I'm not sure how to proceed.
The first script is the sorting activator itself. It reads:
begin VMBookSort_startShort controlvarShort buttonIf ( OnActivate ) If ( controlvar == 0 ) Messagebox, "What would you like to do?" ,"Sort books and documents?", "Nevermind" set controlvar to 1 endifendifif (controlvar == 1) set button to GetButtonPressed if ( button == -1 ) return endif if ( button == 0 ) messagebox "Your books and documents have been sorted." startscript "VMLibraryGlobal_I" set VMBookCounter to 1 set controlvar to 0 endif if ( button == 1 ) set button to -1 set controlvar to 0 endifendifend
When I attempt to save this script I receive the error
"Script VMbookSort_start
Syntax Error Line 21.
Could Not Find variable "VMBookCounter"
The next script is the script placed on each book. It reads:
begin VMBookScriptshort VM_book_localshort VM_book_addsitselfIf ( VM_book_local == 0 ) Disableelse If ( VM_book_addsitself == 0 ) set VMBookcounter to ( VMBookcounter + 1 ) PlaySound, "Item Book Down" Enable set VM_book_addsitself to 1 stopscript VMBookScript endifendifend
When I attempt to save it, I am receiving the error.
"Script VMBookScript
Syntax Error Line 10
Could not find variable "VMBookcounter""
The third script is the first library script. It will eventually direct to several more scripts for the remainder of the books but for the time being I've limited it to the first for testing. It reads:
begin VMLibraryGlobal_IIf ( ( player->GetItemCount, "BookSkill_Long Blade2" ) >= 1 ) player->removeItem "BookSkill_Long Blade2" 1 "_VM_bookchest"->addItem "BookSkill_Long Blade2" 1 set "_VM_book001".VM_book_local to 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Mysticism2" ) >= 1 ) player->removeItem "BookSkill_Mysticism2" 1 "_VM_bookchest"->addItem "BookSkill_Mysticism2" 1 set "_VM_book002".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Spear2" ) >= 1 ) player->removeItem "BookSkill_Spear2" 1 "_VM_bookchest"->addItem "BookSkill_Spear2" 1 set "_VM_book003".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Restoration4" ) >= 1 ) player->removeItem "BookSkill_Restoration4" 1 "_VM_bookchest"->addItem "BookSkill_Restoration4" 1 set "_VM_book004".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Speechcraft3" ) >= 1 ) player->removeItem "BookSkill_Speechcraft3" 1 "_VM_bookchest"->addItem "BookSkill_Speechcraft3" 1 set "_VM_book005".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Heavy Armor2" ) >= 1 ) player->removeItem "BookSkill_Heavy Armor2" 1 "_VM_bookchest"->addItem "BookSkill_Heavy Armor2" 1 set "_VM_book006".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Mercantile3" ) >= 1 ) player->removeItem "BookSkill_Mercantile3" 1 "_VM_bookchest"->addItem "BookSkill_Mercantile3" 1 set "_VM_book007".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Sneak2" ) >= 1 ) player->removeItem "BookSkill_Sneak2" 1 "_VM_bookchest"->addItem "BookSkill_Sneak2" 1 set "_VM_book008".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Conjuration3" ) >= 1 ) player->removeItem "BookSkill_Conjuration3" 1 "_VM_bookchest"->addItem "BookSkill_Conjuration3" 1 set "_VM_book009".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Conjuration4" ) >= 1 ) player->removeItem "BookSkill_Conjuration4" 1 "_VM_bookchest"->addItem "BookSkill_Conjuration4" 1 set "_VM_book010".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Short Blade2" ) >= 1 ) player->removeItem "BookSkill_Short Blade2" 1 "_VM_bookchest"->addItem "BookSkill_Short Blade2" 1 set "_VM_book011".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Short Blade3" ) >= 1 ) player->removeItem "BookSkill_Short Blade3" 1 "_VM_bookchest"->addItem "BookSkill_Short Blade3" 1 set "_VM_book012".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Athletics3" ) >= 1 ) player->removeItem "BookSkill_Athletics3" 1 "_VM_bookchest"->addItem "BookSkill_Athletics3" 1 set "_VM_book013".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Alchemy4" ) >= 1 ) player->removeItem "BookSkill_Alchemy4" 1 "_VM_bookchest"->addItem "BookSkill_Alchemy4" 1 set "_VM_book014".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Blunt Weapon4" ) >= 1 ) player->removeItem "BookSkill_Blunt Weapon4" 1 "_VM_bookchest"->addItem "BookSkill_Blunt Weapon4" 1 set "_VM_book015".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Mysticism3" ) >= 1 ) player->removeItem "BookSkill_Mysticism3" 1 "_VM_bookchest"->addItem "BookSkill_Mysticism3" 1 set "_VM_book016".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Axe4" ) >= 1 ) player->removeItem "BookSkill_Axe4" 1 "_VM_bookchest"->addItem "BookSkill_Axe4" 1 set "_VM_book017".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Armorer3" ) >= 1 ) player->removeItem "BookSkill_Armorer3" 1 "_VM_bookchest"->addItem "BookSkill_Armorer3" 1 set "_VM_book018".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Block4" ) >= 1 ) player->removeItem "BookSkill_Block4" 1 "_VM_bookchest"->addItem "BookSkill_Block4" 1 set "_VM_book019".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Athletics4" ) >= 1 ) player->removeItem "BookSkill_Athletics4" 1 "_VM_bookchest"->addItem "BookSkill_Athletics4" 1 set "_MM_book020".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Blunt Weapon5" ) >= 1 ) player->removeItem "BookSkill_Blunt Weapon5" 1 "_VM_bookchest"->addItem "BookSkill_Blunt Weapon5" 1 set "_VM_book020".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Short Blade4" ) >= 1 ) player->removeItem "BookSkill_Short Blade4" 1 "_VM_bookchest"->addItem "BookSkill_Short Blade4" 1 set "_VM_book021".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_unarmored3" ) >= 1 ) player->removeItem "bookskill_unarmored3" 1 "_VM_bookchest"->addItem "bookskill_unarmored3" 1 set "_VM_book022".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_heavy armor5" ) >= 1 ) player->removeItem "bookskill_heavy armor5" 1 "_VM_bookchest"->addItem "bookskill_heavy armor5" 1 set "_VM_book023".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Alteration4" ) >= 1 ) player->removeItem "BookSkill_Alteration4" 1 "_VM_bookchest"->addItem "BookSkill_Alteration4" 1 set "_VM_book024".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_spear3" ) >= 1 ) player->removeItem "bookskill_spear3" 1 "_VM_bookchest"->addItem "bookskill_spear3" 1 set "_VM_book025".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_unarmored4" ) >= 1 ) player->removeItem "bookskill_unarmored4" 1 "_VM_bookchest"->addItem "bookskill_unarmored4" 1 set "_VM_book026".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Axe5" ) >= 1 ) player->removeItem "BookSkill_Axe5" 1 "_VM_bookchest"->addItem "BookSkill_Axe5" 1 set "_VM_book027".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Axe5_open" ) >= 1 ) player->removeItem "BookSkill_Axe5_open" 1 "_VM_bookchest"->addItem "BookSkill_Axe5_open" 1 returnendifIf ( ( player->GetItemCount, "bookskill_long blade3" ) >= 1 ) player->removeItem "bookskill_long blade3" 1 "_VM_bookchest"->addItem "bookskill_long blade3" 1 set "_VM_book029".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookSkill_Alchemy5" ) >= 1 ) player->removeItem "BookSkill_Alchemy5" 1 "_VM_bookchest"->addItem "BookSkill_Alchemy5" 1 set "_VM_book030".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_enchant4" ) >= 1 ) player->removeItem "bookskill_enchant4" 1 "_VM_bookchest"->addItem "bookskill_enchant4" 1 set "_VM_book031".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_long blade4" ) >= 1 ) player->removeItem "bookskill_long blade4" 1 "_VM_bookchest"->addItem "bookskill_long blade4" 1 set "_VM_book032".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_light armor4" ) >= 1 ) player->removeItem "bookskill_light armor4" 1 "_VM_bookchest"->addItem "bookskill_light armor4" 1 set "_VM_book033".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_medium armor4" ) >= 1 ) player->removeItem "bookskill_medium armor4" 1 "_VM_bookchest"->addItem "bookskill_medium armor4" 1 set "_VM_book034".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, " bookskill_long blade5" ) >= 1 ) player->removeItem " bookskill_long blade5" 1 "_VM_bookchest"->addItem "bookskill_long blade5" 1 set "_VM_book035".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_spear4" ) >= 1 ) player->removeItem "bookskill_spear4" 1 "_VM_bookchest"->addItem "bookskill_spear4" 1 set "_VM_book036".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Armorer4" ) >= 1 ) player->removeItem "BookSkill_Armorer4" 1 "_VM_bookchest"->addItem "BookSkill_Armorer4" 1 set "_VM_book037".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_sneak5" ) >= 1 ) player->removeItem "bookskill_sneak5" 1 "_VM_bookchest"->addItem "bookskill_sneak5" 1 set "_VM_book038".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_speechcraft5" ) >= 1 ) player->removeItem "bookskill_speechcraft5" 1 "_VM_bookchest"->addItem "bookskill_speechcraft5" 1 set "_VM_book039".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_light armor5" ) >= 1 ) player->removeItem "bookskill_light armor5" 1 "_VM_bookchest"->addItem "bookskill_light armor5" 1 set "_VM_book040".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Armorer5" ) >= 1 ) player->removeItem "BookSkill_Armorer5" 1 "_VM_bookchest"->addItem "BookSkill_Armorer5" 1 set "_VM_book041".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Short Blade5" ) >= 1 ) player->removeItem "BookSkill_Short Blade5" 1 "_VM_bookchest"->addItem "BookSkill_Short Blade5" 1 set "_VM_book042".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Athletics5" ) >= 1 ) player->removeItem "BookSkill_Athletics5" 1 "_VM_bookchest"->addItem "BookSkill_Athletics5" 1 set "_VM_book043".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Block5" ) >= 1 ) player->removeItem "BookSkill_Block5" 1 "_VM_bookchest"->addItem "BookSkill_Block5" 1 set "_VM_book044".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_medium armor5" ) >= 1 ) player->removeItem "bookskill_medium armor5" 1 "_VM_bookchest"->addItem "bookskill_medium armor5" 1 set "_VM_book045".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_unarmored5" ) >= 1 ) player->removeItem "bookskill_unarmored5" 1 "_VM_bookchest"->addItem "bookskill_unarmored5" 1 set "_VM_book046".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_spear5" ) >= 1 ) player->removeItem "bookskill_spear5" 1 "_VM_bookchest"->addItem "bookskill_spear5" 1 set "_VM_book047".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Mysticism4" ) >= 1 ) player->removeItem "BookSkill_Mysticism4" 1 "_VM_bookchest"->addItem "BookSkill_Mysticism4" 1 set "_VM_book048".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_ABCs" ) >= 1 ) player->removeItem "bk_ABCs" 1 "_VM_bookchest"->addItem "bk_ABCs" 1 set "_VM_book049".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_AedraAndDaedra" ) >= 1 ) player->removeItem "bk_AedraAndDaedra" 1 "_VM_bookchest"->addItem "bk_AedraAndDaedra" 1 set "_VM_book050".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_AffairsOfWizards" ) >= 1 ) player->removeItem "bk_AffairsOfWizards" 1 "_VM_bookchest"->addItem "bk_AffairsOfWizards" 1 set "_VM_book051".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_AlchemistsFormulary" ) >= 1 ) player->removeItem "bk_AlchemistsFormulary" 1 "_VM_bookchest"->addItem "bk_AlchemistsFormulary" 1 set "_VM_book052".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_AncestorsAndTheDunmer" ) >= 1 ) player->removeItem "bk_AncestorsAndTheDunmer" 1 "_VM_bookchest"->addItem "bk_AncestorsAndTheDunmer" 1 set "_VM_book053".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_AntecedantsDwemerLaw" ) >= 1 ) player->removeItem "bk_AntecedantsDwemerLaw" 1 "_VM_bookchest"->addItem "bk_AntecedantsDwemerLaw" 1 set "_VM_book054".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_Anticipations" ) >= 1 ) player->removeItem "bk_Anticipations" 1 "_VM_bookchest"->addItem "bk_Anticipations" 1 set "_VM_book055".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_AnnotatedAnuad" ) >= 1 ) player->removeItem "bk_AnnotatedAnuad" 1 "_VM_bookchest"->addItem "bk_AnnotatedAnuad" 1 set "_VM_book056".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_ArcanaRestored" ) >= 1 ) player->removeItem "bk_ArcanaRestored" 1 "_VM_bookchest"->addItem "bk_ArcanaRestored" 1 set "_VM_book057".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_ArcturianHeresy" ) >= 1 ) player->removeItem "bk_ArcturianHeresy" 1 "_VM_bookchest"->addItem "bk_ArcturianHeresy" 1 set "_VM_book058".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_ArkayTheEnemy" ) >= 1 ) player->removeItem "bk_ArkayTheEnemy" 1 "_VM_bookchest"->addItem "bk_ArkayTheEnemy" 1 set "_VM_book059".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Armorer1" ) >= 1 ) player->removeItem "BookSkill_Armorer1" 1 "_VM_bookchest"->addItem "BookSkill_Armorer1" 1 set "_VM_book060".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_destruction4" ) >= 1 ) player->removeItem "bookskill_destruction4" 1 "_VM_bookchest"->addItem "bookskill_destruction4" 1 set "_VM_book061".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_Ashland_Hymns" ) >= 1 ) player->removeItem "bk_Ashland_Hymns" 1 "_VM_bookchest"->addItem "bk_Ashland_Hymns" 1 set "_VM_book062".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_axe2" ) >= 1 ) player->removeItem "bookskill_axe2" 1 "_VM_bookchest"->addItem "bookskill_axe2" 1 set "_VM_book063".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Sneak3" ) >= 1 ) player->removeItem "BookSkill_Sneak3" 1 "_VM_bookchest"->addItem "BookSkill_Sneak3" 1 set "_VM_book064".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_Balladeers_Fakebook" ) >= 1 ) player->removeItem "bk_Balladeers_Fakebook" 1 "_VM_bookchest"->addItem "bk_Balladeers_Fakebook" 1 set "_VM_book065".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BiographyBarenziah1" ) >= 1 ) player->removeItem "bk_BiographyBarenziah1" 1 "_VM_bookchest"->addItem "bk_BiographyBarenziah1" 1 set "_VM_book066".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BiographyBarenziah2" ) >= 1 ) player->removeItem "bk_BiographyBarenziah2" 1 "_VM_bookchest"->addItem "bk_BiographyBarenziah2" 1 set "_VM_book067".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BiographyBarenziah3" ) >= 1 ) player->removeItem "bk_BiographyBarenziah3" 1 "_VM_bookchest"->addItem "bk_BiographyBarenziah3" 1 set "_VM_book068".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Speechcraft1" ) >= 1 ) player->removeItem "BookSkill_Speechcraft1" 1 "_VM_bookchest"->addItem "BookSkill_Speechcraft1" 1 set "_VM_book069".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Acrobatics4" ) >= 1 ) player->removeItem "BookSkill_Acrobatics4" 1 "_VM_bookchest"->addItem "BookSkill_Acrobatics4" 1 set "_VM_book70".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_marksman5" ) >= 1 ) player->removeItem "bookskill_marksman5" 1 "_VM_bookchest"->addItem "bookskill_marksman5" 1 set "_VM_book071".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BlackGlove" ) >= 1 ) player->removeItem "bk_BlackGlove" 1 "_VM_bookchest"->addItem "bk_BlackGlove" 1 set "_VM_book072".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BlasphemousRevenants" ) >= 1 ) player->removeItem "bk_BlasphemousRevenants" 1 "_VM_bookchest"->addItem "bk_BlasphemousRevenants" 1 set "_VM_book073".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BlueBookOfRiddles" ) >= 1 ) player->removeItem "bk_BlueBookOfRiddles" 1 "_VM_bookchest"->addItem "bk_BlueBookOfRiddles" 1 set "_VM_book074".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_Boethiah's Glory_unique" ) >= 1 ) player->removeItem "bk_Boethiah's Glory_unique" 1 "_VM_bookchest"->addItem "bk_Boethiah's Glory_unique" 1 set "_VM_book075".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BoethiahPillowBook" ) >= 1 ) player->removeItem "bk_BoethiahPillowBook" 1 "_VM_bookchest"->addItem "bk_BoethiahPillowBook" 1 set "_VM_book076".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Medium Armor2" ) >= 1 ) player->removeItem "BookSkill_Medium Armor2" 1 "_VM_bookchest"->addItem "BookSkill_Medium Armor2" 1 set "_VM_book077".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Medium Armor3" ) >= 1 ) player->removeItem "BookSkill_Medium Armor3" 1 "_VM_bookchest"->addItem "BookSkill_Medium Armor3" 1 set "_VM_book078".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BookOfDaedra2" ) >= 1 ) player->removeItem "bk_BookOfDaedra" 1 "_VM_bookchest"->addItem "bk_BookOfDaedra" 1 set "_VM_book079".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BookDawnAndDusk" ) >= 1 ) player->removeItem "bk_BookDawnAndDusk" 1 "_VM_bookchest"->addItem "bk_BookDawnAndDusk" 1 set "_VM_book080".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BookOfLifeAndService" ) >= 1 ) player->removeItem "bk_BookOfLifeAndService" 1 "_VM_bookchest"->addItem "bk_BookOfLifeAndService" 1 set "_VM_book081".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BookOfRestAndEndings" ) >= 1 ) player->removeItem "bk_BookOfRestAndEndings" 1 "_VM_bookchest"->addItem "bk_BookOfRestAndEndings" 1 set "_VM_book082".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Alteration1" ) >= 1 ) player->removeItem "BookSkill_Alteration1" 1 "_VM_bookchest"->addItem "BookSkill_Alteration1" 1 set "_VM_book083".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BriefHistoryEmpire1" ) >= 1 ) player->removeItem "bk_BriefHistoryEmpire1" 1 "_VM_bookchest"->addItem "bk_BriefHistoryEmpire1" 1 set "_VM_book084".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BriefHistoryEmpire1_oh" ) >= 1 ) player->removeItem "bk_BriefHistoryEmpire1_oh" 1 "_VM_bookchest"->addItem "bk_BriefHistoryEmpire1_oh" 1 returnendifIf ( ( player->GetItemCount, "bk_BriefHistoryEmpire2" ) >= 1 ) player->removeItem "bk_BriefHistoryEmpire2" 1 "_VM_bookchest"->addItem "bk_BriefHistoryEmpire2" 1 set "_VM_book085".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BriefHistoryEmpire2_oh" ) >= 1 ) player->removeItem "bk_BriefHistoryEmpire2_oh" 1 "_VM_bookchest"->addItem "bk_BriefHistoryEmpire2_oh" 1 returnendifIf ( ( player->GetItemCount, "bk_BriefHistoryEmpire3" ) >= 1 ) player->removeItem "bk_BriefHistoryEmpire3" 1 "_VM_bookchest"->addItem "bk_BriefHistoryEmpire3" 1 set "_VM_book086".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BriefHistoryEmpire3_oh" ) >= 1 ) player->removeItem "bk_BriefHistoryEmpire3_oh" 1 "_VM_bookchest"->addItem "bk_BriefHistoryEmpire3_oh" 1 returnendifIf ( ( player->GetItemCount, "bk_BriefHistoryEmpire4" ) >= 1 ) player->removeItem "bk_BriefHistoryEmpire4" 1 "_VM_bookchest"->addItem "bk_BriefHistoryEmpire4" 1 set "_VM_book087".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BriefHistoryEmpire4_oh" ) >= 1 ) player->removeItem "bk_BriefHistoryEmpire4_oh" 1 "_VM_bookchest"->addItem "bk_BriefHistoryEmpire4_oh" 1 returnendifIf ( ( player->GetItemCount, "bk_BrothersOfDarkness" ) >= 1 ) player->removeItem "bk_BrothersOfDarkness" 1 "_VM_bookchest"->addItem "bk_BrothersOfDarkness" 1 set "_VM_book088".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_BrownBook426" ) >= 1 ) player->removeItem "bk_BrownBook426" 1 "_VM_bookchest"->addItem "bk_BrownBook426" 1 set "_VM_book089".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_mercantile1" ) >= 1 ) player->removeItem "bookskill_mercantile1" 1 "_VM_bookchest"->addItem "bookskill_mercantile1" 1 set "_VM_book090".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "BookSkill_Alchemy2" ) >= 1 ) player->removeItem "BookSkill_Alchemy2" 1 "_VM_bookchest"->addItem "BookSkill_Alchemy2" 1 set "_VM_book091".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_CantatasOfVivec" ) >= 1 ) player->removeItem "bk_CantatasOfVivec" 1 "_VM_bookchest"->addItem "bk_CantatasOfVivec" 1 set "_VM_book092".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_fishystick" ) >= 1 ) player->removeItem "bk_fishystick" 1 "_VM_bookchest"->addItem "bk_fishystick" 1 set "_VM_book093".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bookskill_security4" ) >= 1 ) player->removeItem "bookskill_security4" 1 "_VM_bookchest"->addItem "bookskill_security4" 1 set "_VM_book094".VM_book_localto 1 returnendifIf ( ( player->GetItemCount, "bk_ChangedOnes" ) >= 1 ) player->removeItem "bk_ChangedOnes" 1 "_VM_bookchest"->addItem "bk_ChangedOnes" 1 set "_VM_book095".VM_book_localto 1 returnendifstopscript VMLibraryGlobal_Iend
When I attempt to save it. I am receiving the error "VMLibraryGlobal_I
Could not find variable "_VM_book001.VM_book_local" on line 6."
This is rather frustrating. I used the same method with my alchemy sorter and had no problems. The library sorters, of course are more complicated. I'm sure I've made a simple syntax error or something, any help would be greatly appreciated.