Jump to content
NeriodKid

NEW Shop. { Framework 5.0 }

Recommended Posts

I am attempting to make a new shop just like rebel, I am having two problems. 

1. The Rebel Clothing / Weapons doesn't appear when I scroll wheel on the new NPC.

2. The license isn't working.

 

I am very new to ArmA 3 coding, but I used the template based off the Rebel that's already inside the game.

 

I am trying created Advanced Rebel shop with better weapons

removeallWeapons this; this enableSimulation false; this allowDamage false; this addAction[localize"STR_MAR_Rebel_Market",life_fnc_virt_menu,"rebel",1.5,true,true,"","true",5]; this addAction[localize "STR_MAR_AdvancedRebel_C",life_fnc_clothingMenu,"reb",0,false,false,"",' license_civ_rebel && playerSide isEqualTo civilian',5]; this addAction[localize "STR_MAR_AdvancedRebel_W",life_fnc_weaponShopMenu,"rebel",0,false,false,"",' license_civ_AdvancedRebel && playerSide isEqualTo civilian',5]; this addAction[format ["%1 ($%2)",localize (getText(missionConfigFile >> "Licenses" >> "Advanced Rebel" >> "displayName")), [(getNumber(missionConfigFile >> "Licenses" >> "Advanced Rebel" >> "price"))] call life_fnc_numberText],life_fnc_buyLicense,"AdvancedRebel",0,false,false,"",' !license_civ_rebel && playerSide isEqualTo civilian ',5]; this addAction[localize"STR_NOTF_ATM",life_fnc_atmMenu,"",0,false,false,"",' isNull objectParent player && player distance _target < 4 ',5];

 

Share this post


Link to post
Share on other sites

My classes are:

 

License:  displayName = "STR_License_AdvancedRebel"; (license_civ_AdvancedRebel)

Weapons:  class AdvancedRebel_W

Clothing: class AdvancedRebel_C    (  title = "STR_Shops_AdvancedRebel_C"; )

 

Share this post


Link to post
Share on other sites

Your Str_Mar_AdvacedRebel is not found. Did u put it in your string table.

 

If i was you i'd just do this and bypass the whole string table

this addAction["Advanced rebel clothing",life_fnc_clothingMenu,"AdvancedRebel_C",0,false,false,"",' license_civ_rebel && playerSide isEqualTo civilian',5];

Notice how i've deleted localize

 

Also make sure the 3rd argument is looking for the correct class name as your clothing was looking for "reb" and not "AdvancedRebel_C "   

Edited by john123

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...