Updated How to use the shop system?.md (markdown)
commited
commit
68fcfde0fa46bb98827298bc980a5f6873650ce7
... | ... | @@ -2,7 +2,7 @@ Fancade 1.6 adds a new script block called [[Menu Item]] and a currency named [[ |
2 | 2 | |
3 | 3 | Currently the only way to access the shop is by winning or losing. |
4 | 4 | |
5 | # Coins |
|
5 | ## Coins |
|
6 | 6 | To use the coins, just take a number variable and connect it to the `Coins` input in the score block. |
7 | 7 | |
8 | 8 | [[/uploads/Captura_de_pantalla_2021-06-02_143144.png]] |
... | ... | @@ -13,7 +13,7 @@ When you play-test the game you should see the coin counter at the corner of the |
13 | 13 | |
14 | 14 | *Note: When making a game, you can give yourself free coins to test your upgrade shop. They won't count as coins in the actual game though.* |
15 | 15 | |
16 | # Menu items |
|
16 | ## Menu items |
|
17 | 17 | To use the menu items, first take a block out of the inventory, and after placing it in the floor you will see two kinds of inputs: a Picture input and a Variable input. |
18 | 18 | |
19 | 19 | [[/uploads/Captura_de_pantalla_2021-06-02_142338.png]] |
... | ... | @@ -53,23 +53,19 @@ But if you set it to No Limit ( which is behind 100) then the upgrade will have |
53 | 53 | |
54 | 54 | [[/uploads/Screenshot_20210609-192759.png]] |
55 | 55 | |
56 | Price Type: |
|
57 | This changes the price of the upgrade after you've bought it. |
|
56 | Price Type: This changes the price of the upgrade after you've bought it. |
|
58 | 57 | |
59 | "Fixed": |
|
60 | If left on "10 fixed", the price will stay on 10 coins every time you buy the upgrade. |
|
58 | - **Fixed**: the price will stay on the same amount of coins every time you buy the upgrade. |
|
61 | 59 | |
62 | "Linear": |
|
63 | If it is on 10 Linear, then the price will increase by 10 coins each time you buy the upgrade. |
|
60 | - **Linear**: If it is on 10 Linear, then the price will increase by 10 coins each time you buy the upgrade. |
|
64 | 61 | |
65 | "Double": |
|
66 | If set to 10 Double, then the price doubles each time you buy the upgrade. |
|
62 | - **Double**: the price doubles each time you buy the upgrade. |
|
67 | 63 | |
68 | 64 | And you even get a bigger price if you keep clicking after 10 Double! The existing prices are 100, 1k (1,000) and 10k (10,000) and all of them have the same options except for 10k, which only has the fixed option. |
69 | 65 | |
70 | 66 | [[/uploads/Captura_8.png]] |
71 | 67 | |
72 | # Variables |
|
68 | ## Variables |
|
73 | 69 | |
74 | 70 | The [[menu item]] has the input called variable, this input can only accept number variable type inputs and not number value type inputs. Though this maybe the case you can somehow do sorcery with it by using the same variable before the menu item and giving that variable a value. |
75 | 71 | |
... | ... | @@ -79,17 +75,18 @@ The [[menu item]] has the input called variable, this input can only accept numb |
79 | 75 | |
80 | 76 | With this in mind you can try to get more complex and have your shop with items that can be bought/upgraded interestingly. |
81 | 77 | |
82 | # How to use the bought upgrades |
|
78 | ## How to use the bought upgrades |
|
83 | 79 | |
84 | 80 | To use these, take the saved variable (!Var) you sticked into the Variable input and use it in whatever you want. Normally the variables are equal to the upgrade level of the certain upgrade. For example, if used a Max 5 upgrade then the variable can be equal to the values of 0 through 5. If used a On/Off upgrade, the variable can only equal \-1, 0 or 1. If used a No Limit upgrade, the variable can equal 0 through 16777216 because float rounding |
85 | 81 | rounds down the next number. (pedanticism) |
86 | 82 | |
87 | # Limits.
|
|
83 | ## Limits
|
|
88 | 84 | |
89 | 85 | - 6 Pages |
90 | 86 | - 100 Items (including Titles) |
91 | 87 | |
92 | 88 | ## Buggy effects of negative numbers |
89 | ||
93 | 90 | Negative values do work with other settings besides on/off, but they change the button to look like OFF. It still works, and the calculation that generates the price just uses the negative number. |
94 | 91 | For example, 10 \* 2^\-2 for 10 Double and other fractions are rounded down, here to 2. |
95 | 92 | Linear Prices will actually give you coins on level \-2 and less |