Jump to content

eirikub

+Premium Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by eirikub

  1. Thank you. Do you know of any tutorials for this? On how to set up the code, I mean.
  2. When checking if a given answer to an input is correct, I have this line of code: Wherigo.NoCaseEquals(input, answerGeo009) Is it possible to generalise this to Wherigo.NoCaseEquals(input, answer<name of current input>) ? If so, how do I write this correctly?
  3. I have now worked around this problem by not using tasks but instead adding the code to functions.
  4. Thank you. I have tried to fit this code in with my code, but all I got was error messages when I tried to run the cartridge. I will try to describe in detail how I want it to be. 1. Initially, the task is not shown, i.e. not active. 2. The user comes to a zone where he chooses between several categories of tasks (which are fetched from input questions) by the use of commands. 3. The user chooses one of the commands, and the corresponding task is set to active. The question is thus prompted. 4a. If the user gives the correct answer, there is no problem, because there is no use for this task anymore. 4b. The problem is when the user gives the wrong answer. Then I want the task to be set to inactive without anything else happening. 5b. The user gave the wrong answer, so I need to be able to set the task to active again later in the game. In principle, this needs to work over and over again until the user gives the correct answer to that category. This is basically a trivia-like Wherigo with the zones as the fields of a board game.
  5. I have already tried to start the 'On active changed' code with 'if Active is true, execute code, else do nothing', but this did not help. Is there anywhere else that I could add this if or the code as a whole. I think part of the problem is that the code is looping in some kind of way when I try to tweak the 'Active' status inside an event that is dependent on it...
  6. I am trying to build a Wherigo in Urwigo and suddenly met a problem. I have some code that I want to execute when a task becomes active, and only then. Urwigo only lets me add code to an 'On active changed' event, i.e. so that it is set to be executed also when I set 'Active' to false. My problem is that this task needs 'Active' to be disabled and enabled several times and to execute the same bit of code every time it is set to true, but only then. It would be much easier if the events were split into 'On active enabled' and 'On active disabled'. Does anybody have a suggestion for how to solve this?
  7. This sounds like a very exciting project! Is there anything new? It would be really nice to have the source code behind it to make such a cartridge and cache possible here in Norway. EDIT: I see that it has already been published at the website of Wherigo Foundation. Thank you!
×
×
  • Create New...