Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
2. Depending on how you want them to obtain these unlocks you can do it in two ways. The first is with events which works well if they can only get the unlocks in order like an upgrade system. Just have conditional branches inside each other that check for the next tier of unlock. In each of the else sections you put the shop command with all of the available merch.
As for the other method it would be to use a script. This one has the benifit of being able to add items based on the upgrade independantly of the others. For example having the Fruit and Meat upgrade, but not the Toys upgrade would be possible so players could pick and choose what items they want their store to sell before they eventually get them all. This also means that if you have upgrades that could potentially be missed you wont have to have your player back track all the way to wherever it is before they can use any of the upgrades after it. I think there might be a script already made for this particular purpose, but I haven't seen it recently.
If you want to make it yourself this take a look at the code below (Warning Dificulty is Increasing)
First the type is either 0(Items), 1(Weapon), or 2(Armor).
The ID of the item is simply the item's Number.
Price_override is either 0(No) or 1(Yes) and indicates if you want to change the item's price
And then the Fourth part is for the adjusted price which should be left off if you aren't adjusting the price.
Thus a Potion selling for an adjusted price of just 25G is [0,1,1,25]
One last thing, If you want your player to be able to sell things to the shop thenchange that "true" to "false" as that is the "Purchance Only" flag that you would normally check or uncheck in the shop command.
Alright to add an item dynamically based on a collected upgrade (I'll use a switch that can be turned on for my example, but you can use a key item or something else by changing the condition needed)
Adding Full Potion Dynamically