begin Lotr_etryanarespeakshort button; short "LOTR_ChargenState" and short "LOTR_Chargen" are globalsif ( MenuMode == 1 ) Returnendifif ( GetDistance, Player <= 1000 ) if ( LOTR_ChargenState == 1 ) ; returns true if chargen is in progress if ( LOTR_Chargen == 20 ) AIWander, 0, 0, 0 ; stops her from moving say, "Lotr\AwakenFriend.wav", "Uruk-Hai are coming, We need to get some weapons on you" Set LOTR_Chargen to 21 elseif ( saydone == 1 ) if( LOTR_Chargen == 21 ) enableClassMenu Set LOTR_Chargen to 22 endif elseif ( LOTR_Chargen == 22 ) MessageBox "What is your preferred fighting class?", "Soldier", "Ranger", "Assassin", "Warrior", "Conjurer" set LOTR_Chargen to 41 elseif ( LOTR_Chargen == 41 ) set button to GetButtonPressed if ( button == -1 ) return elseif ( button == 1) MessageBox "You have been equipped with a soldier's weapon set" player -> additem "MR_elf_spear" 1 player -> additem "MR_URKsword" 1 player -> additem "MR_URKtsword" 1 player -> additem "dwemer_shield" 1 player -> additem "dwemer_boots" 1 player -> additem "dwemer_cuirass" 1 player -> additem "dwemer_greaves" 1 player -> additem "dwemer_helm" 1 EnablePlayerControls MessageBox "You have been equipped with a soldier's weapon set" set LOTR_Chargen to 42 elseif ( button == 2 ) MessageBox "You have been equipped with a Ranger's weapon set" player->additem "long bow" 1 player->additem "iron arrow" 100 player->additem "iron halberd" 25 player->additem "iron dagger" 1 player->additem "iron shortsword" 1 player->additem "chitin cuirass" 1 player->additem "chitin greaves" 1 player->additem "chitin boots" 1 player->additem "chitin helm" 1 EnablePlayerControls MessageBox "You have been equipped with a Ranger's weapon set" set LOTR_Chargen to 42 elseif ( button == 3 ) MessageBox "You have been equipped with an Assassin's Weapon set" player->additem "long bow" 1 player->additem "iron arrow" 100 player->additem "iron dagger" 1 player->additem "iron shortsword" 1 player->additem "chitin cuirass" 1 player->additem "chitin greaves" 1 player->additem "chitin boots" 1 player->additem "chitin helm" 1 EnablePlayerControls MessageBox "You have been equipped with an Assassin's Weapon set" set LOTR_Chargen to 42 elseif ( button == 45 ) MessageBox "You have been equipped with a Warrior's Weapon set" player->additem "glass longsword" 1 player->additem "glass war axe" 1 player->additem "goblin_club" 1 player->additem "MR_elf_spear" 1 player->additem "daedric_shield" 1 player->additem "daedric_boots" 1 player->additem "daedric_cuirass" 1 player->additem "daedric_greaves" 1 player->additem "daedric_god_helm" 1 EnablePlayerControls MessageBox "You have been equipped with a Warrior's Weapon set" set LOTR_Chargen to 42 elseif ( button == 5 ) MessageBox "You have been equipped with a Conjurer's weapon set" player->additem "glass staff" 1 player->additem "glass frostsword" 1 player->additem "fur_cuirass" 1 player->additem "fur_greaves" 1 player->additem "fur_boots" 1 player->additem "LOTR_Conjurer_Robe" 1 player->equip "LOTR_Conjurer_Robe" player->addspell "Hearth Heal" player->addspell "Mark" player->addspell "Recall" player->addspell "summon Scamp" EnablePlayerControls MessageBox "You have been equipped with a Conjurer's weapon set" set LOTR_Chargen to 42 endif elseif ( LOTR_Chargen == 42 ) MessageBox "you should talk to Etyanár? before doing anything else" journal "LOTR_WpnChoice" 20 set LOTR_Chargen to 50 AIWander 1024, 5, 0, 10, 10, 10, 10, 20, 10, 10, 10, 10, 10 endif endifendifend
if anyone can tell me what's going wrong with it, I will be most grateful.