Scripts

TR_m2_q_29_4_Map_Script

TR_Mainland.esm
Source
1begin TR_m2_q_29_4_Map_Script 2 3;this script is attached to TR_m2_q_29_4_note_s ;and to TR_m2_q_29_4_silk 4 5if ( MenuMode == 1 ) 6 return 7endif 8 9if ( GetJournalIndex "TR_m2_FG_Irano4" < 10 ) ;disable if the relevant quest is not a-go 10 if ( GetDisabled == 0 ) 11 disable 12 endif 13elseif ( GetDisabled == 1 ) ;enable when the quest has started 14 enable 15endif 16 17if ( OnActivate == 1 ) 18 if ( GetScale == 1 ) ;this is the map 19 Activate 20 if ( GetJournalIndex "TR_m2_FG_Irano4" < 20 ) 21 Journal "TR_m2_FG_Irano4" 20 22 endif 23 player->StartScript "TR_m2_q_29_4_Map_UnScript" ;replaced with unscripted version if picked up 24 elseif ( GetJournalIndex "TR_m2_FG_Irano4" >= 20 ) ;this is the silk 25 Playsound, "Item Ingredient Up" 26 player->additem "T_IngCrea_DridreaSilk_01" 1 27 Disable 28 SetDelete 1 29 endif 30endif 31 32end