Coy74
Member-
Content Count
28 -
Joined
-
Last visited
-
Medals
Community Reputation
2 NeutralAbout Coy74
-
Rank
Private First Class
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I'm back... Hallelujah! I come here to thank you because I was able to run both scripts. The error did not appear. 1- I created a new Warlords quest. 2- I entered the scripts 1 at a time and opened the game, it worked 100%. 3- I inserted all the scripts (17 scripts) that were in the previous mission one at a time. It worked in every opening. 4- I opened the game and it didn't give the error anymore. Now I can re-use my subordinates in a restricted way to relocate. I also have the option to recruit subordinates from other allied players. 🙂 It was wonderful Thank you again for your time. soldierXXXX rest assured that I will do my best to learn the basics. Thanks for sharing.
-
It generated the problem when I entered the map (briefing) and then everything was erased (join group, leaving group, dismiss).
-
Hello I will clean all the scripts or do a new mission and use one script at a time to see if an error appears and where there is a code conflict. I'll only do it for the weekend, I'll return on Monday. I thank you very much for your attention and great help. By any chance you have an address on how to learn these codes in a basic step by step, because I have access, but it's practically a copy and paste. If you have any links, thank you, because I don't know where to start.
-
Thank you Pierremgi Probably it's the extra scripts that are already in the mission that are causing conflict. And there are several! I'll be redoing the Warlors without Modes quest now to see that. Only weekend, because for an amateur like me, it's hours of redoing. The good thing is that I practice. Thank you again. The two scripts in this topic are separate and I do them individually.
-
I won't need to because I can join group for these AI. As it was before. correct? line 105 - Invalid number error in expression
-
It's just that I don't know yet whether it's better to recruit only my units or also to recruit units of subordinates of allies. Bugs appear. I need to test it! Your answer to my first question answered that. I will test and get back to you. Thank you for your patience.
-
Yes, I tested it! Now when I leave the group I can no longer get the subordinates to join my group again. The previous script gave this option (leaving group) just by scrolling the mouse. The problem was that after the character died in combat, on respawn, the leaving group function no longer worked. That was the only problem. Now early testing again, I found that every time I join group and then dismiss unit it appears repeated dismissal (2x, 3x, 4x...) every time I join group. This option does not appear on the screen, not even when scrolling the mouse after respawning. Everything is right here! After being killed in combat, the Leaving Group function disappears from the screen without scrolling the mouse.
-
soldierXXXX But is it possible to recruit only subordinate units of character 13 and 14 and subordinate units of allies (players)? If it is possible it is more interesting to recruit my subordinates and subordinates of allies only, but if only the subordinates of character 13 and 14 can also serve. Pierremgi Pierremgi, I'm sorry for the writing. I think I expressed myself wrong, and the translator also doesn't understand popular language. What I meant is that I need the addaction function "leaving group" because after character 13 and 14 are eliminated the function disappears, prohibiting me from recruiting again for troop redeployment. Is it possible to activate again the addaction leaving group function after characters 13 and 14 are eliminated? Note: I spend 1 hour every day trying to understand this language that you do. How can language be different and perform the same functions. I learn and when I learn it will be a great pastime. I appreciate the time you are dedicating to my curiosity and need for learning.
-
Hello again, I did some tests today after work and it's much better in both scripts. Pierremgi, very grateful for the great help. I loved that I can't recruit other subordinate characters from allies, neither allies nor adversaries and their subordinates, only my subordinates. I understood what you meant and I didn't delete the bracket. Your correction worked on both sides (blue and red), it was great! With one detail: after character 13 and 14 are eliminated, from the second respawn the "addaction 'leaving group'" disappears on both sides, making it impossible to leave the group. soldierXXXX, your script is also great! After respawning it works great. I have only 1 problem, I am not prevented from recruiting opponents. Is it possible to limit recruitment to only my subordinates? Note: I'm doing some tests to see if warlords accepts some scripts that I researched and collected on the internet. So far everything is going well. Thank you again!
-
line 25: "invalid number error in the expression" in the option "join Group" and dismiss appears
-
Hello soldier XXXX, Oh yes, I forgot to talk about the script. I didn't know how to use it. And I asked if it's to create SQF file or to add in INIT or playerlocal. Which of these would it be?
-
Hello again, You guys are awesome! It's a shame I don't understand anything about scripts and I won't be able to understand, too old for that, especially in another language. I try very hard to understand this language. It was very good pierremgi, now I can redeploy the same troops by truck to conquered terrain. This way I maintain strategic cities with a good defense. There are two points to correct: 1 - when my character is eliminated the function is lost. How do you solve this? 2 - With this script I have 3 problems: 1- error in line 13, 2- other characters besides player 13 and 14 also perform the function of recruiting and dismissing soldiers, 3- when I leave a created squad, they don't leave completely. When I roll the mouse pointing at the recruits it still appears "dismiss". ------------------------------------ And with this script below I have 1 problem: 1- when I leave a created squad, they don't leave completely. When I roll the mouse pointing at the recruits it still appears "Leave my squad". [] spawn { if !(player in [player13,player14]) exitWith {}; waitUntil {!isNull player}; while {true} do { { _x setVariable ["addedAction",true]; _x setVariable ["oldGrp",if (group _x == group player) then [{grpNull},{group _x}]]; _x addAction [ if (group player isEqualTo group _x) then [{"Leave my squad"},{"Join my squad"}], { params ["_unit","_player","_id"]; _ActMenu = (_unit actionParams _id) select 0; _unit setUserActionText [_id,_ActMenu]; if (_ActMenu isEqualTo "Join my squad") then { _ActMenu = "Leave my squad"; [_unit] join group _player; } else { _ActMenu = "Join my squad"; [_unit] join (_unit getVariable ["oldGrp",grpNull]); }; _unit setUserActionText [_id,_ActMenu]; },nil,0.8,false,true,"side _this isEqualTo side _target" ]; } forEach (allunits select { !(_x getVariable ["addedAction",false]) && !isPlayer _x}); sleep 2; }; }; OBS: Of course, when it comes to playing arma 3 cleanly without cheating. Because otherwise the problems would be many. It shouldn't be easy to script even for experts. You see, when I'm losing the battle to a friend I end up thinking about recruiting a soldier or his leader. I almost lost my friendship the other day. hehehehe
-
Thank you for your attention! Excuse me gentlemen, it would be like: I recruit individually, I dismiss individually.. The script I use works fine. But I don't have a script that I get out of the group that I formed. Like: I dismiss myself from the group I formed. That's it! Thank you Pierremgi, Your script worked great. However, I can't leave the group to form another. Thank you soldierXXXX Exactly, me and another specific player ( player13 (blue), player14 (red) ) have the option to leave the group we created. Thank you once again for the attention received.
-
Thank you soldierXXXX! Is this added in trigger, in the init of the mission or init of the player? ex: I'm using it in warlords. I add soldiers to my group, take them to the conquered city and there I leave the group leaving them to defend the city. Only one character on each side has this script to avoid uncontrolled amount of Ais on the map. According to the script below (I don't remember its author) is it possible to add in ActMenu "the "player" to leave the AI group or enter the non-existent group? [] spawn { if !(player in [player13,player14]) exitWith {}; waitUntil {!isNull player}; while {true} do { { _x setVariable ["addedAction",true]; _x setVariable ["oldGrp",if (group _x == group player) then [{grpNull},{group _x}]]; _x addAction [ if (group player isEqualTo group _x) then [{"Leave my squad"},{"Join my squad"}], { params ["_unit","_player","_id"]; _ActMenu = (_unit actionParams _id) select 0; _unit setUserActionText [_id,_ActMenu]; if (_ActMenu isEqualTo "Join my squad") then { _ActMenu = "Leave my squad"; [_unit] join group _player; } else { _ActMenu = "Join my squad"; [_unit] join (_unit getVariable ["oldGrp",grpNull]); } else { _ActMenu = "Get out squad"; [_unit] join (_unit getVariable ["oldGrp",grpNull]); }; _unit setUserActionText [_id,_ActMenu]; },nil,0.8,false,true,"side _this isEqualTo side _target" ]; } forEach (allunits select { !(_x getVariable ["addedAction",false]) && !isPlayer _x}); sleep 2; }; };
-
Hello everyone, I'm in need of help with a script for the "player to leave a unit there", which seems to me not to exist". I use a script to add Ai to my unit and I need another script for "me" to leave that unit and leave a leader in the group. Is this possible? However, if there should be, if someone can share it I appreciate it. Thank you for your attention