Switching
Code: ags
to
Code: ags
should do the trick.
if (player.ActiveInventory == iMedallion) {
to
if (player.HasInventory(iMedallion) ) {
should do the trick.