Working with foreign Counters

Is there a way in which you can access a counter value in another running case?

Let's try launching a second case in another window and work between these two.

Secondary Counter case

Remember to watch for a secondary window or tab to be launched by the above link.

Part of this exercise was to test and see if you could pass arguments/parameters between cases via shared Counter values. In this example, the Counter of interest has the same name as iFlag counter on MapID=44, 'Counting on You', for test of linked Counters. It does not work when the Rule points to CR:34 instead of CR:54 (that is the foreign counter instead of the local counter) - so at this time, counter sharing does not work. Might be worth considering for future. 

Counters and Rules - Main Menu111
End Session and View Feedback
  • iFlag ()
  • iFloat ()
  • iText ()
  • iNode ()
  • iCount ()
  • iPulse ()

Map: Counting on You!! (44)
Node: 2134
Score:

reset

OpenLabyrinth
OpenLabyrinth is an open source educational pathway system

Review your pathway

  • Étape 1
  • Working with foreign Counters

Reminder

empty_reminder_msg

FINISH

Time is up

Debbuger window

iFlag =

Simple on/off flag. 0 = false 1 = true Usually hidden

Previous_value:

iFloat =

Floating point value

Previous_value:

iText =

String values in a counter

Previous_value:

iNode =

Useful for keeping track (in a crude manner) which node the learner is on currently.

Previous_value:

iCount =

Integer counter.

Previous_value:

iPulse =

Integer for heart rate

Previous_value: