TR_m2_DrolarManor_Skel_sc
TR_Mainland.esm
Variables
1
Local Variables
state
Source
1Begin TR_m2_DrolarManor_Skel_sc
2
3;This script is placed on the two skeleton creatures and the two skeltons made out of
4;static pieces in Drolar Manor Ruin. It makes the static skeltons 'come alive' by disabling them
5;and enabling the creature skeletons when a sword is picked up.
6
7Short state
8
9if ( state == 0 ) ;initially, determine which item the script is placed on
10 if ( GetPos, x > 4250 ) ;if it's a static skeleton piece
11 Set state to 1 ;mark as state=1
12 else ;if it's a creature skeleton
13 disable ;disable
14 Set state to 2 ;and mark as state=2
15 endif
16elseif ( state >= 1 ) ;after that
17 if ( player->GetItemCount "TR_m2_w_Flametail_uni" > 0 ) ;once the player picks up the sword
18 if ( state == 1 ) ;for the static skeletons,
19 disable ;disappear
20 else ;for the live skeletons
21 enable ;appear
22 endif
23 Set state to -1 ;only do this once
24 endif
25endif
26
27End