| Author |
Scripting |
Merneo
Joined: Mar 01, 2002 Posts: 212 From: UK
| Posted: 2002-05-01 07:54  
Guys - Mark
is there within the game any way that a shell count can be used as an objective
eg
objective = destroy
objective = Guns150mm_fired
count = < 500
group = 2
percent = 80
Primary = True
can operant funtions be used in the script
= < > or want logical operators can be used and can objectives be nested within another objective
there needs be a conection to the count function and this may not exist
and even though its war limmited ammo would be an issue you could not just keep banning on
this may be more for larger ships but could stop just banging away however dont think in game there is an ammo count to be seen but makes you think about it
So you win if you destroy group 2 using less than 500 shells with 80percent damage can it happen ?
Merneo
the full command list with funcitons would be such a help Mark it must have been writen down at some point for you to create the missions - can it be either added to the doc on sub sim or posted as a doc in its own right - Please
 
|
Palindromeria
Joined: Feb 28, 2002 Posts: 353 | Posted: 2002-05-01 12:27  
from resultsdlg.dsf
located in ssi/sh2/sim/dsf
strings 1 - 25 ish describe scriptable mission objectives
ive succesfully used Identify (does not actually force close-range nationality insepction. consider it "intercept"), weather reports ,contact reports-can be group specific, destroy group,destroy unit, destroy type tonnage, destroy type %, reach unit.
the rest seem to be for showing how you died who killed who and weapon that killed you.
just noticed string 72 this VERY instant...
destroy_type_cnt
looks like its a scriptable objective. similiar to the way one would script destroy percentage or tonnage of say battleships
but instead is a COUNTER. "destroy 2 battleships."
simply GUESSING it uses
COUNT =
instead of
percentage =
just guessing
dave
[STRINGS]
String1 = #{RESULTS_TONS}#
String2 = #{RESULTS_SUCCESS}#
String3 = #{RESULTS_FAILURE}#
String4 = #{RESULTS_SURVIVE}#
String5 = #{RESULTS_SURVIVE_TYPE}#
String6 = #{RESULTS_SURVIVE_UNIT}#
String7 = #{RESULTS_DESTROY}#
String8 = #{RESULTS_DESTROY_TYPE_PCT}#
String9 = #{RESULTS_DESTROY_UNIT}#
String10 = #{RESULTS_DESTROY_GROUP}#
String11 = #{RESULTS_REACH}#
String12 = #{RESULTS_REACH_UNIT}#
String13 = #{RESULTS_IDENTIFY_UNIT}#
String14 = #{RESULTS_IDENTIFY_GROUP}#
String15 = #{RESULTS_TONNAGE}#
String16 = #{RESULTS_TONNAGE_CARGO}#
String17 = #{RESULTS_TONNAGE_WARSHIP}#
String18 = #{RESULTS_PRIMARY}#
String19 = #{RESULTS_SECONDARY}#
String20 = #{RESULTS_RETURN}#
String21 = #{RESULTS_WEATHER_RPT}#
String22 = #{RESULTS_CONTACT_RPT}#
String23 = #{RESULTS_OUTCOME_INCOMPLETE}#
String24 = #{RESULTS_OUTCOME_SURVIVE}#
String25 = #{RESULTS_OUTCOME_RETURN_TO_BASE}#
String26 = #{RESULTS_OUTCOME_DEATH}#
String27 = #{RESULTS_OUTCOME_CAPTURED}#
String28 = #{RESULTS_OUTCOME_RESCUED}#
String29 = #{RESULTS_OUTCOME_ABANDON_SHIP}#
String30 = #{RESULTS_OUTCOME_TIMED_OUT}#
String31 = #{RESULTS_OUTCOME_ENEMY_NEAR}#
String32 = #{RESULTS_OUTCOME_RED_VICTORY}#
String33 = #{RESULTS_OUTCOME_BLUE_VICTORY}#
String34 = #{RESULTS_OUTCOME_DRAW}#
String35 = #{RESULTS_HDG_ENEMY_LOSSES}#
String36 = #{RESULTS_HDG_FRIENDLY_LOSSES}#
String37 = #{RESULTS_HDG_NEUTRAL_LOSSES}#
String38 = #{RESULTS_TEMP_LOSS}#
String39 = #{RESULTS_DEATH_CAUSE_UNKNOWN}#
String40 = #{RESULTS_DEATH_FRIENDLY_FIRE}#
String41 = #{RESULTS_DEATH_ENEMY_FIRE}#
String42 = #{RESULTS_DEATH_COLLISION}#
String43 = #{RESULTS_DEATH_FLOODING}#
String44 = #{RESULTS_DEATH_AGROUND}#
String45 = #{RESULTS_DEATH_HULL_CRUSHED}#
String46 = #{RESULTS_DEATH_CO2}#
String47 = #{RESULTS_WPN_TYPE_SHELL}#
String48 = #{RESULTS_WPN_TYPE_TORPEDO}#
String49 = #{RESULTS_WPN_TYPE_MISSILE}#
String50 = #{RESULTS_WPN_TYPE_DEPTH_CHARGE}#
String51 = #{RESULTS_WPN_TYPE_BOMB}#
String52 = #{RESULTS_WPN_TYPE_STANDOFF}#
String53 = #{RESULTS_WPN_TYPE_MINE}#
String54 = #{RESULTS_WPN_TYPE_UNKNOWN}#
String55 = #{SAVE_OK_OVERWRITE}#
String56 = #{RESULTS_CARGO_TONNAGE}#
String57 = #{RESULTS_WARSHIP_TONNAGE}#
String58 = #{SAVE_FILE_SAVED}#
String59 = #{SAVE_BAD_NAME}#
String60 = #{RESULTS_HDG_OUTCOME}#
String61 = #{RESULTS_KILLED_TYPE}#
String62 = #{RESULTS_KILL_CREDIT}#
String63 = #{RESULTS_HDG_TONS}#
String64 = #{RESULTS_HDG_DETAIL}#
String65 = #{RESULTS_AIR_FIGHTER_DESTROYED}#
String66 = #{RESULTS_AIR_ATTACK_DESTROYED}#
String67 = #{RESULTS_AIR_BOMBER_DESTROYED}#
String68 = #{RESULTS_AIR_DIVE_BOMBER_DESTROYED}#
String69 = #{RESULTS_AIR_TORPEDO_DESTROYED}#
String70 = #{RESULTS_AIR_SCOUT_DESTROYED}#
String71 = #{RESULTS_AIR_HELICOPTER_DESTROYED}#
String72 = #{RESULTS_DESTROY_TYPE_CNT}#
 
|
Jester107th
Joined: Feb 28, 2002 Posts: 873 From: Jacksonville, FL
| Posted: 2002-05-01 12:30  
You are probably right Palindromeria. Consider the Destroyer Command mission where you have to destroy at least 3 enemy aircraft. You might want to check that mission file. They probably are using that objective script there.
_________________ Jim Nowak
<img src= "http://www.lima1.co.uk/Sharkey/jester.gif">
 
|
Merneo
Joined: Mar 01, 2002 Posts: 212 From: UK
| Posted: 2002-05-01 15:20  
Jester
Have sent you a file to look at hope you dont mind
thanks if you look
Merneo
 
|
Jester107th
Joined: Feb 28, 2002 Posts: 873 From: Jacksonville, FL
| Posted: 2002-05-01 19:41  
Send away. Only way we can get more missions is to have people working on them!
_________________ Jim Nowak
<img src= "http://www.lima1.co.uk/Sharkey/jester.gif">
 
|
Merneo
Joined: Mar 01, 2002 Posts: 212 From: UK
| Posted: 2002-05-03 18:52  
guys what does this mean?
Janus main EXCEPTION_ACCESS_VIOLATION: 40d717
Access violation: Read from location ffffffff
Ideas
Merneo
 
|
Jester107th
Joined: Feb 28, 2002 Posts: 873 From: Jacksonville, FL
| Posted: 2002-05-03 21:34  
It means something is seriously wrong with the mission file!
Actaully, I dunno....one for Mark K. methinks.
_________________ Jim Nowak
<img src= "http://www.lima1.co.uk/Sharkey/jester.gif">
 
|
Easy Rhino
Joined: Feb 27, 2002 Posts: 331 From: Californey
| Posted: 2002-05-03 23:46  
It means the game crashed.
ER
 
|