Alternative to Restart templates by SP Scripting
-
1. Read this: http://the-starport.net/freelancer/forum/viewtopic.php?post_id=32840#forumpost32840
2. Example from my '88 Flak server: MISSIONS\M13\m13.ini
[Mission]
npc_ship_file = missions\npcships.ini[Trigger]
nickname = tr_initialize_init
system = ANY
InitState = ACTIVE
Cnd_True = no_params
;Act_Popupdialog = 60253, 21925, CLOSE
Act_ActTrig = go_Out[Trigger]
nickname = go_Out
system = ANY
Cnd_LaunchComplete = Player
;Act_Popupdialog = 60253, 21925, CLOSE
Act_SetVibe = Li07_to_Li01_hole_start, Player, REP_FRIEND_MAXIMUM
Act_SetVibe = Li07_to_Hi01_hole_start, Player, REP_FRIEND_MAXIMUM
Act_SetVibe = Li07_to_Hi02_hole_start, Player, REP_FRIEND_MAXIMUM
Act_SetVibe = Li07_to_Ku01_hole_start, Player, REP_FRIEND_MAXIMUM
Act_SetVibe = Li07_to_Rh01_hole_start, Player, REP_FRIEND_MAXIMUM
Act_SetVibe = Li07_to_Br01_hole_start, Player, REP_FRIEND_MAXIMUM
Act_SetVibe = Li07_to_Ew05_hole_start, Player, REP_FRIEND_MAXIMUM
Act_MarkObj = Li07_to_Li01_hole_start, 1
Act_MarkObj = Li07_to_Hi01_hole_start, 1
Act_MarkObj = Li07_to_Hi02_hole_start, 1
Act_MarkObj = Li07_to_Ku01_hole_start, 1
Act_MarkObj = Li07_to_Rh01_hole_start, 1
Act_MarkObj = Li07_to_Br01_hole_start, 1
Act_MarkObj = Li07_to_Ew05_hole_start, 1
Act_ActTrig = go_Li01
Act_ActTrig = go_Hi01
Act_ActTrig = go_Hi02
Act_ActTrig = go_Ku01
Act_ActTrig = go_Rh01
Act_ActTrig = go_Br01
Act_ActTrig = go_Ew05[Trigger]
nickname = go_Li01
Cnd_SystemExit = Li07, Li01
;Act_Popupdialog = 60253, 21925, CLOSE
Act_SetRep = Player, li_p_grp, 1
Act_SetRep = Player, li_n_grp, 0.90
Act_SetRep = Player, li_p_grp, 0.90
Act_SetRep = Player, co_alg_grp, 0.90
Act_SetRep = Player, co_be_grp, 0.90
Act_SetRep = Player, br_m_grp, 0.90
Act_SetRep = Player, co_nws_grp, 0.90
Act_SetRep = Player, co_hsp_grp, 0.90
Act_SetRep = Player, co_ic_grp, 0.90
Act_SetRep = Player, co_kt_grp, 0.90
Act_SetRep = Player, co_me_grp, 0.90
Act_SetRep = Player, co_ni_grp, 0.90
Act_SetRep = Player, co_os_grp, 0.90
Act_SetRep = Player, co_rs_grp, 0.90
Act_SetRep = Player, co_shi_grp, 0.90
Act_SetRep = Player, co_ss_grp, 0.90
Act_SetRep = Player, co_ti_grp, 0.90
Act_SetRep = Player, co_vr_grp, 0.90[Trigger]
nickname = go_Hi01
Cnd_SystemExit = Li07, Hi01
;Act_Popupdialog = 60253, 21925, CLOSE
Act_SetRep = Player, fc_gc_grp, 0.90
Act_SetRep = Player, fc_lh_grp, 0.90
Act_SetRep = Player, fc_lr_grp, 0.90
Act_SetRep = Player, fc_ou_grp, 1[Trigger]
nickname = go_Hi02
Cnd_SystemExit = Li07, Hi02
;Act_Popupdialog = 60253, 21925, CLOSE
Act_SetRep = Player, fc_c_grp, Player, 1[Trigger]
nickname = go_Ku01
Cnd_SystemExit = Li07, Ku01
;Act_Popupdialog = 60253, 21925, CLOSE
Act_SetRep = Player, ku_n_grp, 0.90
Act_SetRep = Player, ku_p_grp, 1
Act_SetRep = Player, co_be_grp, 0.90
Act_SetRep = Player, br_m_grp, 0.90
Act_SetRep = Player, co_nws_grp, 0.90
Act_SetRep = Player, co_hsp_grp, 0.90
Act_SetRep = Player, co_kt_grp, 0.90
Act_SetRep = Player, co_os_grp, 0.90
Act_SetRep = Player, co_shi_grp, 0.90
Act_SetRep = Player, co_ss_grp, 0.90[Trigger]
nickname = go_Rh01
Cnd_SystemExit = Li07, Rh01
;Act_Popupdialog = 60253, 21925, CLOSE
Act_SetRep = Player, rh_n_grp, 0.90
Act_SetRep = Player, rh_p_grp, 1
Act_SetRep = Player, co_alg_grp, 0.90
Act_SetRep = Player, co_be_grp, 0.90
Act_SetRep = Player, co_nws_grp, 0.90
Act_SetRep = Player, co_hsp_grp, 0.90
Act_SetRep = Player, co_khc_grp, 0.90
Act_SetRep = Player, rh_m_grp, 0.90
Act_SetRep = Player, co_ni_grp, 0.90
Act_SetRep = Player, co_os_grp, 0.90
Act_SetRep = Player, co_rs_grp, 0.90
Act_SetRep = Player, co_ss_grp, 0.90[Trigger]
nickname = go_Br01
Cnd_SystemExit = Li07, Br01
;Act_Popupdialog = 60253, 21925, CLOSE
Act_SetRep = Player, br_n_grp, 0.90
Act_SetRep = Player, br_p_grp, 1
Act_SetRep = Player, co_alg_grp, 0.90
Act_SetRep = Player, co_be_grp, 0.90
Act_SetRep = Player, br_m_grp, 0.90
Act_SetRep = Player, co_nws_grp, 0.90
Act_SetRep = Player, co_hsp_grp, 0.90
Act_SetRep = Player, co_ic_grp, 0.90
Act_SetRep = Player, co_kt_grp, 0.90
Act_SetRep = Player, co_ni_grp, 0.90
Act_SetRep = Player, co_os_grp, 0.90
Act_SetRep = Player, co_rs_grp, 0.90
Act_SetRep = Player, co_shi_grp, 0.90
Act_SetRep = Player, co_ss_grp, 0.90
Act_SetRep = Player, co_ti_grp, 0.90[Trigger]
nickname = go_Ew05
Cnd_SystemExit = Li07, Ew05
;Act_Popupdialog = 60253, 21925, CLOSE
Act_SetShipAndLoadout = no_fighter, no_fighter ;<– Loadout works fine - you will get nomad ship when you will land at any base
Act_SetRep = Player, li_n_grp, -0.99
Act_SetRep = Player, li_lsf_grp, 0
Act_SetRep = Player, li_p_grp, -0.99
Act_SetRep = Player, br_n_grp, -0.99
Act_SetRep = Player, br_p_grp, -0.99
Act_SetRep = Player, ku_n_grp, -0.99
Act_SetRep = Player, ku_p_grp, -0.99
Act_SetRep = Player, rh_n_grp, -0.99
Act_SetRep = Player, rh_p_grp, -0.99
Act_SetRep = Player, co_alg_grp, -0.99
Act_SetRep = Player, co_be_grp, -0.99
Act_SetRep = Player, br_m_grp, -0.99
Act_SetRep = Player, co_nws_grp, -0.99
Act_SetRep = Player, co_hsp_grp, -0.99
Act_SetRep = Player, co_ic_grp, -0.99
Act_SetRep = Player, co_khc_grp, -0.99
Act_SetRep = Player, co_kt_grp, -0.99
Act_SetRep = Player, rh_m_grp, -0.99
Act_SetRep = Player, co_me_grp, -0.99
Act_SetRep = Player, co_ni_grp, -0.99
Act_SetRep = Player, co_os_grp, -0.99
Act_SetRep = Player, co_rs_grp, -0.99
Act_SetRep = Player, co_shi_grp, -0.99
Act_SetRep = Player, co_ss_grp, -0.99
Act_SetRep = Player, co_ti_grp, -0.99
Act_SetRep = Player, co_vr_grp, -0.99
Act_SetRep = Player, fc_bd_grp, -0.99
Act_SetRep = Player, fc_b_grp, -0.99
Act_SetRep = Player, fc_c_grp, -0.99
Act_SetRep = Player, fc_fa_grp, -0.99
Act_SetRep = Player, fc_g_grp, -0.99
Act_SetRep = Player, fc_gc_grp, -0.99
Act_SetRep = Player, fc_h_grp, -0.99
Act_SetRep = Player, fc_j_grp, -0.99
Act_SetRep = Player, fc_lh_grp, -0.99
Act_SetRep = Player, fc_lr_grp, -0.99
Act_SetRep = Player, fc_lwb_grp, -0.99
Act_SetRep = Player, fc_m_grp, -0.99
Act_SetRep = Player, fc_ou_grp, -0.99
Act_SetRep = Player, fc_rh_grp, -0.99
Act_SetRep = Player, fc_or_grp, 0
Act_SetRep = Player, fc_u_grp, -0.99
Act_SetRep = Player, fc_x_grp, -0.99
Act_SetRep = Player, gd_gm_grp, -0.99
Act_SetRep = Player, fc_uk_grp, -0.59
Act_SetRep = Player, fc_n_grp, 1
Act_SetRep = Player, fc_ouk_grp, -0.99
Act_SetRep = Player, fc_q_grp, 0
Act_SetRep = Player, fc_f_grp, -0.99
Act_SetRep = Player, gd_im_grp, -0.99
Act_SetRep = Player, gd_z_grp, -0.99
Act_SetRep = Player, gd_bh_grp, -0.99
Act_SetRep = Player, gd_wfl_grp, -0.59
Act_SetRep = Player, gd_lfl_grp, -0.99
Act_SetRep = Player, fc_pfl_grp, -0.99
Act_SetRep = Player, li01_station_1_grp, -0.59
Act_SetRep = Player, li01_station_2_grp, -0.59
Act_SetRep = Player, li02_station_1_grp, -0.59
Act_SetRep = Player, li04_station_1_grp, -0.59
Act_SetRep = Player, br01_station_1_grp, -0.59
Act_SetRep = Player, br03_station_1_grp, -0.59
Act_SetRep = Player, br05_station_1_grp, -0.59
Act_SetRep = Player, ku01_station_1_grp, -0.59
Act_SetRep = Player, ku03_station_1_grp, -0.59
Act_SetRep = Player, ku05_station_1_grp, -0.59
Act_SetRep = Player, rh01_station_1_grp, -0.59
Act_SetRep = Player, rh02_station_1_grp, -0.59
Act_SetRep = Player, bw01_station_1_grp, -0.59
Act_SetRep = Player, bw04_station_1_grp, -0.59
Act_SetRep = Player, bw06_station_1_grp, -0.59
Act_SetRep = Player, bw07_station_1_grp, -0.59
Act_SetRep = Player, bw09_station_1_grp, -0.59
Act_SetRep = Player, ew01_station_1_grp, -0.59
Act_SetRep = Player, foxBot_grp, -0.59
Act_SetRep = Player, KittBot_grp, -0.59
Act_SetRep = Player, GrimsGreen_grp, -0.59
Act_SetRep = Player, Wo3dy_grp, -0.59
Act_SetRep = Player, ChipBot_grp, -0.59
Act_SetRep = Player, SnakePlisskin_grp, -0.59
Act_SetRep = Player, SushiBot_grp, -0.59
Act_SetRep = Player, Lonestar_grp, -0.59
Act_SetRep = Player, M0tahBot_grp, -0.59
Act_SetRep = Player, SSGTSolaBot_grp, -0.59
Act_SetRep = Player, DofodBot_grp, -0.59
Act_SetRep = Player, PetBot_grp, -0.59
Act_SetRep = Player, Why485Bot_grp, -0.59
Act_SetRep = Player, SonaBot_grp, -0.59
Act_SetRep = Player, Trickbot_grp, -0.59
Act_SetRep = Player, OutsidersFollowers_grp, -0.59
Act_SetRep = Player, DarkMarauderBot_grp, -0.59
Act_SetRep = Player, ww2JacobBot_grp, -0.59
Act_SetRep = Player, DreadPirateLowsound_grp, -0.59
Act_SetRep = Player, AshBot_grp, -0.59
Act_SetRep = Player, NairaX_grp, -0.59
Act_SetRep = Player, KillerJaguarBot_grp, -0.59
Act_SetRep = Player, StarAvenger_grp, -0.59
Act_SetRep = Player, Helloween_grp, -0.59
Act_SetRep = Player, StilBot_grp, -0.59
Act_SetRep = Player, DarkWraith007_grp, -0.59
Act_SetRep = Player, SojournBot_grp, -0.59
Act_SetRep = Player, HonkBot_grp, -0.59
Act_SetRep = Player, HowdaDoodeWTF_grp, -0.59
Act_SetRep = Player, Borg_grp, -0.59
Act_SetRep = Player, cu_1_grp, -0.59
Act_SetRep = Player, cu_2_grp, -0.59
Act_SetRep = Player, cu_3_grp, -0.59
Act_SetRep = Player, cu_4_grp, -0.59
Act_SetRep = Player, cu_5_grp, -0.59
Act_SetRep = Player, cu_6_grp, -0.59
Act_SetRep = Player, cu_7_grp, -0.59
Act_SetRep = Player, cu_8_grp, -0.59How it works:
- We have starting system with one-way jumpholes to House Systems
- Reputation will change when you get jumphole effect
- You will see ship change only at the base
-
just a dirty-simple question : if someone gets to understand the mechanics of these scripts , would he be able to code a whole new campaign for the game ?
and by the way , can somebody explain me what the parameters mean for these lines :
Act_SpawnShip = nomadcap, nomadcap, -32155, 300, -27259, 0.780800, 0, 0.624700, 0
i see the first 2 are names for the [NPC] and [MsnShip] , the next 3 numbers are system coordonates , but what are the last 3 numbers ?
-
Yes, ask better again in this topic http://the-starport.net/freelancer/forum/viewtopic.php?post_id=32840#forumpost32840 )
Rotation seems to be.
-
K405 wrote:
just a dirty-simple question : if someone gets to understand the mechanics of these scripts , would he be able to code a whole new campaign for the game ?Yes, and it has even been done. It was perhaps 7 years ago when i saw my first coded mission - but in the last year a guy finally made an entire campaign in SP and is making (or made, been a bit out the loop) a second one.
-
Hi, im currently working on a single player campaign mod. Hopefully wont take too much longer.
the code format (as far as im aware) is:
msnship, objective, position, rotation, objective/mission number.Have a quick read of this topic and also see the link to the bible:
Topic:
http://the-starport.net/modules/newbb/viewtopic.php?topic_id=3817&forum=27Bible:
http://freelancercommunity.net/viewtopic.php?t=511@ Helloween - Nice job. (i havent tested it or anything but the coding looks clean).