-
Content Count
130 -
Joined
-
Last visited
-
Medals
Everything posted by Rosso777
-
Does anyone have any idea on how I can make this dynamic location invasion occur in a specific location? Here is the original code:
-
Hoping someone can point me in the right direction, even if it's by way of a relevant thread that can help me figure this out. I've tried to many different addons and scripts for implementing a wounding system to my private dedicated Exilemod server. No dice. Nothing works correctly. I am wondering if there is a way to essentially roll a virtual dice when a player gets hit. Ignore calibers/explosions, etc., just simply put: If a player gets shot, the dice rolls. Out of 100, if it rolls between 1-10, the player dies. 11-30, the player goes unconscious. 31-50, the player's health drops below 50% and goes prone until healed full. 51-100, the player's health drops to 50% with no other consequences. It makes sense that the total should equal 100 and at any point, I can adjust the measures as I see fit. I articulate this all so specifically so someone can say, "No, this part won't work" or "you're better off trying it like this" and so on. I know I've seen randomized "dice" scripting somewhere in addons, at least I am pretty sure that's what I was looking at. Any help is appreciated.
-
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
If misunderstanding the sleep command is the only real error there (so far), than I am one happy camper! Thanks guys! I am going to test this tonight when I get home. Additional learning: So when building something like these spawns, you can essentially configure them how you want as long as you refer back to the _select correctly? Aside from simplicities like units or values, what other types of parameters can go in there? EDIT: Okay, I am now realizing that this has turned into a private lesson thread. And, as much as I am absolutely loving this process, I am sure you guys are exhausted with such tasks. I appreciate all the help, fellas. I will do my best to keep researching things on my own instead of sending constant feedback loops. -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am going to translate to ensure I understand: By that code example, THIS (an AI, for example) is stopped for 3 seconds. A message then appears in systemChat that reads: "THIS waited 3 seconds" So the {sleep is placing a hold on the unit (identified by the _this). _this select 0 is referring back to the THIS in the initial bracket set. _this select 1 is referring back to the 3, which is a variable that WE chose to set. If we were to establish another parameter (wait... is that initial bracket [this, 3] the params? Am I actually understanding?) and add Joe to it, it might go something like this: [Mark, 13, Joe] spawn { sleep (_this select 1); sideChat format ["%3 is watching %1 do nothing for %2 seconds!", _this select 2, _this select 0, _this select 1];}; Goal: Sidechat: "Joe is watching Mark do nothing for 13 seconds!" -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Where do the select 0 and select 1 come in? Where is that information coming from/going to? -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@wogz187 Dude... this is awesome. It’s so spot on and unlike EVERY bit of ridiculous code-garbage that I was trying to piece together (because I know virtually nothing, I merely conceptualize). Skimming through this, I have so many questions about what specific things mean. Oh, and after giving up on the above code we were initially discussing, I began delving into functions and eventhandlers (per your recommendation) and quickly realized I was WAY out of my league. So... I began messing around with the randomizing pseudo-damage handler idea from earlier. Now, i know, I know... I don’t need all this sqf garbage and it overcomplicates things, but it seems to make more sense to me at this point in my learning. My thought is: learn the basic concept of HOW things work (cause and effect, links from IF to THEN), then clean it up with Functions. Then figure out how EventHandlers work into the process. Or vice verse if that’s the case. And quite frankly I’ve been afraid to admit all this because I didn’t want it to come across as me being ungrateful or stubborn— it’s just how my brain seems to process all this stuff at this point. Here is what I've been working on: So once I have these "connections" working to react accordingly with player damage received, then my next step is to ensure that the corresponding .SQF file works correctly. Once I am successful, the goal will be to rewrite one of the above sections (if-then) into a more clean version without using an SQF. -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Still chipping away at this slowly. Whatever I come up with, I will post; even if just for future-reader knowledge. -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Okay, I think I’m beginning to understand the system. So @wogz187, by your code logic example above, we’re turning player damage (received) OFF, then we’re essentially ‘choosing’ which hitParts we want to consider in the overall ‘rolling of the dice’. Is this right? -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
So that means they might not all be active, but are options to be used? -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you. Wow, so all of those items in the examples are hit boxes already configured within Arma? -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The way we are talking about spines and left/right feet; are these actual hit boxes on players? Is there a list somewhere that I can work off of for options? -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@wogz187 does any of this change if it’s on a dedicated server? -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@wogz187 wow. Okay my first question is: are you a teacher or instructor? I am, and your way of articulation and guidance is refreshing; especially in an arena such as this. my second question is: this should all be able to be done in one file, correct? I very much appreciate your time and effort here; I’m going to dig into this and I’ll update you as I go. Thank you! -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I just want to make sure that I understand what you're telling me. Are you saying that I can't use the PlayerOnHit file, but I need to be doing all this inside a "PlayerOnHitPart" file? (Filenames may not be exact but hopefully you see what I mean). -
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
@wogz187 This is awesome, man, thanks for leading me in the right direction. I do love to learn! 🙂 Maybe someday I can implement my own ideas. -
This was the solution. Thank you!
-
Can't seem to fill water bottles at pumps, not sure why. My config reads as such: class CleanWaterSource { name = "Water cooler"; models[] = { "watercooler", "waterpump_01_f", "wellpump", "Land_Pumpa", "CUP_A1_pumpa", "CUP_A2_pumpa", "CUP_A2_wellpump" }; }; Any ideas?
-
Randomized Damage / onHit
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks, Wogz! It seems a bit over my head but I love the challenge. I am going to dig into it now; I will post what I come up with for some feedback. Edit: @wogz187 Does this seem like the direction I should follow? https://community.bistudio.com/wiki/selectRandomWeighted Edit 2: Here is my thought process: In the player's onHit file, I can use something like: _scriptFile = ["unconscious.sqf", "brokenlegs.sqf", "injured.sqf", "death.sqf"] selectRandomWeighted [0.15, 0.3, 0.5, 0.05 ]; execVM _scriptFile; and then script an .sqf for each instance. Thoughts? -
My Zeus was working fine, and suddenly it just stopped. I am wondering if there is an error here. Can anyone see any problems here? (This is from my mission.sqm) class Item0 { dataType="Logic"; class PositionInfo { position[]={13095.38,0.90416986,8473.166}; }; id=0; type="ModuleCurator_F"; atlOffset=-5.9604645e-008; class CustomAttributes { class Attribute0 { property="ModuleCurator_F_Owner"; expression="_this setVariable ['Owner',_value,true];"; class Value { class data { class type { type[]= { "STRING" }; }; value="765611979772xxxxx"; (my Steam ID) ( I have also tried #adminLogged, to no avail) }; }; }; class Attribute1 { property="ModuleCurator_F_Forced"; expression="_this setVariable ['Forced',_value,true];"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=0; }; }; }; class Attribute2 { property="ModuleCurator_F_Name"; expression="_this setVariable ['Name',_value,true];"; class Value { class data { class type { type[]= { "STRING" }; }; value=""; }; }; }; class Attribute3 { property="ModuleCurator_F_Addons"; expression="_this setVariable ['Addons',_value,true];"; class Value { class data { class type { type[]= { "SCALAR" }; }; value=2; }; }; }; nAttributes=4; }; }; EDIT: I just noticed this in the report log: ""SC/log: ERROR: Ross is trying to create a Curator logic ModuleCurator_F."" Any ideas?
-
I am trying to add an action so that when you are looking at another player who has 50% hp, you can use a first aid kit to heal them. I can get the action to call correctly if I set the condition to "true", but for some reason, the way I have set these conditions is not working. Can anyone see why? class BuddyAid: ExileAbstractAction { title = "First Aid"; condition = "((ExileClientInteractionObject getVariable [damage player > 0.1]) && (magazines player find 'FirstAidKit' >= 1))"; action = "_this call Bones_fnc_HealTarget"; };
-
CfgInteractionMenu - Buddy Aid
Rosso777 replied to Rosso777's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
I am running an Exile server, not sure where I would implement that. It sounds like a much easier avenue, though. Is that something I can add to mission file's init.sqf and then it will apply to all players? -
CfgInteractionMenu - Buddy Aid
Rosso777 replied to Rosso777's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
condition = "((ExileClientInteractionObject getVariable (damage > 0.1]) && (magazines player find 'FirstAidKit' >= 1))"; ? I am having a helluva time trying to find a clear thread about getting the player's damage values. -
Looking for a [How to] Edit Map Source
Rosso777 posted a topic in Exilemod (Unofficial)'s General Discussion
I’m really just looking for a link to a tutorial on how to edit/build maps. For instance, if I wanted to edit Chernarus and make Chernarus Redux 2.0 (I don’t... CHR nailed it), I know I’d need some Arma 3 dev tools and all; but I also need a rough tutorial on how to get started. Any help is appreciated! -
Triggers and Hints.. WTF
Rosso777 replied to Rosso777's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Going to mess with this later today, thanks Pierre. I am also digging through your Advanced Modules from Steam and... damn man... you're impressive. This is amazing stuff. Hoping I can learn by digging through this and seeing how you did things. -
I have been trying for DAYS to get triggers/hints working in my dedicated server (everything works perfectly in the editor, but no triggers/hints on my dedi server). Ideally I would like the player to activate a trigger (making an AI standing there talk in chat with unit globalChat "Hello";) , but even when I spawn an AI in the editor and then add a HINT comment to the activation of each waypoint, nothing. I don't understand what I am missing. I have scoured several forums for nearly a week, but nothing seems to work. ANY and ALL help is greatly appreciated, as I have simply no idea wtf is wrong. Here is my test script so you can see what I am looking at; this is the AI walking to different waypoints and then SHOULD either say a HINT or a GLOBALCHAT comment. He spawns and follows his path, but no text. I have called this file from init, initplayerlocal, and initserver... by using [] execVm "trigger.sqf"; no success.