Search the Community
Showing results for tags 'script help'.
Found 2 results
-
Script Help: Random Generating Phrase With Arrays/Displaying As Hints/Code Phrase
Basicology Major posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am pretty new to doing any sort of SQF/init scripting that isnt just frankensteining code together so I would appreciate any help! Simply put, I want to make a fun little roleplay mission where for that mission, a phrase comprised of multiple randomly selected arrays is generated. The Indfor act as captives that are all assigned ONE word from the phrase at random to keep secret. (This is where multiple arrays work better since you can just call the arrays by "word1", "word2", "word3". (I intend to have 4 words, 1 array for each.) And ontop of that I want the entire code phrase to be displayed in its entirety to the Blufor. For this to work, the result of the generation needs to only be prompted once and then have. TLDR: Server generates a code phrase from several arrays. I cant figure out the init code and they usually return as null no matter what I attempt. And to be exact, I dont want people to generate a phrase/array results every time they call; I simply want it generated, stored, and have players access the results. I dont know how efficiently this could be done whatsoever outside of theory crafting nonsensical code. If there is a better alternative please help me out. Please help, Working backwards I am trying to: I inserted the code into initServer.sqf for simplicity; Can execute it as a script later on? Or is a dedicated SQF necessary? This code is almost certainly full of wrong or incorrect syntax/formatting. This is just an outliner of what I am trying. If my method is wrong then please help me goal wise. 2. Have a way to display either a SINGLE result of that array on individual units, preferably just adding a action into their init boxes to get the array/codephrase. I want 2 UserActions I can insert into unit inits; One that displays the codephrase, and one that displays a single array's result- as hints.- 3 replies
-
- script
- script help
-
(and 3 more)
Tagged with:
-
Hello everyone, I currently have just over 4500 hours in Arma 3, 90% of those are in the editor. I LOVE teaching and I love the freedom that BI provides in the editor and scripts. You can make just about anything! I really enjoy helping out people with scripts and helping those who are trying to learn to do it themselves! If you are working on a script and need help, are a beginner and would like some dedicated advice for those questions that always seem to come up when no one is online to ask, hit me up on Discord XianGrim#6219 or on Steam, XianGrim. I will never charge a single penny for any help! A few "conditions" for my help:. I don't "play" Arma anymore (that many hours, I'm burned out from playing but still love the editor!) so I will NOT be downloading any mods. I might be able to help with general questions like, how to add a mod to your server, how to key it etc but probably not specific questions related to scripts dealing with mods. But if you have a question along the lines of, I have X mod and want to spawn Y vehicle at Z position on the map, how do I do that? I CAN answer that! Again, love teaching so please ask as many questions as you like! If I can't help you or don't know the information, I can at least point you in the right direction!