Step 5 : (The Sucker)

Herbert will now prevent us from using the machine. Open the script of the object "automat" and modify the "on (click)" event like this :

  on (click)
    {
    if_bool (runaround ; true)
      {
      cutscene (maynot)
      break()
      }
    walkto (self ; 39 ; 13 ; 2)
    }

Now, if "runaround" is true the cutscene "maynot" will be started and Horst will not walk to the machine. Create the script "maynot" and fill it with these lines :

"follow" causes a character to walk to the position of another one. In our case Herbert will walk to Horst.

"lookto" causes a character to change his view direction. The two "lookto" instructions will let both characters look at each other.


Step 6 : (Talk to Herbert)

Click on Herbert and add to his script :

  on (mouse)
    showinfo (Herbert ; true)

  on (click)
    follow (self ; herbert)

  on (look)
    speech (self ; Thats Herbert, the fool.)

Instead of a "walkto" instruction the "on (click)" event now contains a "follow" instruction because we don't know the absolute position of Herbert.

To be able to talk to him you need to add this :

  on (talk)
    {
    lookto (herbert ; self)
    textscene (talkherbert)
    }

Before we call a textscene we provide for eye contact between the two actors. After that the textscene "talkherbert" will be started. Click on Next to see how you can create this textscene.

Next