Zombeast250
Member-
Content Count
17 -
Joined
-
Last visited
-
Medals
Community Reputation
3 NeutralAbout Zombeast250
-
Rank
Private First Class
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Previev for store system/safezone -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
so i changed player addAction ["Open Wallet", {................... to this addAction ["Open Wallet", {.............. and the wallet system is now WORKING!!! ,keeping track of purchases and prompt to check wallet for balance (ALL WORKING) the script for the store system seems to do all CHECKS proper (check carry weight &&& money/balance before allowing purchase) i am soo happy THANK YOU DUDE!!! you are the man!!! now to get to work making the store come to life with items @Grumpy Old Man YOU ARE A TRUE LEGEND glad to have met you friend :) Cheers! -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
not sure if you seen this so i will repost :) i am using this in the players init: and get no errors but it does nothing in game -
Zombeast250 started following Grumpy Old Man
-
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@Grumpy Old Man friend i just wanted to say "You Are A LEGEND" thank you for all the help and writing a new store/system for my mod finding good help in any modding community can be difficult Thank You SOOO much for your patience with my Noobness :) with help like you in the community i think we will be fine :) ALSO the script works great TY -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
i placed that into the init on my unit/player and no errors BUT it does nothing in game no hint -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
thank you soo much that was the FIX i only need to know now (with the new money system) how do i call a wallet to check money balance? i was using in my player/unit init : player addAction ["Open Wallet", {hint format ["Money: %1",money];},[],6]; -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
i now see it was calling _exchange i have fixed it to _purchase now i get no errors but THIS:::(takes my money and says hint but no item) -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
im using that last script/ TAG_fnc_moneySystem.sqf that you posted with ::: gear(TentFolded).sqf and in that i have:: _purchase = [player,"rvg_foldedTent",500] call TAG_fnc_buyItem; if (_purchase) then {systemchat "Purchase successful!"} else {systemchat "Purchase failed!"}; and when i try to buy the tent i get this ERROR (i am using Ravage Mod & CBA_A3) -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
i keep thanking you grumpy for the help i do much appreciate the help sry friend to keep you waiting while you are helping me i was up till 6am with this problem till i finally crashed :) so i changed the TAG_fnc_moneySystem.sqf THIS CODE: : : (and made sure it is using _purchase) TAG_fnc_buyItem = { params ["_unit","_item","_cost"]; if !(_unit canAdd _item) exitWith {systemchat "Not enough space!";false}; _purchase = [_unit,- _cost] call TAG_fnc_changeMoney;//notice the negative sign of the cost, will be handled in here instead of having to keep track of it everywhere else if !(_purchase) exitWith {systemchat "Not enough money!";false}; systemchat ["Congratulations on your new %1",_item]; true }; TAG_fnc_changeMoney = { params ["_unit","_amount"]; _currentMoney = _unit getVariable ["TAG_fnc_money",0];//returns 0 money if the unit has non, current amount otherwise _newMoney = _amount + _currentMoney; if (_newMoney < 0) exitWith {systemchat "The transaction would set your balance below 0!";false}; _unit setVariable ["TAG_fnc_money",_newMoney,true]; systemchat "Money balance changed:"; systemchat format ["You now have %1$",_newMoney]; true }; moneycase.sqf (works great as i said and seen in pic +5000) but when i try to purchase the Tent Folded it takes my money & I get this ERROR: -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
moneycase.sqf so this works for my add money pile: TY _object = _this select 0; deletevehicle _object; playsound "scoreAdded"; [player,5000] call TAG_fnc_changeMoney; hint "+$5000"; just need to figure out the wallet: i just got this::: ERROR:::: when i try to buy the Tent Folded in gear(TentFolded).sqf INSIDE :::::: gear(TentFolded).sqf _purchase = [player,"rvg_foldedTent",500] call TAG_fnc_buyItem; if (_purchase) then {systemchat "Purchase successful!"} else {systemchat "Purchase failed!"}; and that calls::::::::: TAG_fnc_moneySystem.sqf code inside that .sqf saays " TAG_fnc_buyItem = { params ["_unit","_item","_cost"]; if !(_unit canAdd _item) exitWith {systemchat "Not enough space!";false}; _purchase = [_unit,- _cost] call TAG_fnc_changeMoney;//notice the negative sign of the cost, will be handled in here instead of having to keep track of it everywhere else if !(_exchange) exitWith {systemchat "Not enough money!";false}; systemchat ["Congratulations on your new %1",_item]; true }; TAG_fnc_changeMoney = { params ["_unit","_amount"]; _currentMoney = _unit getVariable ["TAG_fnc_money",0];//returns 0 money if the unit has non, current amount otherwise _newMoney = _amount + _currentMoney; if (_newMoney < 0) exitWith {systemchat "The transaction would set your balance below 0!";false}; _unit setVariable ["TAG_fnc_money",_newMoney,true]; systemchat "Money balance changed:"; systemchat format ["You now have %1$",_newMoney]; true }; as you can see (from the pic) the money case is adding $5000 then when i got to hit the trigger at the trader/unit/trigger/store it gives the error & still charged me $500 for the Tent Folded trigger init:::::: this addAction ["(Tent Folded) $500","scripts\store_systems\gear\gear(TentFolded).sqf"]; -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you sooo much for your help/re-write of the scripts (if i ever get to publish a mod :) i will credit you for your scripts so with my last script i was using money as the( money NAME) so in the init.sqf i was calling ::: money = 0; to keep track of WALLET on the player/unit init i was using ::: this addAction ["Wallet", {hint format ["$%1",money];},[],6] and on custom money piles/case (to pick up money) model/init: this addaction ["Take Case Of Money","scripts\money\add_moneycase.sqf"]; & finally in the add_moneycase.sqf :::: _object = _this select 0; deletevehicle _object; playsound "scoreAdded"; money = money + 5000; hint "+$5000"; (((i would love to keep a similar system to be able to have money added???)))(((but whatever works))) -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
thank you for your time :) i can see you have put some work into this i was just wondering how do i implement these lines of code / where do i add this as this is a complete change to my system ? -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
also going from a check to exit is definitely not a good way to start??? if !(player canAdd "rvg_foldedTent") exitWith { hint "Not enough space"; -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
so i just took the weapons and ammo away from the player and it only does the........ hint "Not enough space"; so i killed npc and took his vest (to make space) and same problem ??? -
HELP! merge my store/check inventory SCRIPTS
Zombeast250 replied to Zombeast250's topic in ARMA 3 - MISSION EDITING & SCRIPTING
so i have tested that code and it seems to do a check (IF) the player has no items in inventory and display message "hint "Not enough space";" works once player has items in inventory (they spawn with a pistol & ammo) it does not do a check for space and goes to taking players money & still nothing in inventory