Condition: Has variable

ConditionNo. 9147

Synopsis

Choose the type, the variable and who is checked. A variable with value 0 still exists: only Effect: Remove variable removes it. It is the way to represent keys, passes or completed quests, which you hand out with Effect: Give variable.

Step by step

Check that you have a key

Boxes you need

  1. TriggerTrigger: Say something
  2. TriggerTrigger: Step on an object
  3. ConditionCondition: Has variable
  4. EffectEffect: Show message
  5. EffectEffect: Give variable
  1. Stack “Says something” 9111, this condition and “Show message” 9185. Set the trigger to “hello”, exact match; set the effect to “Matched”, targeting the triggering user.
  2. Save a user variable 9291 named “key”, with “Has a value” and “While the user is in the room”. In another stack, “Walks on object” 9117 selects a rug and “Give variable” 9237 gives “key” to the triggering user, initial 0, without overwriting.
  3. In this condition choose Users, select “key” and use the triggering user. Leave the first matching option selected and save everything.
  4. Say “hello”, step onto the rug and say “hello” again.

Result: The message starts appearing after receiving the key.

Settings

Settings window of “Condition: Has variable”
This box's window in the game (Spanish client).

Notes

  • A variable with value 0 still exists. “Remove variable” deletes it.

Related