OpenXcom Forum

Modding => Help => Topic started by: wolf619 on March 27, 2018, 05:54:41 pm

Title: How to add weapons to the store?
Post by: wolf619 on March 27, 2018, 05:54:41 pm
I'm playing final mod and I see there is an ak47, uzi and RPG launcher in common but I can't figure out how to add them to the store. I've added them to my starting base but they are blue and you can't buy more. How can I make these guys buyable (and preferably white on the buy screen)??
thanks in advance for your help!
Title: Re: How to add weapons to the store?
Post by: Meridian on March 27, 2018, 06:10:43 pm
find AK 47 in the ruleset and assign it a buy cost different than zero, e.g.:

Code: [Select]
  - type: STR_AK47
    size: 0.2
    costBuy: 1550      # added this
    costSell: 1550
    weight: 9
    bigSprite: 162

you can't change the colors... no idea why would you want that anyway... blue/purple are used for showing items in the store and white is used for items you are ordering at the moment
Title: Re: How to add weapons to the store?
Post by: wolf619 on March 27, 2018, 07:06:52 pm
cool thanks for the quick reply! :)