rating: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
back to [[Scripting_Reference#R|COMREF]] | |||
<h2 style="color:#000066">'''rating ''unit'''''</h2> | <h2 style="color:#000066">'''rating ''unit'''''</h2> | ||
'''Operand types:''' | '''Operand types:''' | ||
unit: [[Object]] | '''unit:''' [[Object]] | ||
'''Type of returned value:''' | '''Type of returned value:''' | ||
Line 11: | Line 14: | ||
'''Description:''' | '''Description:''' | ||
Check unit rating. Rating is increased for killing enemies, decreased for killing friendlies, can be changed by mission designer. | Check unit rating. | ||
Rating is increased for killing enemies, decreased for killing friendlies, can be changed by mission designer. | |||
'''Example:''' | '''Example:''' | ||
_score = '''rating''' player | _score = '''rating''' [[player]] | ||
'''Comments''' | '''Comments''' | ||
Use [[addRating]] to change the rating of a unit. | |||
The rating of the player is displayed as the "core" at the end of the mission. | |||
In the [[description.ext]], you define how many points it takes to get a perfect score, and all those pretty gold stars. | In the [[description.ext]], you define how many points it takes to get a perfect score, and all those pretty gold stars. |
Revision as of 23:28, 15 April 2006
back to COMREF
rating unit
Operand types:
unit: Object
Type of returned value:
Description:
Check unit rating.
Rating is increased for killing enemies, decreased for killing friendlies, can be changed by mission designer.
Example:
_score = rating player
Comments
Use addRating to change the rating of a unit.
The rating of the player is displayed as the "core" at the end of the mission.
In the description.ext, you define how many points it takes to get a perfect score, and all those pretty gold stars.