Create account / Log in

How are Mark when Moved, Trails, and GetProp(CurrentZone)

Issues with the Vassal engine.

Moderators: Tim M, uckelman

How are Mark when Moved, Trails, and GetProp(CurrentZone)

Postby Benkyo » February 5th, 2020, 11:04 pm

...interacting?

I have a setup that worked fine until I added Mark when Moved and Trails, at which time it stopped working.

When it worked, a first piece when placed in a zone "Court1" sets a GP "Court1" to a number between 2 and 6; a second piece in that same zone is triggered under certain circumstances when GetProperty(CurrentZone)==2, for example. So "CurrentZone" here returns the GP value set by the first piece.

When I added Mark when Moved and Trails to the second piece, this interaction stopped working.

There seems to be no way to explain this at any level of the Vassal engine that I have access to, so can someone explain how the Mark when Moved and/or Trails traits are affecting this interaction?
Benkyo
 
Posts: 153
Joined: March 13th, 2013, 11:02 pm

Re: How are Mark when Moved, Trails, and GetProp(CurrentZone

Postby Benkyo » February 6th, 2020, 3:07 am

Eh, scratch that query. I can't pin down for sure that Mark when Moved or Trails is the culprit.
Benkyo
 
Posts: 153
Joined: March 13th, 2013, 11:02 pm

Re: How are Mark when Moved, Trails, and GetProp(CurrentZone

Postby Benkyo » February 6th, 2020, 11:46 am

FWIW, the interaction stops working if you put any other GPs into the Court1 zone. I don't know why. It has nothing to do with Mark when Moved or Trails.
Benkyo
 
Posts: 153
Joined: March 13th, 2013, 11:02 pm

Re: How are Mark when Moved, Trails, and GetProp(CurrentZone

Postby Cattlesquat » February 6th, 2020, 3:49 pm

Depending on what the rest of your triggers were doing... one of the "classic themes" of when I've had triggers mysteriously seem to stop firing was when they are part of a sequence that includes a Delete of the piece processing the triggers. If a piece gets deleted before it has processed/received all the triggers it was due to get, it just doesn't process. So then you get into all the details of which-order-to-triggers-process stuff. There are various workarounds like having the trigger that was going to delete the thing instead fire another trigger to delete it later (you know... "get ready", "get set", "delete!")
Cattlesquat
 
Posts: 85
Joined: December 2nd, 2019, 4:57 pm

Re: How are Mark when Moved, Trails, and GetProp(CurrentZone

Postby Benkyo » February 6th, 2020, 7:43 pm

I'm guessing it is because using GetProperty(CurrentZone) only works when CurrentZone looks up a simple string identical to the Global Property (CourtX). If the Zone becomes multiple lines in the buildfile, something goes wrong.
Benkyo
 
Posts: 153
Joined: March 13th, 2013, 11:02 pm


Return to Technical Support & Bugs

Who is online

Users browsing this forum: No registered users and 3 guests