Proposal: Traveling
times out fails 1-7 - rt
Adminned at 11 May 2023 12:34:16 UTC
If the Proposal ‘Blaze the Trails’ was enacted add a subrule called ‘Journeys’ to the rule ‘Links’ with the following text:
There is a publicly tracked boolean variable called ‘Allow_Journeys’ that defaults to False.
A Journey has the following attributes:
* A publicly tracked nonempty string called Name
* A publicly tracked boolean value called Ongoing that defaults to False
* A publicly tracked Source that defaults to blank
* A publicly tracked Destination that defaults to blank
* A publicly tracked Mode that defaults to blank
* A publicly tracked number called Passengers that defaults to 0If there are two distinct Journeys sharing the same Name, the ‘Allow_Journeys’ variable automatically reverts to False if it is set to True.
If ‘Allow_Journeys’ is set to True and the Ongoing of atleast one Journey is set to False, any City Architect may perform the Commence_Journey action. The City controlled by the City Architect performing a Commence_Journey action is called the Conductor for the purposes of said action.
Commence_Journey is an atomic action with the following steps:
* Make a blog post or comment saying “Commencing journey named (Name of J)” where J is a Journey whose Ogoing is set to False
* Set the Ongoing of J to True
* Set the Mode of J to an existing Transit Link T which is between the Conductor and another City C
* Set the value of Passengers of J to be the minimum of the three quantities which are the Capacity of T, the Population of the Conductor and the Population of C
* Roll a DICE2. If the result of the die roll is 1, set the Source of J to be the Conductor and the Destination of J to be C, otherwise set the Source of J to be C and the Destination of J to be the Conductor
* Reduce the Population of the Source of J by the Passengers of J.A Journey is called overdue if the Mode of the Journey is a Trasit Link and the Ongoing of the Journey has been continuously set to True for atleast as many hours as the Length of the Mode of that Journey.
If atleast one Journey is overdue, any City Architect may perform the End_Journey action which is an atomic action with the following steps:
* Make a blog post or comment saying “Ending journey named (Name of J)” where J is an overdue Journey
* If the Destination of J is set to a City, increase the Population of that City by the Passengers of J
* Set all the attributes of J except the Name of J to their default values.
The enactment of this proposal will automatically create a Journey with Name ‘J1’.
Trying to come up with a mechanism for traveling. A provision has been made so that people cannot suddenly start using this mechanic.
summai:
I am a bit skeptical about the “Commencing/ Ending journey named (Name of J)” lines since they feel open to fall prey to scams. Can anyone suggest an improvement?