Due to a sudden burst in spammer activity, account creation has been temporarily disabled. Sorry for the inconvenience to any new potential contributors.

EvalTransportLvl

From AGEWiki

Revision as of 15:58, 2 September 2010 by Lodilefty (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

EvalTransportLvl

Syntax  

EvalTransportLvl = <Operator>;<Value>;<Both / OnlyFuncRR / OnlyDestRR>

Description

Evaluate the Transportation Level of the currently selected Region

  • If you are doing a test with a railroad level, then you can test its state with OnlyFuncRR or OnlyDestRR (if you don't care, then Both).
  • If you are doing a test on a road, then you use 'both' (= don't care...)
  • the alias to transport levels are:
// *** Transport ***
$NoNetwork = 0
$Track = 1
$Tracks = 1
$Road = 2
$Roads = 2
$RailRoad = 3
$DRailRoad = 4
$Major_Road = 5
$MajorRoad = 5
$DestRailroad = 131
$DestDRailRoad = 132
BUT you should never use the destroyed RR aliases here, the code does a bit of transformation related to OnlyFuncRR and OnlyDestRR

examples

Testing that the region has a functioning railroad
EvalTransportLvl = >=|$RailRoad|OnlyFuncRR
Testing that the region has a destroyed railroad
EvalTransportLvl = >=|$RailRoad|OnlyDestRR
Testing that the region has a railroad, functioning or destroyed
EvalTransportLvl = >=|$RailRoad|Both
Testing that the region has a road but no railroad
EvalTransportLvl = <|$RailRoad|Both
Testing that the region has no road
EvalTransportLvl = =|$NoNetwork|Both
Major Road is not used in games except in NCP and WIA
and a game using Major Roads can't use Railroads.



 

Parameters

<Operator>

One of: =, <, >, <=, >=

<Value>;

Integer (0 - 999)

<Both / OnlyFuncRR / OnlyDestRR>

Any one value is required. Tests for Functioning, non-functioning (destroyed) or both.

Forums