bladeScript
Tribunal.esm
Variables
3
Local Variables
OnPCEquip
bladeOut
addOnce
Source
1Begin bladeScript
2
3short OnPCEquip
4short bladeOut
5short addOnce
6
7if ( Player->GetItemCount "nerevarblade_01_flame" == 0 )
8 return
9endif
10
11if ( OnPCEquip == 0 )
12 if ( player->GetWeaponDrawn == 0 )
13 set bladeOut to 0
14 endif
15elseif ( OnPCEquip == 1 )
16 if ( player->GetWeaponDrawn == 0 )
17 set bladeOut to 0
18 endif
19endif
20
21if ( OnPCEquip == 1 )
22 if ( player->GetWeaponDrawn == 1 )
23 set bladeOut to 1
24 endif
25endif
26
27if ( bladeOut == 0 )
28 if ( Player->GetItemCount "Blade Light" > 0 )
29 Player->RemoveItem "Blade Light" 1
30 set addOnce to 0
31 endif
32endif
33
34if ( bladeOut == 1 )
35 if ( addOnce == 0 )
36 Player->AddItem "Blade Light" 1
37 set addOnce to 1
38 endif
39endif
40
41
42End bladeScript