Need Some Help with Variables

Post » Mon Oct 17, 2011 9:11 am

I'm very new to scripting, and I really don't understand how to set variables yet. I'm trying to make a compatibility patch for Hunter's Achievements and Morrowind Advanced. But when I try to save my changes to the 'tf_kills' script, it tells me it can't find the variables for the new creatures I put in. Can anyone tell me what I'm doing wrong?

The script is as follows:
begin tf_killsshort UpdateOnif ( MenuMode == 1 )	returnendifif ( 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	endifendifif ( UpdateOn == 1 ); ANIMALS	set tfk_alit to ( GetDeadCount, "alit" )	set tfk_alit to tfk_alit + ( GetDeadCount, "alit_blighted" )	set tfk_alit to tfk_alit + ( GetDeadCount, "alit_diseased" )	set tfk_bear to ( GetDeadCount, "bm_bear_black" )	set tfk_bear to tfk_bear + ( GetDeadCount, "bm_bear_brown" )	set tfk_boar to ( GetDeadCount, "bm_frost_boar" )	set tfk_cracer to ( GetDeadCount, "cliff racer" )	set tfk_cracer to tfk_cracer + ( GetDeadCount, "cliff racer_blighted" )	set tfk_cracer to tfk_cracer + ( GetDeadCount, "cliff racer_diseased" )	set tfk_durzog to ( GetDeadCount, "durzog_diseased" )	set tfk_durzog to tfk_durzog + ( GetDeadCount, "durzog_war" )	set tfk_durzog to tfk_durzog + ( GetDeadCount, "durzog_war_trained" )	set tfk_durzog to tfk_durzog + ( GetDeadCount, "durzog_wild" )	set tfk_durzog to tfk_durzog + ( GetDeadCount, "durzog_wild_weaker" )	set tfk_guar to ( GetDeadCount, "guar" )	set tfk_guar to tfk_guar + ( GetDeadCount, "guar_feral" )	set tfk_kagouti to ( GetDeadCount, "kagouti" )	set tfk_kagouti to tfk_kagouti + ( GetDeadCount, "kagouti_blighted" )	set tfk_kagouti to tfk_kagouti + ( GetDeadCount, "kagouti_diseased" )	set tfk_kagouti to tfk_kagouti + ( GetDeadCount, "kagouti_MWA" )	set tfk_kwama to ( GetDeadCount, "kwama forager" )	set tfk_kwama to tfk_kwama + ( GetDeadCount, "kwama forager blighted" )	set tfk_kwama to tfk_kwama + ( GetDeadCount, "kwama queen" )	set tfk_kwama to tfk_kwama + ( GetDeadCount, "kwama warrior" )	set tfk_kwama to tfk_kwama + ( GetDeadCount, "kwama warrior blighted" )	set tfk_kwama to tfk_kwama + ( GetDeadCount, "kwama worker" )	set tfk_kwama to tfk_kwama + ( GetDeadCount, "kwama worker blighted" )	set tfk_kwama to tfk_kwama + ( GetDeadCount, "kwama worker diseased" )	set tfk_kwama to tfk_kwama + ( GetDeadCount, "kwama worker entrance" )	set tfk_mudcrab to ( GetDeadCount, "mudcrab" )	set tfk_mudcrab to tfk_mudcrab + ( GetDeadCount, "mudcrab-diseased" )	set tfk_mudcrab to tfk_mudcrab + ( GetDeadCount, "mudcrab_giant_MWA" )	set tfk_mudcrab to tfk_mudcrab + ( GetDeadCount, "mudcrab_MWA" )	set tfk_netch to ( GetDeadCount, "netch_betty" )	set tfk_netch to tfk_netch + ( GetDeadCount, "netch_bull" )	set tfk_nix to ( GetDeadCount, "nix-hound" )	set tfk_nix to tfk_nix + ( GetDeadCount, "nix-hound blighted" )	set tfk_rat to ( GetDeadCount, "rat" )	set tfk_rat to tfk_rat + ( GetDeadCount, "rat_blighted" )	set tfk_rat to tfk_rat + ( GetDeadCount, "rat_diseased" )	set tfk_rat to tfk_rat + ( GetDeadCount, "large_mouse_MVA" )	set tfk_rat to ( GetDeadCount, "rat_MWA" )	set tfk_rat to ( GetDeadCount, "rat_UBER_MWA" )	set tfk_scrib to ( GetDeadCount, "scrib" )	set tfk_scrib to tfk_scrib + ( GetDeadCount, "scrib blighted" )	set tfk_scrib to tfk_scrib + ( GetDeadCount, "scrib diseased" )	set tfk_scrib to tfk_scrib + ( GetDeadCount, "scrib_UBER_MWA" )	set tfk_scrib to ( GetDeadCount, "scrib_UBER_MWA" )	set tfk_shalk to ( GetDeadCount, "shalk" )	set tfk_shalk to tfk_shalk + ( GetDeadCount, "shalk_blighted" )	set tfk_shalk to tfk_shalk + ( GetDeadCount, "shalk_diseased" )	set tfk_shalk to tfk_shalk + ( GetDeadCount, "shalk_UBER_MWA" )	set tfk_sfish to ( GetDeadCount, "slaughterfish" )	set tfk_sfish to tfk_sfish + ( GetDeadCount, "slaughterfish_small" )	set tfk_sfish to tfk_sfish + ( GetDeadCount, "slaughterfish_MWA" )	set tfk_wolf to ( GetDeadCount, "bm_wolf_grey" )	set tfk_wolf to tfk_wolf + ( GetDeadCount, "bm_wolf_red" ); UNDEAD	set tfk_ghost to ( GetDeadCount, "ancestor_ghost" )	set tfk_ghost to tfk_ghost + ( GetDeadCount, "dwarven ghost" )	set tfk_ghost to ( GetDeadCount, "spectre_MWA" )	set tfk_bonelord to ( GetDeadCount, "bonelord" )	set tfk_bonewalker to ( GetDeadCount, "bonewalker" )	set tfk_bonewalker to tfk_bonewalker + ( GetDeadCount,  "bonewalker_greater" )	set tfk_bonewalker to tfk_bonewalker + ( GetDeadCount, "bonewalker_weak" )	set tfk_lich to ( GetDeadCount, "lich" )	set tfk_skeleton to ( GetDeadCount, "skeleton" )	set tfk_skeleton to tfk_skeleton + ( GetDeadCount, "skeleton archer" )	set tfk_skeleton to tfk_skeleton + ( GetDeadCount, "skeleton champion" )	set tfk_skeleton to tfk_skeleton + ( GetDeadCount, "skeleton entrance" )	set tfk_skeleton to tfk_skeleton + ( GetDeadCount, "skeleton warrior" )	set tfk_skeleton to tfk_skeleton + ( GetDeadCount, "skeleton_arch_keep_MWA" )	set tfk_skeleton to tfk_skeleton + ( GetDeadCount, "skeleton_keep_MWA" )	set tfk_skeleton to tfk_skeleton + ( GetDeadCount, "skeleton_MWA" )	set tfk_skeleton to tfk_skeleton + ( GetDeadCount, "skeleton_war_keep_MWA" )	set tfk_corprus_stalker_MWA to ( GetDeadCount, "corprus_stalker_MWA"]	set tfk_seducer_fiend_MWA to ( GetDeadCount, "seducer_fiend_MWA" )	set tfk_zombie_bs to ( GetDeadCount, "zombie_bs" ); DAEDRA	set tfk_atronach to ( GetDeadCount, "atronach_flame" )	set tfk_atronach to tfk_atronach + ( GetDeadCount, "atronach_frost" )	set tfk_atronach to tfk_atronach + ( GetDeadCount, "atronach_storm" )	set tfk_clannfear to ( GetDeadCount, "clannfear" )	set tfk_clannfear to ( GetDeadCount, "clannfear_MWA"]	set tfk_daedroth to ( GetDeadCount, "daedroth" )	set tfk_dremora to ( GetDeadCount, "dremora" )	set tfk_dremora to tfk_dremora + ( GetDeadCount, "dremora_lord" )	set tfk_dremora to tfk_dremora + ( GetDeadCount, "dremora_cleaner_MWA" )	set tfk_dremora to tfk_dremora + ( GetDeadCount, "dremora_MWA" )	set tfk_dreugh to ( GetDeadCount, "dreugh" )	set tfk_gsaint to ( GetDeadCount, "golden saint" )	set tfk_gsaint to ( GetDeadCount, "golden_saint_MWA"]	set tfk_hunger to ( GetDeadCount, "hunger" )	set tfk_hunger to ( GetDeadCount, "hunger_MWA" )	set tfk_ogrim to ( GetDeadCount, "ogrim" )	set tfk_ogrim to tfk_ogrim + ( GetDeadCount, "ogrim titan" )	set tfk_ogrim to tfk_ogrim + ( GetDeadCount, "ogrim_giant_MWA" )	set tfk_ogrim to tfk_ogrim + ( GetDeadCount, "ogrim_MWA" )	set tfk_scamp to ( GetDeadCount, "scamp" )	set tfk_scamp to ( GetDeadCount, "scamp_MWA" )	set tfk_wtwilight to ( GetDeadCount, "winged twilight" )	set tfk_wtwilight to ( GetDeadCount, "winged_twilight_MWA" ); 6th HOUSE MINIONS:	set tfk_asleeper to ( GetDeadCount, "ascended_sleeper" )	set tfk_ashkin to ( GetDeadCount, "ash_ghoul" )	set tfk_ashkin to tfk_ashkin + ( GetDeadCount, "ash_slave" )	set tfk_ashkin to tfk_ashkin + ( GetDeadCount, "ash_zombie" )	set tfk_ashkin to ( GetDeadCount, "ash_ghoul_MWA" )	set tfk_corprus to ( GetDeadCount, "corprus_lame" )	set tfk_corprus to tfk_corprus + ( GetDeadCount, "corprus_stalker" ); OTHERS	set tfk_centurion to ( GetDeadCount, "centurion_sphere" )	set tfk_centurion to tfk_centurion + ( GetDeadCount, "centurion_spider" )	set tfk_centurion to tfk_centurion + ( GetDeadCount, "centurion_steam" )	set tfk_centurion to tfk_centurion + ( GetDeadCount, "centurion_steam2_MWA" )	set tfk_centurion to tfk_centurion + ( GetDeadCount, "centurion_steam_MWA	set tfk_centurion to tfk_centurion + ( GetDeadCount, "centurion_spider_MWA" )	set tfk_draugr to ( GetDeadCount, "bm_draugr01" )	set tfk_fabricant to ( GetDeadCount, "fabricant_hulkin_attack" )	set tfk_fabricant to tfk_fabricant + ( GetDeadCount, "fabricant_hulking" )	set tfk_fabricant to tfk_fabricant + ( GetDeadCount, "fabricant_hulking_c" )	set tfk_fabricant to tfk_fabricant + ( GetDeadCount, "fabricant_hulking_c_l" )	set tfk_fabricant to tfk_fabricant + ( GetDeadCount, "fabricant_hulking_ss" )	set tfk_fabricant to tfk_fabricant + ( GetDeadCount, "fabricant_verm_attack" )	set tfk_fabricant to tfk_fabricant + ( GetDeadCount, "fabricant_verminous" )	set tfk_fabricant to tfk_fabricant + ( GetDeadCount, "fabricant_verminous-rs" )	set tfk_fabricant to tfk_fabricant + ( GetDeadCount, "fabricant_verminous_c" )	set tfk_goblin to ( GetDeadCount, "goblin_bruiser" )	set tfk_goblin to tfk_goblin + ( GetDeadCount, "goblin_footsoldier" )	set tfk_goblin to tfk_goblin + ( GetDeadCount, "goblin_grunt" )	set tfk_goblin to tfk_goblin + ( GetDeadCount, "goblin_handler" )	set tfk_goblin to tfk_goblin + ( GetDeadCount, "goblin_officer" )	set tfk_riekling to ( GetDeadCount, "bm_riekling" )	set tfk_riekling to tfk_riekling + ( GetDeadCount, "bm_riekling_mounted" )	set tfk_dragonian to + ( GetDeadCount, "clannfear_giant_MWA"]	set tfk_swamp_impling to + ( GetDeadCount, "deadroth_Imp_MWA"]	set tfk_earth_golem to GetDeadCount, ["earth_golem_MWA" )	set tfk_earth_golem to GetDeadCount, ["earth_golem_g_MWA" )	set tfk_harpy to GetDeadCount, ["harpy_MWA" ); ACTION READ	set UpdateOn to 0	messagebox, "Achievements updated"	activateendifend tf_kills

User avatar
Ernesto Salinas
 
Posts: 3399
Joined: Sat Nov 03, 2007 2:19 pm

Post » Mon Oct 17, 2011 4:40 pm

Edit: Rethought my comments and I don't think they necessarily apply to this situation. I'm sure someone else can help, though.
User avatar
Darian Ennels
 
Posts: 3406
Joined: Mon Aug 20, 2007 2:00 pm


Return to III - Morrowind