Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Jammer

Registered:
Posts: 27
Reply with quote  #1 
I'm new to mission scripting and the game master screen. Is there a way use the game master screen to affect the Artemis ship - such as damage/disable certain systems such as warp, weapons, etc?

From what I can tell, not all mission scripts use the game master screen. I downloaded the mission pack and I could only find two missions that use the game master screen: Sandbox V2 & Module_3_bases. Both of these list what the Game Master commands are, but there doesn't seem to be any controls to affect the Artemis directly.
Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #2 
It is possible to set keys for the GM to damage systems aboard the Artemis. There are none used in the Sandbox because it is a multi ship mission. I have not tried them, but I think the only ships you can actually damage is the player 1 ship.
There are commands though, that can be added to damage the various sub-systems aboard the Artemis, including reducing energy levels and ordnance stores.

__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community Website

Want to follow development of the TSN Sandbox? Head here:
https://ko-fi.com/xavierwise
ryleyra

Registered:
Posts: 3,214
Reply with quote  #3 
Missions that use the GM screen are supposed to be named Module_Something by convention. Sandbox is the exception, but since it's... well... a sandbox that's probably implied. [biggrin]

Module missions can only do what the GM screen is programmed to do, so your best bet is probably to write your own mission to add those keys to damage the Artemis. Or, you can just add those commands to an existing script. Learning to write scripts can be a daunting task, though. [biggrin]

The things that can only be effected for the first player ship are, I think, as follows: (And I can confirm the first two only effect the FIRST ship)

Damage Control Teams (the command is set_damcon_members)
Engineering Systems Damage Display (that is, you can knock out specific "nodes" on the display, the command is set_player_grid_damage)
All client key or console popup commands (they actually effect ALL ships, you can't tell which ship a keypress came from)
"If Docked" either detects if any player ship docks with that station, or only the first one. (I've never tested which)

Pretty much everything else can be effected per ship, but you have to create it by name in the mission and use that name to refer to it.
Jammer

Registered:
Posts: 27
Reply with quote  #4 
Thanks ryleyra for the info. That command of "set_player_grid_damage" seems to be just the thing I need.

In testing this code, I attempted this, but it doesn't work. Anyone know what I need to do differently?

 <!-- Damage player ship (TEST CODE) -->
  <event>
    <if_gm_key keyText="L"/>
    <set_player_grid_damage systemType="systemBeam" value="1" countFrom="left" index="1"/>
  </event>

BTW, what is countFrom and index used for? The systemType and value I understand.
JSpaced

Avatar / Picture

Registered:
Posts: 116
Reply with quote  #5 
Quote:
BTW, what is countFrom and index used for? The systemType and value I understand.


CountFrom states which side of the ship's internal systems to count from. Index states how many units to count and then damage that one.

So countFrom="left" starts on the left side of the ship, then Index="3" would count 3 systems along from the left and damage that one. I think it counts the type of system you mention, e.g. third "Primary Weapon" node along from the left, instead of third node.



__________________
"Universal law is for lackeys. Context is for kings."
Jammer

Registered:
Posts: 27
Reply with quote  #6 
Thanks for the info JSpaced.

So, anyone able to help out as to why the code below doesn't work...

 <!-- Damage player ship (TEST CODE) -->
  <event>
    <if_gm_key keyText="L"/>
    <set_player_grid_damage systemType="systemBeam" value="1" countFrom="left" index="1"/>
  </event>

Thanks in advance!
goblinmolon

Registered:
Posts: 12
Reply with quote  #7 

It works perfectly for me (just copy-pasted it). Maybe you are putting it in the "start" zone?

Also notice that it will only damage one node.

Jammer

Registered:
Posts: 27
Reply with quote  #8 
I just can't seem to get it to work for me. I press the "L" key and nothing happens. I even attempted to make the mission module from the Artemis Mission editor - still no luck.

Is there a way to damage a range of nodes, instead of one?
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
Reply with quote  #9 
In 'Havoc in the Hamak Sector' it is possible for the players to wreck their own ship by undocking at the wrong moment. When that happens I destroy their warp drive and slightly damage their maneuvering. Here is the code:

    <set_player_grid_damage systemType="systemWarp" countFrom="front" index="3" value="1.0"/>
    <set_player_grid_damage systemType="systemWarp" countFrom="front" index="2" value="1.0"/>
    <set_player_grid_damage systemType="systemWarp" countFrom="front" index="1" value="1.0"/>
    <set_player_grid_damage systemType="systemWarp" countFrom="front" index="0" value="1.0"/>
    <set_player_grid_damage systemType="systemTurning" countFrom="front" index="1" value=".1"/>
    <set_player_grid_damage systemType="systemTurning" countFrom="front" index="0" value=".1"/>

__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
ryleyra

Registered:
Posts: 3,214
Reply with quote  #10 
Quote:
Originally Posted by Jammer
I just can't seem to get it to work for me. I press the "L" key and nothing happens. I even attempted to make the mission module from the Artemis Mission editor - still no luck.

Is there a way to damage a range of nodes, instead of one?


If you're waiting on a "boom" or for the beams to stop working, that shouldn't happen. The only indication that your code is working will be on the Engineering screen. One of the Beam nodes should turn red. Note that DamCon teams will immediately begin repairing it, so if you take enough time to switch over to the Engineering screen and look, it may already be repaired.

The best way to test this would be to bring up two windows on your client machine. Connect one to GM Screen and the other to Engineering. Put the Engineering display behind the GM Screen and to the right of it so you can see the grid, and hit the L key on the GM Screen. You should see the node turn red.

Mike's example should be enough to knock out the whole beam system. (change "systemWarp" to "systemBeam") It depends on the ship, of course, but 4 nodes should be enough to knock it out. Don't forget that DamCon will immediately begin work on getting the beams back up.

If you want to knock out beams permanently, you'll need to kill the DamCon teams:

<set_damcon_members team_index="0" value="0">
<set_damcon_members team_index="1" value="0">
<set_damcon_members team_index="2" value="0">

(Alternately, you can just keep calling set_player_grid_damage as long as whatever condition knocks out the beams is met. This would only be useful in a mission, though, it wouldn't work off a gm key)

Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.