1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

How do you add shops to your mod? [solved]

Discussion in 'Modding Help' started by mcrifel, Oct 19, 2014.

  1. mcrifel

    mcrifel Haxor Staff Alumni Tester
    1. MIST

    Messages:
    582
    So I am working on this mod and I wanted to add some old buildings (seed nursery and dorm). But I tried many things and every time i tested it it didnt show up in the building menu. So how do i add shops?
     
  2. Skinney

    Skinney THD Team THD Team Forum Moderator Tester

    Messages:
    468
    If you look in Building.as you can add shops to it very easily, as shown below just add a new block with the right information.
    Code:
    this.set_Vec2f("shop menu size", Vec2f(4,4));
    // make sure this is large enough to accept your new shops
    
    {
        ShopItem@ s = addShopItem( this, "title", "$icon$", "blob name", "description" );
        AddRequirement( s.requirements, "blob", "mat_wood", "Wood", COST_WOOD_FACTORY );
    }
     
  3. mcrifel

    mcrifel Haxor Staff Alumni Tester
    1. MIST

    Messages:
    582
    Alright thanks Skinney!