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

ChangeLoyaltyFac

From AGEWiki

(Difference between revisions)
Jump to: navigation, search
 
Line 7: Line 7:
| example2 = $Northern_Texas;-50
| example2 = $Northern_Texas;-50
| example2-description = Reduces the loyalty in all regions in the area "Northern Texas" by 50%.
| example2-description = Reduces the loyalty in all regions in the area "Northern Texas" by 50%.
 +
 +
Note: The code knows if it has to act on a region or an area by looking at the number of parameters.
 +
One param = act on a region. Two: act on an area.
| param1 = Area
| param1 = Area
| param1desc = String; Alias of an [[area]]
| param1desc = String; Alias of an [[area]]
| param2 = Value
| param2 = Value
| param2desc = Integer; Value in percent for the [[loyalty]] change
| param2desc = Integer; Value in percent for the [[loyalty]] change
-
|
 
-
 
-
 
}}
}}
-
Note: The code knows if it has to act on a region or an area by looking at the number of parameters. One param = act on a region. Two: act on an area.
 

Latest revision as of 11:32, 21 April 2010

ChangeLoyaltyFac

Syntax  

ChangeLoyaltyFac = [Area]; Value

Description

Changes the loyalty in the selected region (if no area given) or area for the selected faction.

Example  

ChangeLoyaltyFac = 10

Increases loyalty in the selected region by 10% (the region will be the last one specified with SelectRegion)  

ChangeLoyaltyFac = $Northern_Texas;-50

Reduces the loyalty in all regions in the area "Northern Texas" by 50%.

Note: The code knows if it has to act on a region or an area by looking at the number of parameters. 
One param = act on a region. Two: act on an area.
 

Parameters

Area

String; Alias of an area

Value

Integer; Value in percent for the loyalty change

Forums