@@ -556,10 +556,10 @@ void ScriptEngine::init( void )
556556 curTemplate->m_uiStrings [0 ] = " Announce win." ;
557557
558558 curTemplate = &m_actionTemplates[ScriptAction::DEFEAT];
559- curTemplate->m_name = " [User] Announce lose " ;
559+ curTemplate->m_name = " [User] Announce loss " ;
560560 curTemplate->m_numParameters = 0 ;
561561 curTemplate->m_numUiStrings = 1 ;
562- curTemplate->m_uiStrings [0 ] = " Announce lose ." ;
562+ curTemplate->m_uiStrings [0 ] = " Announce loss ." ;
563563
564564 curTemplate = &m_actionTemplates[ScriptAction::NO_OP];
565565 curTemplate->m_name = " [Scripting] Null operation." ;
@@ -693,23 +693,23 @@ void ScriptEngine::init( void )
693693 curTemplate->m_parameters [0 ] = Parameter::TEAM;
694694 curTemplate->m_numUiStrings = 2 ;
695695 curTemplate->m_uiStrings [0 ] = " Have " ;
696- curTemplate->m_uiStrings [1 ] = " wander around it's current location." ;
696+ curTemplate->m_uiStrings [1 ] = " wander around its current location." ;
697697
698698 curTemplate = &m_actionTemplates[ScriptAction::TEAM_INCREASE_PRIORITY];
699699 curTemplate->m_name = " [Team] AI - Increase priority by Success Priority Increase amount." ;
700700 curTemplate->m_numParameters = 1 ;
701701 curTemplate->m_parameters [0 ] = Parameter::TEAM;
702702 curTemplate->m_numUiStrings = 2 ;
703703 curTemplate->m_uiStrings [0 ] = " Increase the AI priority for" ;
704- curTemplate->m_uiStrings [1 ] = " by its Success Priority Increase amount." ;
704+ curTemplate->m_uiStrings [1 ] = " by its Success Priority Increase amount." ;
705705
706706 curTemplate = &m_actionTemplates[ScriptAction::TEAM_DECREASE_PRIORITY];
707707 curTemplate->m_name = " [Team] AI - Reduce priority by Failure Priority Decrease amount." ;
708708 curTemplate->m_numParameters = 1 ;
709709 curTemplate->m_parameters [0 ] = Parameter::TEAM;
710710 curTemplate->m_numUiStrings = 2 ;
711711 curTemplate->m_uiStrings [0 ] = " Reduce the AI priority for" ;
712- curTemplate->m_uiStrings [1 ] = " by its Failure Priority Decrease amount." ;
712+ curTemplate->m_uiStrings [1 ] = " by its Failure Priority Decrease amount." ;
713713
714714 curTemplate = &m_actionTemplates[ScriptAction::TEAM_WANDER];
715715 curTemplate->m_name = " [Team] Set to follow a waypoint path -- wander." ;
@@ -786,7 +786,7 @@ void ScriptEngine::init( void )
786786 curTemplate->m_numUiStrings = 4 ;
787787 curTemplate->m_uiStrings [0 ] = " Have AI " ;
788788 curTemplate->m_uiStrings [1 ] = " build a " ;
789- curTemplate->m_uiStrings [2 ] = " near a supply src with at least " ;
789+ curTemplate->m_uiStrings [2 ] = " near a supply source with at least " ;
790790 curTemplate->m_uiStrings [3 ] = " available resources." ;
791791
792792 curTemplate = &m_actionTemplates[ScriptAction::TEAM_GUARD_SUPPLY_CENTER];
@@ -796,7 +796,7 @@ void ScriptEngine::init( void )
796796 curTemplate->m_parameters [1 ] = Parameter::INT;
797797 curTemplate->m_numUiStrings = 3 ;
798798 curTemplate->m_uiStrings [0 ] = " Have Team " ;
799- curTemplate->m_uiStrings [1 ] = " guard attacked or closest supply src with at least " ;
799+ curTemplate->m_uiStrings [1 ] = " guard attacked or closest supply source with at least " ;
800800 curTemplate->m_uiStrings [2 ] = " available resources" ;
801801
802802 curTemplate = &m_actionTemplates[ScriptAction::AI_PLAYER_BUILD_UPGRADE];
@@ -902,7 +902,7 @@ void ScriptEngine::init( void )
902902 curTemplate->m_uiStrings [1 ] = " to " ;
903903 curTemplate->m_uiStrings [2 ] = " adding toward white. Take " ;
904904 curTemplate->m_uiStrings [3 ] = " frames to increase, hold for " ;
905- curTemplate->m_uiStrings [4 ] = " fames , and decrease " ;
905+ curTemplate->m_uiStrings [4 ] = " frames , and decrease " ;
906906 curTemplate->m_uiStrings [5 ] = " frames." ;
907907
908908 curTemplate = &m_actionTemplates[ScriptAction::CAMERA_FADE_SUBTRACT];
@@ -918,7 +918,7 @@ void ScriptEngine::init( void )
918918 curTemplate->m_uiStrings [1 ] = " to " ;
919919 curTemplate->m_uiStrings [2 ] = " subtracting toward black. Take " ;
920920 curTemplate->m_uiStrings [3 ] = " frames to increase, hold for " ;
921- curTemplate->m_uiStrings [4 ] = " fames , and decrease " ;
921+ curTemplate->m_uiStrings [4 ] = " frames , and decrease " ;
922922 curTemplate->m_uiStrings [5 ] = " frames." ;
923923
924924 curTemplate = &m_actionTemplates[ScriptAction::CAMERA_FADE_MULTIPLY];
@@ -934,7 +934,7 @@ void ScriptEngine::init( void )
934934 curTemplate->m_uiStrings [1 ] = " to " ;
935935 curTemplate->m_uiStrings [2 ] = " multiplying toward black. Take " ;
936936 curTemplate->m_uiStrings [3 ] = " frames to increase, hold for " ;
937- curTemplate->m_uiStrings [4 ] = " fames , and decrease " ;
937+ curTemplate->m_uiStrings [4 ] = " frames , and decrease " ;
938938 curTemplate->m_uiStrings [5 ] = " frames." ;
939939
940940 curTemplate = &m_actionTemplates[ScriptAction::CAMERA_FADE_SATURATE];
@@ -950,7 +950,7 @@ void ScriptEngine::init( void )
950950 curTemplate->m_uiStrings [1 ] = " to " ;
951951 curTemplate->m_uiStrings [2 ] = " increasing saturation. Take " ;
952952 curTemplate->m_uiStrings [3 ] = " frames to increase, hold for " ;
953- curTemplate->m_uiStrings [4 ] = " fames , and decrease " ;
953+ curTemplate->m_uiStrings [4 ] = " frames , and decrease " ;
954954 curTemplate->m_uiStrings [5 ] = " frames." ;
955955
956956 curTemplate = &m_actionTemplates[ScriptAction::PITCH_CAMERA];
@@ -1440,7 +1440,7 @@ void ScriptEngine::init( void )
14401440 curTemplate->m_uiStrings [1 ] = " load into transports." ;
14411441
14421442 curTemplate = &m_actionTemplates[ScriptAction::NAMED_ENTER_NAMED];
1443- curTemplate->m_name = " [Unit] Transport -- load unit into specific." ;
1443+ curTemplate->m_name = " [Unit] Transport -- load unit into specific transport ." ;
14441444 curTemplate->m_numParameters = 2 ;
14451445 curTemplate->m_parameters [0 ] = Parameter::UNIT;
14461446 curTemplate->m_parameters [1 ] = Parameter::UNIT;
@@ -1449,7 +1449,7 @@ void ScriptEngine::init( void )
14491449 curTemplate->m_uiStrings [1 ] = " loads into " ;
14501450
14511451 curTemplate = &m_actionTemplates[ScriptAction::TEAM_ENTER_NAMED];
1452- curTemplate->m_name = " [Team] Transport -- load team into specific." ;
1452+ curTemplate->m_name = " [Team] Transport -- load team into specific transport ." ;
14531453 curTemplate->m_numParameters = 2 ;
14541454 curTemplate->m_parameters [0 ] = Parameter::TEAM;
14551455 curTemplate->m_parameters [1 ] = Parameter::UNIT;
@@ -1458,7 +1458,7 @@ void ScriptEngine::init( void )
14581458 curTemplate->m_uiStrings [1 ] = " attempt to load into " ;
14591459
14601460 curTemplate = &m_actionTemplates[ScriptAction::NAMED_EXIT_ALL];
1461- curTemplate->m_name = " [Unit] Transport -- unload units from specific." ;
1461+ curTemplate->m_name = " [Unit] Transport -- unload units from specific transport ." ;
14621462 curTemplate->m_numParameters = 1 ;
14631463 curTemplate->m_parameters [0 ] = Parameter::UNIT;
14641464 curTemplate->m_numUiStrings = 2 ;
@@ -2531,7 +2531,7 @@ void ScriptEngine::init( void )
25312531 curTemplate->m_uiStrings [0 ] = " " ;
25322532 curTemplate->m_uiStrings [1 ] = " considers " ;
25332533 curTemplate->m_uiStrings [2 ] = " to be " ;
2534- curTemplate->m_uiStrings [3 ] = " (rather than using the the player relationship)." ;
2534+ curTemplate->m_uiStrings [3 ] = " (rather than using the player relationship)." ;
25352535
25362536 curTemplate = &m_actionTemplates[ScriptAction::TEAM_REMOVE_OVERRIDE_RELATION_TO_TEAM];
25372537 curTemplate->m_name = " [Team] Remove an override to a team's relationship to another team." ;
@@ -2631,7 +2631,7 @@ void ScriptEngine::init( void )
26312631 curTemplate->m_uiStrings [0 ] = " " ;
26322632 curTemplate->m_uiStrings [1 ] = " considers " ;
26332633 curTemplate->m_uiStrings [2 ] = " to be " ;
2634- curTemplate->m_uiStrings [3 ] = " (rather than using the the player relationship)." ;
2634+ curTemplate->m_uiStrings [3 ] = " (rather than using the player relationship)." ;
26352635
26362636 curTemplate = &m_actionTemplates[ScriptAction::TEAM_REMOVE_OVERRIDE_RELATION_TO_PLAYER];
26372637 curTemplate->m_name = " [Team] Remove an override to a team's relationship to another player." ;
@@ -2652,7 +2652,7 @@ void ScriptEngine::init( void )
26522652 curTemplate->m_uiStrings [0 ] = " " ;
26532653 curTemplate->m_uiStrings [1 ] = " considers " ;
26542654 curTemplate->m_uiStrings [2 ] = " to be " ;
2655- curTemplate->m_uiStrings [3 ] = " (rather than using the the player relationship)." ;
2655+ curTemplate->m_uiStrings [3 ] = " (rather than using the player relationship)." ;
26562656
26572657 curTemplate = &m_actionTemplates[ScriptAction::PLAYER_REMOVE_OVERRIDE_RELATION_TO_TEAM];
26582658 curTemplate->m_name = " [Player] Remove an override to a player's relationship to another team." ;
@@ -3081,7 +3081,7 @@ void ScriptEngine::init( void )
30813081 curTemplate->m_numUiStrings = 3 ;
30823082 curTemplate->m_uiStrings [0 ] = " " ;
30833083 curTemplate->m_uiStrings [1 ] = " use " ;
3084- curTemplate->m_uiStrings [2 ] = " on " ;
3084+ curTemplate->m_uiStrings [2 ] = " on " ;
30853085
30863086 curTemplate = &m_actionTemplates[ScriptAction::TEAM_ALL_USE_COMMANDBUTTON_ON_NEAREST_ENEMY_UNIT];
30873087 curTemplate->m_name = " [Team] Use command ability -- all -- nearest enemy unit" ;
@@ -3091,7 +3091,7 @@ void ScriptEngine::init( void )
30913091 curTemplate->m_numUiStrings = 3 ;
30923092 curTemplate->m_uiStrings [0 ] = " " ;
30933093 curTemplate->m_uiStrings [1 ] = " use " ;
3094- curTemplate->m_uiStrings [2 ] = " on nearest enemy unit." ;
3094+ curTemplate->m_uiStrings [2 ] = " on nearest enemy unit." ;
30953095
30963096 curTemplate = &m_actionTemplates[ScriptAction::TEAM_ALL_USE_COMMANDBUTTON_ON_NEAREST_GARRISONED_BUILDING];
30973097 curTemplate->m_name = " [Team] Use command ability -- all -- nearest enemy garrisoned building." ;
@@ -3101,7 +3101,7 @@ void ScriptEngine::init( void )
31013101 curTemplate->m_numUiStrings = 3 ;
31023102 curTemplate->m_uiStrings [0 ] = " " ;
31033103 curTemplate->m_uiStrings [1 ] = " use " ;
3104- curTemplate->m_uiStrings [2 ] = " on nearest enemy garrisoned building." ;
3104+ curTemplate->m_uiStrings [2 ] = " on nearest enemy garrisoned building." ;
31053105
31063106 curTemplate = &m_actionTemplates[ScriptAction::TEAM_ALL_USE_COMMANDBUTTON_ON_NEAREST_KINDOF];
31073107 curTemplate->m_name = " [Team] Use command ability -- all -- nearest enemy object with kind of." ;
@@ -3112,7 +3112,7 @@ void ScriptEngine::init( void )
31123112 curTemplate->m_numUiStrings = 4 ;
31133113 curTemplate->m_uiStrings [0 ] = " " ;
31143114 curTemplate->m_uiStrings [1 ] = " use " ;
3115- curTemplate->m_uiStrings [2 ] = " on nearest enemy with " ;
3115+ curTemplate->m_uiStrings [2 ] = " on nearest enemy with " ;
31163116 curTemplate->m_uiStrings [4 ] = " ." ;
31173117
31183118 curTemplate = &m_actionTemplates[ScriptAction::TEAM_ALL_USE_COMMANDBUTTON_ON_NEAREST_ENEMY_BUILDING];
@@ -3123,7 +3123,7 @@ void ScriptEngine::init( void )
31233123 curTemplate->m_numUiStrings = 3 ;
31243124 curTemplate->m_uiStrings [0 ] = " " ;
31253125 curTemplate->m_uiStrings [1 ] = " use " ;
3126- curTemplate->m_uiStrings [2 ] = " on nearest enemy building." ;
3126+ curTemplate->m_uiStrings [2 ] = " on nearest enemy building." ;
31273127
31283128 curTemplate = &m_actionTemplates[ScriptAction::TEAM_ALL_USE_COMMANDBUTTON_ON_NEAREST_ENEMY_BUILDING_CLASS];
31293129 curTemplate->m_name = " [Team] Use command ability -- all -- nearest enemy building kindof." ;
@@ -3134,7 +3134,7 @@ void ScriptEngine::init( void )
31343134 curTemplate->m_numUiStrings = 3 ;
31353135 curTemplate->m_uiStrings [0 ] = " " ;
31363136 curTemplate->m_uiStrings [1 ] = " use " ;
3137- curTemplate->m_uiStrings [2 ] = " on nearest enemy building with " ;
3137+ curTemplate->m_uiStrings [2 ] = " on nearest enemy building with " ;
31383138
31393139 curTemplate = &m_actionTemplates[ScriptAction::TEAM_ALL_USE_COMMANDBUTTON_ON_NEAREST_OBJECTTYPE];
31403140 curTemplate->m_name = " [Team] Use command ability -- all -- nearest object type." ;
@@ -3576,15 +3576,15 @@ void ScriptEngine::init( void )
35763576 curTemplate->m_numParameters = 1 ;
35773577 curTemplate->m_parameters [0 ] = Parameter::SIDE;
35783578 curTemplate->m_numUiStrings = 2 ;
3579- curTemplate->m_uiStrings [0 ] = " Everything belonging to " ;
3579+ curTemplate->m_uiStrings [0 ] = " Everything belonging to " ;
35803580 curTemplate->m_uiStrings [1 ] = " has been destroyed." ;
35813581
35823582 curTemplate = &m_conditionTemplates[Condition::PLAYER_ALL_BUILDFACILITIES_DESTROYED];
35833583 curTemplate->m_name = " [Player] All factories destroyed." ;
35843584 curTemplate->m_numParameters = 1 ;
35853585 curTemplate->m_parameters [0 ] = Parameter::SIDE;
35863586 curTemplate->m_numUiStrings = 2 ;
3587- curTemplate->m_uiStrings [0 ] = " All factories belonging to " ;
3587+ curTemplate->m_uiStrings [0 ] = " All factories belonging to " ;
35883588 curTemplate->m_uiStrings [1 ] = " have been destroyed." ;
35893589
35903590
@@ -4454,7 +4454,7 @@ void ScriptEngine::init( void )
44544454 curTemplate->m_parameters [1 ] = Parameter::TRIGGER_AREA;
44554455 curTemplate->m_numUiStrings = 3 ;
44564456 curTemplate->m_uiStrings [0 ] = " " ;
4457- curTemplate->m_uiStrings [1 ] = " has doesn't have units in " ;
4457+ curTemplate->m_uiStrings [1 ] = " doesn't have units in " ;
44584458 curTemplate->m_uiStrings [2 ] = " ." ;
44594459
44604460 curTemplate = &m_conditionTemplates[Condition::SKIRMISH_PLAYER_HAS_DISCOVERED_PLAYER];
@@ -4485,7 +4485,7 @@ void ScriptEngine::init( void )
44854485 curTemplate->m_parameters [1 ] = Parameter::INT;
44864486 curTemplate->m_numUiStrings = 3 ;
44874487 curTemplate->m_uiStrings [0 ] = " " ;
4488- curTemplate->m_uiStrings [1 ] = " closest supply src with at least " ;
4488+ curTemplate->m_uiStrings [1 ] = " closest supply source with at least " ;
44894489 curTemplate->m_uiStrings [2 ] = " available resources is SAFE from enemy influence." ;
44904490
44914491 curTemplate = &m_conditionTemplates[Condition::SUPPLY_SOURCE_ATTACKED];
@@ -4581,8 +4581,8 @@ void ScriptEngine::reset( void )
45814581 if (m_numFrames > 1 ) {
45824582 DEBUG_LOG_RAW ((" \n " ));
45834583 DEBUG_LOG ((" ***SCRIPT ENGINE STATS %.0f frames:" , m_numFrames));
4584- DEBUG_LOG ((" Avg time to update %.3f milisec " , 1000 *m_totalUpdateTime/m_numFrames));
4585- DEBUG_LOG ((" Max time to update %.3f miliseconds ." , m_maxUpdateTime*1000 ));
4584+ DEBUG_LOG ((" Avg time to update %.3f milliseconds " , 1000 *m_totalUpdateTime/m_numFrames));
4585+ DEBUG_LOG ((" Max time to update %.3f milliseconds ." , m_maxUpdateTime*1000 ));
45864586 }
45874587 m_numFrames=0 ;
45884588 m_totalUpdateTime=0 ;
@@ -6192,14 +6192,14 @@ void ScriptEngine::checkConditionsForTeamNames(Script *pScript)
61926192 singletonTeamName = teamName; // Singleton team - use if it is the only one, but can have multiple of these.
61936193 } else {
61946194 if (multiTeamName.isEmpty ()) {
6195- multiTeamName = teamName; // Use one multiply defined team . Good.
6195+ multiTeamName = teamName; // Use one team defined multiple times . Good.
61966196 } else if (multiTeamName!=teamName) {
6197- // More than one multiply defined team - bad.
6198- AppendDebugMessage (" ***WARNING: Script contains multiple non-singleton team conditions ::***" , false );
6197+ // More than one team defined multiple times - bad.
6198+ AppendDebugMessage (" ***WARNING: Script contains multiple conditions for teams defined multiple times ::***" , false );
61996199 AppendDebugMessage (scriptName, false );
62006200 AppendDebugMessage (multiTeamName, false );
62016201 AppendDebugMessage (teamName, false );
6202- DEBUG_LOG ((" WARNING: Script '%s' contains multiple non-singleton team conditions : %s & %s." , scriptName.str (),
6202+ DEBUG_LOG ((" WARNING: Script '%s' contains multiple conditions for teams defined multiple times : %s & %s." , scriptName.str (),
62036203 multiTeamName.str (), teamName.str ()));
62046204 }
62056205 }
@@ -6285,7 +6285,7 @@ void ScriptEngine::executeScript( Script *pScript )
62856285 // Script Debug window
62866286 _appendMessage (pScript->getName (), false );
62876287
6288- // Only do this is there are actually false actions.
6288+ // Only do this if there are actually false actions.
62896289 executeActions (pScript->getFalseAction ());
62906290 }
62916291 }
@@ -6308,7 +6308,7 @@ void ScriptEngine::executeScript( Script *pScript )
63086308 // Script Debug window
63096309 _appendMessage (pScript->getName (), false );
63106310
6311- // Only do this is there are actually false actions.
6311+ // Only do this if there are actually false actions.
63126312 executeActions (pScript->getFalseAction ());
63136313 if (pScript->isOneShot ()) {
63146314 pScript->setActive (false );
@@ -6441,7 +6441,7 @@ void ScriptEngine::transferObjectName( const AsciiString& unitName, Object *pNew
64416441 removeObjectFromCache (pNewObject);
64426442 }
64436443
6444- pNewObject->setName (unitName); // make sure it's named the name.
6444+ pNewObject->setName (unitName); // make sure it has the correct name.
64456445
64466446 // Loop through the cached list and find the string entry. If found, change the object
64476447 // so it's pointing to the new one.
@@ -7497,7 +7497,7 @@ void SequentialScript::xfer( Xfer *xfer )
74977497 // frames to wait
74987498 xfer->xferInt ( &m_framesToWait );
74997499
7500- // dont advance instruction
7500+ // don't advance instruction
75017501 xfer->xferBool ( &m_dontAdvanceInstruction );
75027502
75037503}
@@ -8469,7 +8469,7 @@ void ScriptEngine::xfer( Xfer *xfer )
84698469 else
84708470 {
84718471
8472- // the vector should be emtpy now
8472+ // the vector should be empty now
84738473 if ( m_namedReveals.empty () == FALSE )
84748474 {
84758475
0 commit comments