Pull verb on hotspot

Started by morph100, Fri 15/03/2019 16:15:18

Previous topic - Next topic

morph100

Sorry another stupid question!

In my room I have a hotspot I want to use the Pull verb with (tumbleweed GUI), under events for my hotspot I have Look, Pick Up Talk etc but no Pull....do I use Interact somehow or do I use Usermode1 somehow?

Thanks!

VampireWombat

#1
I haven't actually used the Tumbleweed template for any games and it's been forever since I used the original 9 verbs, but looking at both the provided pdf and the script, you should be able to use pull the same way as you would push, but replace the word push with pull. Something like:

Code: ags
else if(Verbs.UsedAction(eGA_Pull) {
player.Say("Okay.");
}


I'm guessing part of the issue is that it looks like the pdf cuts off pull in the list of defined actions.

morph100

But what function would I put that under?


function handle_Interact()
{
else if(Verbs.UsedAction(eGA_Pull) {
player.Say("Okay.");
}
}

VampireWombat

#3
Looking at the pdf included with the Tumbleweed template, you should put it under any_click along with Look, Use, etc.

The first room created when I use the template even has an example with all of the verbs listed out, with Pull right after Push.

Code: ags

function oBlueCup_AnyClick() {
  // WALK TO
  if (Verbs.UsedAction(eGA_WalkTo)) {
    Verbs.GoTo();


Code: ags

  // Push
  else if(Verbs.UsedAction(eGA_Push)) {
    Verbs.Unhandled();
  }
  // Pull
  else if(Verbs.UsedAction(eGA_Pull)) {
    Verbs.Unhandled();
  }

morph100

Awesome I got it working now, thanks that's opened up a lot more possibilities to me now!

SMF spam blocked by CleanTalk