Darkstrom
Registered:1410307501 Posts: 2
Posted 1410308124
Reply with quote
#1
Hello all: I've been using ARTEMIS as a platform to study teams and how people work together (I am an Industrial-Organizational Psychologist finishing my Ph.D). I have previously used ARTEMIS to great effect in studying team processes. However, with the new version of ARTEMIS we are trying to develop a mission script that can add greater experimental control so we can limit the amount of potential confounds. However, we have been having trouble creating a respawn script that will respawn teams if they explode. Is there anyone who can help me understand how I can make them respawn if they die? Also, can anyone explain why, when I manually respawn the ship from the menu screen, they are no longer allied with their previously allied space stations? Since the teams we are working with are not dedicated teams, dying is a major issue we're trying to address to make ARTEMIS work better as an experimental simulation. Thanks very, very much for any assistance!
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1410369264
Reply with quote
#2
Just for starters, I would say the best way you can do this is to pre-empt the destruction sequence and simulate it for yourself. For instance, if shieldStateFront or shieldStateBack hit zero, you can assume the ship is going to be destroyed soon and move the ship out of danger. You could set a timer so the ship would receive some damage before being pulled out of combat. Then you can popup a message to all consoles to let the players know they were "destroyed" and maybe disable Sensors for a time so the LRS goes black. You would have to tweak the timer to find the sweet spot between delaying too long and the ship being destroyed, and popping out too fast while the crew are dealing with the system damage. Determined crews could probably push the limits (particularly if you reset the timer if shields go back above 0) so they are killed quickly due to a lot of system damage. But it's a possibility. For the first ship, it might even be possible to make the ship "immortal" by resetting all ship's systems to 100% manually. I've never tried that, though, and if you use multiple ships, you can't access the systems on any ship but the first. (The systemDamageBeam property and the like are for enemy ships, player ships use the set_player_grid_damage command) Failing that, once the ship is out of danger, it should be simple enough for the crew to get all systems repaired and working again. If you respawn in the same spot each time, they may wish to hurry up and move from that location so they don't draw enemies to their location. You could just respawn in a random location, and make sure it's far enough away from all enemies. I don't know why the issue with space station "side" not matching the ship after respawn happens, but it sounds like a bug. I can understand if you're locked into using the Mission Mode, but Co-Op mode provides exactly the functionality you want. A ship that is destroyed is respawned, and the only way to lose the mission is for all stations to be destroyed. That's something that should probably be included in Mission Mode. (Really, in Mission Mode the game shouldn't end unless you set up an endgame condition with the script, but the ship being destroyed is apparently an assumed end condition)
Darkstrom
Registered:1410307501 Posts: 2
Posted 1410407471
Reply with quote
#3
Thanks for getting back to me! We were concerned the manual respawn was a bug as well. Do you know if there is a way to standardize the number of enemies on the Co-Op setting? One thing I noticed is when playing Siege anyway (on the old version) at higher difficulty levels (we chose 1 as an introduction and Dif 4 as the second mission) the number of enemies that appeared was largely random. If I could make Co-Op standardized in some way then that would definitely be the answer to my problem! Thanks again
Captain
Registered:1375484560 Posts: 1,026
Posted 1410410347
Reply with quote
#4
@Darkstorm. If you create a GM mission script (or use one that's created) you could control the exact number of enemies, there types, and of course the timing of their arrival.
__________________ Captain USN Liberator "When I lost my rifle, the Army charged me 85 dollars. That is why in the Navy the Captain goes down with the ship."
Alexey_Andronov
Registered:1376558464 Posts: 78
Posted 1410423595
Reply with quote
#5
AFAIK, to "die" the player ship has to lose all its nodes. Correct me if I'm wrong. If I'm correct, then you can make player ship invulnerable by having an event that constantly repairs some of the ship's systems. You can repair less important systems (sensors, impulse) so that it won't give the player advantage in combat. If you keep one node of Impulse system and two nodes of Sensors system always repaired, then it would take at least 3 simultaneous hits to destroy player's ship after it has been already almost annihilated. Which should never happen because as you approach ships they shoot at you as soon as you enter their range, thus they rarely stay completely synced. Then, if the player ship is brought to near death, you'll have enough time to teleport them away (via GM console) and explain what happened and how storyline continues. You should also have a GM script for fully repairing player ship so that they don't have to wait for minutes at the station. There is another option: have an event that checks for every ship system aside from sensors and impulse being completely destroyed, and when it is so, teleports them away. This would be an automatic "rescue" system. Finally, they will still die if they hit a mine or nuke themselves (or their ally nukes them) but this is something that should be way easier to avoid and I suppose you can afford restarting in that case (I mean mines are easy to avoid you just have to look at the map...)
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1410447178
Reply with quote
#6
I believe the ship has to lose a certain percentage of its nodes, including passageway nodes that have no systems. It's not all of them, but over half, I think. Unfortunately, you cannot check ship's systems, only set them. I think the "repair the damage as it is done" strategy will still work, you just need to fix enough systems that the ship is always above 50% damage. That might take more of them than just Sensors and Impulse, though. (Letting Beams, Torps and Warp die would still be enough to let the players know their goose is cooked )
ryleyra
Registered:1399599588 Posts: 3,214
Posted 1410496827
Reply with quote
#7
Okay, a little testing has shown that the game neither ends when the player ship is destroyed, nor does the ship respawn. Instead, you are kicked out to the game select screen and must reenter. To end the game when the ship is destroyed, just use the following: Mission Editor Format Conditions Object "Artemis" does not exist Actions End Mission XML Format <event> <if_not_exists name="Artemis" /> <end_mission /> </event> To respawn the ship when it is destroyed, all you have to do is this: Mission Editor Format Conditions Object "Artemis" does not exist Actions Create player at point (50000,0,50000) with name "Artemis" XML Format <event> <if_not_exists name="Artemis" /> <create type="player" x="50000" y="0" z="50000" name="Artemis"/> </event> Of course, you should have created Artemis in the first place in the start command, with the same command you use here. If you wish to create other ships (Intrepid, Hera, etc) first test if they exist and set a flag to record that a client created the ship. (Do NOT use the create player command to create Intrepid and the rest. The create player command can't create more than one ship) Then, if the flag is set and the ship does NOT exist (as above) create it. Note you can only do this with named ships. If the players rename their ship, you'll have to use that name in the script instead of "Artemis". The "Immortal Artemis" trick also works perfectly. (For one ship only) All you have to do is preserve 2 of each system node, and the ship will be indestructible. Damage will be done to the hallways, but it won't spread to the interior of the ship because the auto repaired systems will block the damage. In some cases, more than 2 of each system were being repaired, I think this is because some nodes were the same distance away from the front of the ship. A short example would be: Conditions (Leave this blank) Actions Set player ship's damage value to 0% for node number 0 of ship's "Primary Beam" system counting from the front Set player ship's damage value to 0% for node number 1 of ship's "Primary Beam" system counting from the front Then repeat the two actions above for all of the seven other systems. I think that if you protect Primary Beams, Manuever, Sensors and Impulse, that should be sufficient to protect the rest of the ship. (Beams and Impulse will protect the front and rear, and Manuever and Sensors will protect the sides, at least for the Light Cruiser) I think that more than 75% of the nodes, including hallways, have to be destroyed to destroy the ship. Although I'm unsure of the exact number, a Light Cruiser was destroyed if the whole saucer plus part of the neck, or the whole rear section and about 2/3 of the saucer was destroyed.
Fish Evans
Registered:1381528881 Posts: 383
Posted 1410559949
Reply with quote
#8
Quote:
Originally Posted by Darkstrom However, we have been having trouble creating a respawn script that will respawn teams if they explode. Is there anyone who can help me understand how I can make them respawn if they die?
On multi ship sims, not posible to forcably re-spawn blown up ships, you can set up code to move a respawned ship to a team location or what have you.Quote:
Originally Posted by Darkstrom Also, can anyone explain why, when I manually re spawn the ship from the menu screen, they are no longer allied with their previously allied space stations?
When the ship re spawns everything about that ship defaults to standard start settings, Ammo, Shield, Energy and the "side" the ship is on. You will need to detect the re-spawn of the ship and re-assign the side you want it on. In my BvB Capture The Buoy script the logic I used was somethign along the lines of 1) An event at start of the match to detect what ships are present when the match starts setting a variable for each ship to 1 2) An event that is triggerd if a ship that has a 1 value no longer exists setting it to 2 (the ship has been destroyed) 3) An event that detects if a ship with a 2 value does exist (it has re-spawned) and sets the location of that ship/angle, to the team base, and sets its side value of the ship to the team value. and the ship value back to 1.