I am a beginner and I'm trying to do an interaction for when my character interacts with a hotspot, another sequence will occur after the first interaction is done. I don't want the same script/sequence to appear once the player has interacted with the same hotspot again.
This is my attempt at using if variables on my own...
Code: ags
This is my attempt at using if variables on my own...
function hFridge_Look()
{
cMara.FaceDirection(eDirectionDown);
cMara.Say("All I know is that there's nothing in it.");
cMara.SpeechView = 4;
cMara.Say("I'm fine not eating anyway.");
{
if (cMara.Say == ("I'm fine not eating anyway.")
{
aDistant_alarm.Play(eAudioPriorityNormal);
cMara.FaceDirection(eDirectionUp);
cMara.Say("That's my alarm clock.");
cMara.ChangeView = 6;
cMara.Say("Why is it going off at this time?");
cMara.ChangeView = 2;
cMara.Say("Gotta turn it off before it annoys the heck out of me.");