Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Hnefatafl

Avatar / Picture

Registered:
Posts: 16
Reply with quote  #1 

Well, I've run out of ideas.

While messing about with my first scripting attempt, I'm trying to damage the player's ship after it collides with an enemy.  I've tried both "set_player_grid_damage" and "set_property", but so far nothing breaks.

While searching through the forums here, I saw a reference to the damage created in the "Hamak Sector" mission, so went to have a look. I couldn't see any significant difference between what I was trying and what was used in Hamak, but just in case, I copied and pasted, editing somewhat to suit, just to test; to see what I was missing.  I used:

<event>
<if_timer_finished name="testing"/>
<if_variable name="crash" comparator="=" value="0"/>
<set_variable name="crash" value="1"/>
<incoming_comms_text from="DS1">
What the hell happened?
</incoming_comms_text>
<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="0.1"/>
<set_player_grid_damage systemType="systemTurning" countFrom="front" index="0" value="0.1"/>
<set_damcon_members team_index="0" value="4"/>
<set_damcon_members team_index="1" value="4"/>
<set_damcon_members team_index="2" value="4"/>
<warning_popup_message message="Multiple DamCon team casualties!" consoles="E"/>
</event>

 In my <start> section, I've included...

<set_timer name="testing" seconds="10" />
<set_variable name="crash" value="0"/>


There's nothing else, this is just me trying to test things. So I run the script, set warp to 2, and go.  10 seconds later, the message from DS1 comes in to Comms, the DamCon teams are hurt, the DamCon team message pops up, but all ship systems are fine. No damage.

Huh.  So I double check, play around, but no damage.

Just to check things out, I head into the Hamak Sector mission.  I dock at the base, and the installation of the ramscoops begin. Just after the 50% message, I hit the impulse engines and start away. I get the warning messages, hear the explosion, but ... the ship's fine.  No damage at all.

So... is something else broken? I've even uninstalled the game, then installed cleanly, just in case. I'm running 2.7. 


__________________

Commander Hood, 9th Fleet Operations

Commanding Officer, TSN Yale: 9th Fleet Academy Training Vessel
Helmsman, TSN Vanguard

ryleyra

Registered:
Posts: 3,214
Reply with quote  #2 
Sorry I didn't notice this post until now. Damaging the Engineering systems is still possible in my Module_3_bases, but it does not work in my update of Havok in the Hamok Sector. You might try specifying player_slot, player_name or just name as an argument to the command. If none of those work, it appears to be broken in 2.7, even though it's working with use_gm_selection.

I'll note that the properties set with set_property are only used by AI controlled ships.
Longbowman1346

Avatar / Picture

Registered:
Posts: 553
Reply with quote  #3 
Quote:
Originally Posted by ryleyra
Sorry I didn't notice this post until now. Damaging the Engineering systems is still possible in my Module_3_bases,


I don't follow?  There is another Module_3_bases mission that does more (and that is not saying much) than the GM mode in the vanilla game?   Like you can actually do things in the GM mode?

__________________
Captain -  TSN Belisarius BS-108
"Pax per consilia et maxime armis." -  "Rescindentes venator ad venationem." 

(Deane Geiken)
ryleyra

Registered:
Posts: 3,214
Reply with quote  #4 
S'right here: https://artemis.forumchitchat.com/post/stock-missions-updated-for-2-7-9657020 😃

I've been using a modified version of Module_3_bases for a while, for testing, and decided to post it for everyone else to use. It has a lot more features than the stock version, although I'm hoping it becomes the stock version after Armada. 😃
Hnefatafl

Avatar / Picture

Registered:
Posts: 16
Reply with quote  #5 
Thanks all!  Just getting around to testing again, but it *does* work if I include "name" in the string.

Perfect!

__________________

Commander Hood, 9th Fleet Operations

Commanding Officer, TSN Yale: 9th Fleet Academy Training Vessel
Helmsman, TSN Vanguard

ryleyra

Registered:
Posts: 3,214
Reply with quote  #6 
Quote:
Originally Posted by Hnefatafl
Thanks all!  Just getting around to testing again, but it *does* work if I include "name" in the string.

Perfect!


Great! I'll have to update Havok in the Hamok sector as well as The Waning Dark and possibly some of the other stock scripts to include that.

Presumably it now treats a lack of "name" the same as if the gm hasn't selected a ship.

Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.