All I'm trying to do is make a simple script that, upon activation of a cash register in GoodSprings, skips time forward 8 hours and gives you 40 caps (to simulate an odd job as a cashier). I know I'm probably doing this hilariously wrong, but I don't know what it is I'm doing wrong. My script is this:
scn OJGSCashier
Begin OnActivate
If gamehour <8
set GameHour to 17
player.additem f 40
End