Login

Fancade Wiki

Renamed How to use the shop system to /Script/How to use the shop system?

... ...
@@ -52,3 +52,4 @@ Build/Publish.md: Build/Publish & Update.md
52 52
Fall Off.md: Games/Fall Off.md
53 53
Monster Tracks.md: Games/Monster Tracks.md
54 54
Script/How to make music.md: Script/How to make music?.md
55
How to use the shop system.md: Script/How to use the shop system?.md
... ...
@@ -1,84 +0,0 @@
1
Fancade 1.6 adds a new script block called [[Menu Item]] and a currency named [[Coins]]. This page is a guide on how to use them.
2
3
Currently the only way to access the shop is by winning or losing.
4
5
# Coins
6
To use the coins, just take a number variable and stick it to the new coins input in the score block.
7
8
[[/uploads/Captura_de_pantalla_2021-06-02_143144.png]]
9
10
When you play-test the game you should see the coin counter at the corner of the screen. To get coins just increment the variable you used as the coin counter.
11
12
[[/uploads/Captura_1.png]]
13
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
16
# Menu items
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
19
[[/uploads/Captura_de_pantalla_2021-06-02_142338.png]]
20
21
The Picture input is the object that will appear when looking at the according places in the Shop.
22
23
The Variable input uses a variable to save the current state of the upgrade.
24
You will need to use a saved variable (!Var) for this or it'll be completely useless.
25
26
There's also other options when you select the block:
27
28
[[/uploads/Captura_2.png]]
29
30
Name: how the item will be named in the shop.
31
32
[[/uploads/Captura_3.png]]
33
34
If there's no Variable connected to the Variable input then it'll show as a title on a new page.
35
36
[[/uploads/Captura_4.png]]
37
38
Buy Limit: this sets the amount of times that object can be upgraded. For example: let's say you set it on Max 2.
39
40
[[/uploads/Captura_5.png]]
41
42
The corresponding object in the shop system will have to be upgraded 2 times to be maxed out.
43
44
[[/uploads/Captura_6.png]]
45
46
If you leave it as On/Off, you'll be able to upgrade it once, and toggle it on and off, like an extra mode or a cheat code.
47
If the connected Variable is \-1,that means OFF. You can set it to \-1 or 1 to avoid the purchase.
48
49
[[/uploads/Captura_7.png]]
50
51
But if you set it to No Limit then the upgrade will have no limit and you will be able to buy it how many times you want.
52
*Note: "No Limit" comes after Max 100 in that menu.*
53
54
[[/uploads/Screenshot_20210609-192759.png]]
55
56
Price Type:
57
This changes the price of the upgrade after you've bought it.
58
59
"Fixed":
60
If left on "10 fixed", the price will stay on 10 coins every time you buy the upgrade.
61
62
"Linear":
63
If it is on 10 Linear, then the price will increase by 10 coins each time you buy the upgrade.
64
65
"Double":
66
If set to 10 Double, then the price doubles each time you buy the upgrade.
67
68
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
70
[[/uploads/Captura_8.png]]
71
72
# How to use the bought upgrades
73
74
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 N (all natural numbers.)
75
76
# Limits
77
78
- 6 Pages
79
- 100 Items (including Titles)
80
81
## Buggy effects of negative numbers
82
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.
83
For example, 10 \* 2^\-2 for 10 Double and other fractions are rounded down, here to 2.
84
Linear Prices will give you coins on \-2 and less
... ...
@@ -0,0 +1,84 @@
1
Fancade 1.6 adds a new script block called [[Menu Item]] and a currency named [[Coins]]. This page is a guide on how to use them.
2
3
Currently the only way to access the shop is by winning or losing.
4
5
# Coins
6
To use the coins, just take a number variable and stick it to the new coins input in the score block.
7
8
[[/uploads/Captura_de_pantalla_2021-06-02_143144.png]]
9
10
When you play-test the game you should see the coin counter at the corner of the screen. To get coins just increment the variable you used as the coin counter.
11
12
[[/uploads/Captura_1.png]]
13
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
16
# Menu items
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
19
[[/uploads/Captura_de_pantalla_2021-06-02_142338.png]]
20
21
The Picture input is the object that will appear when looking at the according places in the Shop.
22
23
The Variable input uses a variable to save the current state of the upgrade.
24
You will need to use a saved variable (!Var) for this or it'll be completely useless.
25
26
There's also other options when you select the block:
27
28
[[/uploads/Captura_2.png]]
29
30
Name: how the item will be named in the shop.
31
32
[[/uploads/Captura_3.png]]
33
34
If there's no Variable connected to the Variable input then it'll show as a title on a new page.
35
36
[[/uploads/Captura_4.png]]
37
38
Buy Limit: this sets the amount of times that object can be upgraded. For example: let's say you set it on Max 2.
39
40
[[/uploads/Captura_5.png]]
41
42
The corresponding object in the shop system will have to be upgraded 2 times to be maxed out.
43
44
[[/uploads/Captura_6.png]]
45
46
If you leave it as On/Off, you'll be able to upgrade it once, and toggle it on and off, like an extra mode or a cheat code.
47
If the connected Variable is \-1,that means OFF. You can set it to \-1 or 1 to avoid the purchase.
48
49
[[/uploads/Captura_7.png]]
50
51
But if you set it to No Limit then the upgrade will have no limit and you will be able to buy it how many times you want.
52
*Note: "No Limit" comes after Max 100 in that menu.*
53
54
[[/uploads/Screenshot_20210609-192759.png]]
55
56
Price Type:
57
This changes the price of the upgrade after you've bought it.
58
59
"Fixed":
60
If left on "10 fixed", the price will stay on 10 coins every time you buy the upgrade.
61
62
"Linear":
63
If it is on 10 Linear, then the price will increase by 10 coins each time you buy the upgrade.
64
65
"Double":
66
If set to 10 Double, then the price doubles each time you buy the upgrade.
67
68
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
70
[[/uploads/Captura_8.png]]
71
72
# How to use the bought upgrades
73
74
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 N (all natural numbers.)
75
76
# Limits
77
78
- 6 Pages
79
- 100 Items (including Titles)
80
81
## Buggy effects of negative numbers
82
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.
83
For example, 10 \* 2^\-2 for 10 Double and other fractions are rounded down, here to 2.
84
Linear Prices will give you coins on \-2 and less
Fancade Wiki