arma2:editor_modules:coin
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| arma2:editor_modules:coin [2009/05/31 16:55] – created coin initial page. snakeman | arma2:editor_modules:coin [2024/08/01 20:57] (current) – links added. snakeman | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Construction Interface ====== | + | ====== |
| + | |||
| + | [[https:// | ||
| Construction Interface (CoIn) is universal system for base construction primarily made for Warfare 2. | Construction Interface (CoIn) is universal system for base construction primarily made for Warfare 2. | ||
| Line 19: | Line 21: | ||
| Set variables to BIS_coin_# with desired values | Set variables to BIS_coin_# with desired values | ||
| - | * name = < | + | * BIS_COIN_name |
| - | Example: BIS_coin_0 setvariable ["name"," | + | Example: BIS_coin_0 setvariable ["BIS_COIN_name"," |
| Default value: "" | Default value: "" | ||
| - | * rules = < | + | * BIS_COIN_rules |
| - | Example: BIS_coin_0 setvariable ["rules", | + | Example: BIS_coin_0 setvariable ["BIS_COIN_rules", |
| - | Default value: [] | + | Default value: [] |
| - | * categories | + | * BIS_COIN_categories |
| - | Example: BIS_coin_0 setvariable ["categories", | + | Example: BIS_coin_0 setvariable ["BIS_COIN_categories", |
| Default value: [] | Default value: [] | ||
| - | * items = < | + | * BIS_COIN_items |
| Array cointains building class, it' price in array (first element is funds' ID - see below, second is actual price; if only price is set, funds' ID will be 0) and display name | Array cointains building class, it' price in array (first element is funds' ID - see below, second is actual price; if only price is set, funds' ID will be 0) and display name | ||
| Line 40: | Line 42: | ||
| Example: | Example: | ||
| <code cpp> | <code cpp> | ||
| - | bis_coin_0 setvariable ["items", | + | bis_coin_0 setvariable ["BIS_COIN_items", |
| [ | [ | ||
| //--- Class, Category, Cost or [fundsID, | //--- Class, Category, Cost or [fundsID, | ||
| Line 51: | Line 53: | ||
| Default value: [] | Default value: [] | ||
| - | * funds = < | + | * BIS_COIN_funds |
| - | Example 1: BIS_coin_0 setvariable ["funds"," | + | Example 1: BIS_coin_0 setvariable ["BIS_COIN_funds"," |
| - | Example 2: BIS_coin_0 setvariable ["funds", | + | Example 2: BIS_coin_0 setvariable ["BIS_COIN_funds", |
| Default value: 0 | Default value: 0 | ||
| - | * fundsDescription | + | * BIS_COIN_fundsDescription |
| - | Example 1: BIS_coin_0 setvariable ["fundsDescription"," | + | Example 1: BIS_coin_0 setvariable ["BIS_COIN_fundsDescription"," |
| - | Example 2: BIS_coin_0 setvariable ["fundsDescription", | + | Example 2: BIS_coin_0 setvariable ["BIS_COIN_fundsDescription", |
| Default value: " | Default value: " | ||
| - | * areasize | + | * BIS_COIN_areasize |
| - | Example: BIS_coin_0 setvariable ["areasize", | + | Example: BIS_coin_0 setvariable ["BIS_COIN_areasize", |
| - | Default value: [150,50] | + | Default value: [150, |
| - | * actionCondition | + | * BIS_COIN_actionCondition |
| + | |||
| + | Example: BIS_coin_0 setvariable [" | ||
| + | Default value: true | ||
| - | Example: BIS_coin_0 setvariable [" | ||
| - | Default value: true\\ | ||
| Note: Use with caution, because action is calculated every frame and complex condition on multiple construction sites can take large amount of reserved scripting time. | Note: Use with caution, because action is calculated every frame and complex condition on multiple construction sites can take large amount of reserved scripting time. | ||
| - | * onStart | + | * BIS_COIN_onStart |
| + | |||
| + | Example: BIS_coin_0 setvariable [" | ||
| + | Default value: {} | ||
| - | Example: BIS_coin_0 setvariable [" | ||
| - | Default value: {} | ||
| Note: Warning! System starts only after code is finished. | Note: Warning! System starts only after code is finished. | ||
| - | * onSelect | + | * BIS_COIN_onSelect |
| - | Example: BIS_coin_0 setvariable ["onselect", | + | Example: BIS_coin_0 setvariable ["BIS_COIN_onselect", |
| Default value: {} | Default value: {} | ||
| - | * onPurchase | + | * BIS_COIN_onPurchase |
| + | |||
| + | Example: BIS_coin_0 setvariable [" | ||
| + | Default value: {} | ||
| - | Example: BIS_coin_0 setvariable [" | ||
| - | Default value: {}\\ | ||
| Note: Warning! System continues only after code is finished. | Note: Warning! System continues only after code is finished. | ||
| - | * onConstruct | + | * BIS_COIN_onConstruct |
| - | Example: BIS_coin_0 setvariable ["onconstruct", | + | Example: BIS_coin_0 setvariable ["BIS_COIN_onconstruct", |
| Default value: {} | Default value: {} | ||
| - | * onRepair | + | * BIS_COIN_onRepair |
| + | |||
| + | Example: BIS_coin_0 setvariable [" | ||
| + | Default value: {} (Building is immediately repaired) | ||
| - | Example: BIS_coin_0 setvariable [" | ||
| - | Default value: {} (Building is immediately repaired)\\ | ||
| Note: Warning! System continues only after code is finished. | Note: Warning! System continues only after code is finished. | ||
| - | * onSell | + | * BIS_COIN_onSell |
| + | |||
| + | Example: BIS_coin_0 setvariable [" | ||
| + | Default value: {} (Building is immediately sold) | ||
| - | Example: BIS_coin_0 setvariable [" | ||
| - | Default value: {} (Building is immediately sold)\\ | ||
| Note: Warning! System continues only after code is finished. | Note: Warning! System continues only after code is finished. | ||
arma2/editor_modules/coin.1243788932.txt.gz · Last modified: 2009/05/31 16:55 by snakeman
