Dying Light

Dying Light

Nacht Der Untoten
Bandonker®™  [developer] 11 Dec, 2016 @ 12:32pm
Shop code
I’m going to put my shop code here and explain how it is used if anyone is interested in how to implement it in to their mod.
Last edited by Bandonker®™; 11 Dec, 2016 @ 12:34pm
< >
Showing 1-1 of 1 comments
Bandonker®™  [developer] 11 Dec, 2016 @ 12:45pm 
Assortment("Test_1")
{
Buy()
{
PriceMod(0.1);

//ITEMS SET, COLOR SET, MIN, MAX

Set("Firearm_ShotgunAGen", "item_of_the_day", 1) //ITEM OF THE DAY
{
Limited();
}

Set("Firearm_ShotgunAGen", "whites", 1);
Set("Ammo_ShotgunSmall", "whites_only", 99, 99);
}

//Sell()
//{
// PriceMod(0.5); //Amount of price player will receive when selling items
//}
}

("Test_1") is what the shops name is that you have to pick as the seller from the list. An example of a game preset one is ("Shop_Slums_Brecken_Floor")

So, this is the basic layout of what i used. Most of it is straight forward but if you’ve never done anything with code it may not so ill explain.

PriceMod will change the price of what is in the shop

Where the second Set("Firearm_ShotgunAGen", is where you will put the id of what you are trying to sell in the shops as you see Ammo_ShotgunSmall is also there.

This is what i use, there maybe better ways to code this but it works for me. If you know of a better way of coding this please let me know!

If you have any questions i will do my best to answer them!
< >
Showing 1-1 of 1 comments
Per page: 1530 50