Help with a mission script
-
Sorry about the double post, but i just wanted to show a video teaser…
http://www.youtube.com/watch?v=XHHX1mgMJBQ
P.S sorry about the poor quality.
Cheers, Khayman
-
Brilliant!
Bwt for me any ship class and state graph other than fighter/class_fighter not worked - npc stays in place, as i said before, but with fighter/class_fighter and different pilots works well! %)
-
HeIIoween wrote:
Brilliant!Bwt for me any ship class and state graph other than fighter/class_fighter not worked - npc stays in place, as i said before, but with fighter/class_fighter and different pilots works well! %)
i just remembered that i added this to the nomads in the factionprop.ini:
[FactionProps]
affiliation = fc_n_grp
legality = unlawful
nickname_plurality = plural
msg_id_prefix = ignore
jump_preference = jumpgate
npc_ship = MSN13_Nomad_Fighter_Populator
npc_ship = fc_n_no_fighter_d19
mc_costume = mc_fc
firstname_male = 229608, 229608
firstname_female = 229608, 229608
lastname = 229608, 229608
rank_desig = 197140, 197140, 197140, 10, 15
formation_desig = 197808, 197820
formation = fighters, fighter_guild
formation = gunboats, gunboat_wall <–--------------------dont know if that will help you or not.
Cheers, Khayman
-
Thinking how to prevent npc spam…
How would be interpreted f1, alt+f4, other char selection or other server - Cnd_SpaceExit?
-
im looking into trying to figure a way to catch the character before it has a name…
Just a random thought, you might could ask at the ProcyonHook’s forums. They have done some thing that you can select your character outfit if you create a new character (even though I am sure they did a lot of coding with it) - Might be worth a try. Actually, aside of Adoxa and a few others they might be able to help you with such a specific thing.
-
Partial mission objects anti-spam. When player reconnects - no more additional copies of solars/npcs.
[Mission] npc_ship_file = missions\npcships.ini [MsnSolar] nickname = fp7base faction = li_p_grp reputation = li_p_grp system = LI01 base=intro1_base position = 3600, 1000, -21000 orientation = 1, 0, 0, 0 archetype = freeport7 loadout = freeport7 label = lbl_fp7base radius = 0 pilot = setscene_nomad_fighter_FP7 random_name = true [MsnSolar] nickname = freeport7_space_dome1 faction = li_p_grp reputation = li_p_grp system = LI01 position = 4118, 1000, -21000 orientation = 0, 0, 1, 0 archetype = freeport7_space_dome label = lbl_fp7base radius = 0 pilot = setscene_nomad_fighter_FP7 random_name = true loadout = space_dome_co_01 parent = fp7base [MsnSolar] nickname = freeport7_space_dome2 faction = li_p_grp reputation = li_p_grp system = LI01 position = 3080, 1000, -21000 orientation = 1, 0, 0, 0 archetype = freeport7_space_dome label = lbl_fp7base radius = 0 pilot = setscene_nomad_fighter_FP7 random_name = true loadout = space_dome_co_01 parent = fp7base [MsnSolar] nickname = freeport7_space_dome3 faction = li_p_grp reputation = li_p_grp system = LI01 position = 3600, 1000, -20609 orientation = 1, 0, 1, 0 archetype = freeport7_space_dome label = lbl_fp7base radius = 0 pilot = setscene_nomad_fighter_FP7 random_name = true loadout = space_dome_co_01 parent = fp7base [Trigger] nickname = tr_initialize_init system = li01 InitState = ACTIVE Cnd_True = no_params Act_ActTrig = go_mis [Trigger] nickname = go_mis system = Li01 Cnd_SystemEnter = Li01 Act_ActTrig = mis_yes ; if we have Mission_13 at players file - start_init Act_ActTrig = mis_no ; if we have No_Mission at players file - the_end_end [Trigger] nickname = mis_yes Cnd_HasMsn = yes Act_ActTrig = start_init [Trigger] nickname = mis_no Cnd_HasMsn = no Act_ActTrig = the_end_end [Trigger] nickname = start_init system = li01 Cnd_Timer = 10 Act_RandomPop = true Act_RpopAttClamp = true Act_RpopTLAttacksEnabled = true Act_SpawnSolar = fp7base Act_SpawnSolar = freeport7_space_dome1 Act_SpawnSolar = freeport7_space_dome2 Act_SpawnSolar = freeport7_space_dome3 Act_MarkObj = fp7base, 1 Act_MarkObj = freeport7_space_dome1, 1 Act_MarkObj = freeport7_space_dome2, 1 Act_MarkObj = freeport7_space_dome3, 1 Act_ActTrig = the_end_end [Trigger] nickname = the_end_end system = Li01 Cnd_SystemEnter = Li01 Cnd_Timer = 240 Act_ChangeState = SUCCEED
-
khayman wrote:
The problem with that is:
Act_ChangeState = SUCCEEDwhen this happens your bases will disapear
Copy of base will disappear.
-
Update!
At the end of any *.fl file:... [MissionState] mission_accepted = 1 ; yes we have mission att_clamp = true tradelane_attacks = true scan_clamp = true gcs_clamp = false hostile_clamp = false random_pop = true [BStoryMissionDone] [StoryInfo] ship_bought = false Mission = Mission_13 MissionNum = 0 delta_worth = -1.000000 debug = 0
At /data/missions/m13.ini:
[Mission] npc_ship_file = missions\npcships.ini [MsnSolar] nickname = fp7base faction = li_p_grp reputation = li_p_grp system = LI01 base=intro1_base position = 3600, 1000, -21000 orientation = 1, 0, 0, 0 archetype = freeport7 loadout = freeport7 label = lbl_fp7base radius = 0 pilot = setscene_nomad_fighter_FP7 random_name = true [MsnSolar] nickname = freeport7_space_dome1 faction = li_p_grp reputation = li_p_grp system = LI01 position = 4118, 1000, -21000 orientation = 0, 0, 1, 0 archetype = freeport7_space_dome label = lbl_fp7base radius = 0 pilot = setscene_nomad_fighter_FP7 random_name = true loadout = space_dome_co_01 parent = fp7base [MsnSolar] nickname = freeport7_space_dome2 faction = li_p_grp reputation = li_p_grp system = LI01 position = 3080, 1000, -21000 orientation = 1, 0, 0, 0 archetype = freeport7_space_dome label = lbl_fp7base radius = 0 pilot = setscene_nomad_fighter_FP7 random_name = true loadout = space_dome_co_01 parent = fp7base [MsnSolar] nickname = freeport7_space_dome3 faction = li_p_grp reputation = li_p_grp system = LI01 position = 3600, 1000, -20609 orientation = 1, 0, 1, 0 archetype = freeport7_space_dome label = lbl_fp7base radius = 0 pilot = setscene_nomad_fighter_FP7 random_name = true loadout = space_dome_co_01 parent = fp7base [Trigger] nickname = tr_initialize_init system = li01 InitState = ACTIVE Cnd_True = no_params Act_ActTrig = go_mis [Trigger] nickname = go_mis system = Li01 Cnd_SystemEnter = Li01 Act_ActTrig = mis_yes Act_ActTrig = mis_no [Trigger] nickname = mis_yes Cnd_HasMsn = yes Act_ActTrig = start_init [Trigger] nickname = mis_no Cnd_HasMsn = no Act_SetVibe = fp7base, Player, REP_HOSTILE_THRESHOLD Act_SetVibe = freeport7_space_dome1, Player, REP_HOSTILE_THRESHOLD Act_SetVibe = freeport7_space_dome2, Player, REP_HOSTILE_THRESHOLD Act_SetVibe = freeport7_space_dome3, Player, REP_HOSTILE_THRESHOLD Act_ActTrig = the_end_end [Trigger] nickname = start_init system = li01 Cnd_Timer = 10 Act_RandomPop = true Act_RpopAttClamp = true Act_RpopTLAttacksEnabled = true Act_Destroy = freeport7_space_dome1, SILENT ; kill copies of solars (detroy root must be in fuse) Act_Destroy = freeport7_space_dome2, SILENT ; -//- Act_Destroy = freeport7_space_dome3, SILENT ; -//- Act_Destroy = fp7base, SILENT ; -//- Act_SpawnSolar = fp7base Act_SpawnSolar = freeport7_space_dome1 Act_SpawnSolar = freeport7_space_dome2 Act_SpawnSolar = freeport7_space_dome3 Act_MarkObj = fp7base, 1 Act_MarkObj = freeport7_space_dome1, 1 Act_MarkObj = freeport7_space_dome2, 1 Act_MarkObj = freeport7_space_dome3, 1 Act_SetVibe = fp7base, Player, REP_HOSTILE_THRESHOLD Act_SetVibe = freeport7_space_dome1, Player, REP_HOSTILE_THRESHOLD Act_SetVibe = freeport7_space_dome2, Player, REP_HOSTILE_THRESHOLD Act_SetVibe = freeport7_space_dome3, Player, REP_HOSTILE_THRESHOLD Act_ActTrig = the_end [Trigger] nickname = the_end system = Li01 Cnd_SystemEnter = Li01 Cnd_Destroyed = fp7base, 1, EXPLODE Cnd_Destroyed = freeport7_space_dome1, 1, EXPLODE Cnd_Destroyed = freeport7_space_dome2, 1, EXPLODE Cnd_Destroyed = freeport7_space_dome3, 1, EXPLODE Act_ActTrig = the_end_end [Trigger] nickname = the_end_end system = Li01 Cnd_SystemEnter = Li01 Cnd_Timer = 1 Act_ChangeState = SUCCEED
-
Nice find!!
the server host doesnt have to start a script running!
any client can start a script running that they dont even have.What i mean is….
i had the server setup and ready to run my scripted mission07.
Before i started the script, a player joined the server and it automatically set my mission07 running for me, so i switched off the script.The server still ran the script only once and is still stable!.
so im now looking at starting all players with a “standard and silent mission script”… i’ll use it to unlock the usually locked jumpholes and gates, rep changes, dock restrictions and hopefully be able to offer players missions from certain bases etc.
-
I have crazy idea to write special mission player traffic, and replay it after each server restart. It’ll be bot - the mission creator X))
-
At /data/missions/m13.ini:
[Mission]
npc_ship_file = missions\npcships.ini[MsnSolar]
nickname = fp7base
faction = li_p_grp
reputation = li_p_grp
system = LI01
base=intro1_base
position = 3600, 1000, -21000
orientation = 1, 0, 0, 0
archetype = freeport7
loadout = freeport7
label = lbl_fp7base
radius = 0
pilot = setscene_nomad_fighter_FP7
random_name = true
.
.
.Isn’t it Mission1a? Freeport 7…
-
No, it is not mission m01a, it is peace from mission m01a with other pilot, loadout, base and faction
-
To stop the multiple spawning of all objects, base’s, npc etc i have two scripts running.
Each new player that joins the server starts on a basic script.
I have a character on a seperate i.d that has the second script info (which spawns everything then locks manhattans dock after launch). In addition to this, i can use this character to begin other missions running by landing on other bases each time locking the dock.
When a server restart happens i use the character and .beam to manhattan where i can start that script again.Seems to be working so far!
-
Locking the dock… …Start that script again…
Well that sucks! If you want people to play on this server you need either unlock the bases and reset the scripts with the server, or lock the bases and don’t restart the scripts (Making it remember what each player did), unless it will drive people crazy redoing the same missions in the same order every day again and again and again… Just thinking of it makes me hate this server, and it doesn’t exist yet.
-
The bases only become locked to my character starting scripts… its so i dont forget that a base starts a script and i land by mistake.
All other players can still land anywhere and the script they are using unlocks jumpholes and changes their starting rep (once)…
When they encounter a character in a base (can be one of many) they are offered missions and rewarded via pop up messages!Hope that helps clear things up.
Cheers, Khayman
-
Intresting:
Cnd_InZone = false, Player, OBJECT_ZONE
Any Zone? Only Player or Object allowed?
Other parameters are:
EXCLUSION_ZONE
NEBULA_ZONE
DUST_ZONE -
Additional Condition (number 43):
Cnd_RumorHeard - not listed in Rasauul’s Storyline Bible
-
Act_SetShipAndLoadout ```This not works! :cry: Adoxa maybe you know how force it to work?