Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #1 
I have been working recently on making it so that shuttles can transfer supplies such as ordnance and energy, as well as dam con teams, between ships. The ordnance and energy transfer is working well, however I have hit a snag when trying to set up the dam con transfer. 

The problem I am having is that I can only reference dam con members on Ship 1. What I wanted to do was track the number of dam con members on a ship at any one time using the code below:

<event name="Increase to Match" id_arme="9e277367-ca0e-4b8e-85f8-1f648970c709" parent_id_arme="00dc13b8-435f-4528-8993-f538b6e2bb8e">
<if_damcon_members name="TSN Viper" team_index="2" comparator="GREATER" value="DamConViper2" />
<if_exists comparator="EQUALS" name="TSN Viper" />
<set_variable name="DamConViper2" value="DamConViper2+1" integer="yes" /></event>

<event name="Decrease to Match" id_arme="b73d05b2-2de4-486c-ad91-581cdeee30b3" parent_id_arme="00dc13b8-435f-4528-8993-f538b6e2bb8e">
<if_damcon_members name="TSN Viper" team_index="2" comparator="LESS" value="DamConViper2" />
<if_exists comparator="EQUALS" name="TSN Viper" />
<set_variable name="DamConViper2" value="DamConViper2-1" integer="yes" /></event>


It seems though it will only detect dam con members on Ship 1, not on a specifically named ship. I have also tried: 

<event name="Increase to Match" id_arme="9e277367-ca0e-4b8e-85f8-1f648970c709" parent_id_arme="00dc13b8-435f-4528-8993-f538b6e2bb8e">
<if_damcon_members player_slot="2" team_index="2" comparator="GREATER" value="DamConViper2" />
<if_exists comparator="EQUALS" name="TSN Viper" />
<set_variable name="DamConViper2" value="DamConViper2+1" integer="yes" /></event>

<event name="Decrease to Match" id_arme="b73d05b2-2de4-486c-ad91-581cdeee30b3" parent_id_arme="00dc13b8-435f-4528-8993-f538b6e2bb8e">
<if_damcon_members player_slot="2" team_index="2" comparator="LESS" value="DamConViper2" />
<if_exists comparator="EQUALS" name="TSN Viper" />
<set_variable name="DamConViper2" value="DamConViper2-1" integer="yes" /></event>


Again, it will only look at dam con teams on the ship in player_slot="0".

Is it possible to fix this so that I can track dam con members for different ships? I also want to add or removed from a named ship (or a particular player_slot), but again cannot do it. I can use GM selection, but then that requires a GM.

Thanks




__________________
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
Mike Substelny

Avatar / Picture

Administrator
Registered:
Posts: 2,990
Reply with quote  #2 
This was one of the many problems I ran into with the mission script for the Artemis Armada III LARP mission script. I never found a solution.

I believe that Thom thinks that what you wrote in your code should work. He is probably unaware that it doesn't work. In that case I recommend that you report it as a bug, which will get much faster attention.

__________________
"The Admiralty had demanded six ships; the economists offered four; and we finally compromised on eight."
- Winston Churchill
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.