Good tutorial, although I really needed the example in the comics and the teachers notes, as well as CSE's helpful interface in pointing out errors in the code, to complete this tutorial. I know this thread is eight-years dead, and I doubt Williesea is around to grade homeworks, so I'm posting mine in the comments so other people can see what a completed and working script looks like. Mind, you script doesn't have to look exactly like this. There are variations to doing this. But if you're having trouble and need help, you can look at mine for reference.
Spoilers for the homework!
-
-
-
-
-
Spoilers for the homework!
-
-
-
-
-
Spoilers for the homework!
-
-
-
-
-
scn WeaponForTheWorthy
short doOnce
short plrFame
short plrInfamy
Begin OnActivate
set plrFame to (GetPCFame)
set plrInfamy to (GetPCInfamy)
If (doOnce == 0)
If (GetPCFame >= 50) || (GetPCInfamy >= 50)
If (GetPCFame > GetPCInfamy)
MessageBox "You are famous enough!"
player.additem 00035DD4, 1
set doOnce to 1
Else
MessageBox "You are infamous enough!"
player.additem 00035DD4, 1
set doOnce to 1
EndIf
Else
MessageBox "You are a nobody!"
EndIf
Else
MessageBox "You already received your gift!"
EndIf
End