Two problems 1) with victim2's escorts (sometimes he has them sometimes not). 2) I don't think the game is "reading" past a point in my shipdata. (This may also have somthing to do with the lack of escorts).
At a certain point in the OXP relatives of your first victim will start taking revenge. The code in the script is working. I'm using:-
{ conditions = (
"mission_assassins equal assassins_STAGE3a",
"galaxy_number equal 6",
"status_string equal STATUS_EXITING_WITCHSPACE"
);
do = ( "checkForShips: victim1",
{ conditions = ( "shipsFound_number equal 0" );
do = ( "addShipsWithinRadius: victim1 5 wpm 0 0 12000 500");
},
This works and adds 5 victim1 ship at the right point. (I'm just testing using victim1, once I get it working the ships added will be revenge1 and
I'll add a dice role condition, so there is just a chance of been attacked whenever you exit hyperspace).
If I test with the next ship in my shipdata (victim2), it works (but no escorts) - grrr. But if I use the next two ships in the list teamdef or revenge1 nothing happens. "teamdef" is the escort of victim2. Revenge1 at the moment is just a copy & past of victim1. If I can get him appearing, i'll do his stats to make him a very nasty fighter.
I'm totally stuck and if anybody wants to PM me their e-mail, I'll e-mail over my OXP with commanders to test the Escorts and the vengence ship. I think it has somthing to do with the game not reading properly past victim2 in my shipdata.
This my shipdata file in full:-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "
http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>victim1</key>
<dict>
<key>like_ship</key>
<string>adder</string>
<key>model</key>
<string>adder_redux.dat</string>
<key>roles</key>
<string>victim1</string>
<key>name</key>
<string>Guild Target : Be Soin - 200C</string>
<key>has escape_pod</key>
<real>0.0</real>
<key>ai_type</key>
<string>route1traderAI.plist</string>
<key>death_actions</key>
<array>
<string>set: mission_assassins assassins_STAGE1a</string>
</array>
</dict>
<key>victim2</key>
<dict>
<key>like_ship</key>
<string>python</string>
<key>model</key>
<string>python_redux.dat</string>
<key>roles</key>
<string>victim2</string>
<key>name</key>
<string>Guild Target : Hockey Team - 5,000C</string>
<key>escorts</key>
<integer>4</integer>
<key>escort-ship</key>
<string>teamdef</string>
<key>forward_weapon_type</key>
<string>WEAPON_BEAM_LASER</string>
<key>has_ecm</key>
<true/>
<key>has escape_pod</key>
<real>0.0<real/>
<key>max_energy</key>
<real>1500</real>
<key>energy_recharge_rate</key>
<real>3.5</real>
<key>max_flight_speed</key>
<real>320</real>
<key>ai_type</key>
<string>route1traderAI.plist</string>
<key>death_actions</key>
<array>
<string>set: mission_assassins assassins_STAGE2b</string>
</array>
</dict>
<key>teamdef</key>
<dict>
<key>like_ship</key>
<string>viper</string>
<key>model</key>
<string>viper_redux.dat</string>
<key>forward_weapon_type</key>
<string>WEAPON_MILITARY_LASER</string>
<key>has_ecm</key>
<true/>
<key>max_energy</key>
<real>300</real>
<key>energy_recharge_rate</key>
<real>5</real>
<key>max_flight_pitch</key>
<real>2</real>
<key>max_flight_roll</key>
<real>3.2</real>
<key>ai_type</key>
<string>escortAI.plist</string>
<key>name</key>
<string>Hockey Team Escort Viper</string>
<key>roles</key>
<string>teamdef</string>
</dict>
<dict>
<key>revenge1</key>
<dict>
<key>like_ship</key>
<string>adder</string>
<key>model</key>
<string>adder_redux.dat</string>
<key>roles</key>
<string>revenge1</string>
<key>name</key>
<string>Clan Soin : Mega Mamba MkI</string>
<key>has escape_pod</key>
<real>0.0</real>
<key>ai_type</key>
<string>route1traderAI.plist</string>
<key>death_actions</key>
<array>
<string>set: mission_assassins assassins_STAGE3b</string>
</array>
</dict>
</dict>
</plist>
Arrrgh!