replenishammo
Tribunal.esm
Variables
1
Local Variables
isdead
Source
1Begin replenishammo
2
3short isdead
4
5if ( MenuMode )
6 return
7endif
8
9if ( isdead== 1 )
10 return
11endif
12
13;when killed, adds 5 darts to inventory. so player finds 5 plus whatever is left
14If ( OnDeath == 1 )
15 additem "centurion_projectile_dart" 5
16 set isdead to 1
17endif
18
19;if 1 dart left in inv, adds 5 more
20If ( GetItemCount centurion_projectile_dart < 2 )
21 ;Messagebox "less than 1 left. adding 5 more"
22 additem "centurion_projectile_dart" 5
23endif
24
25End