rating: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (note is also valid for ArmA)
m (template:command argument fix)
(18 intermediate revisions by 12 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|RATING]]
[[Category:Scripting Commands OFP 1.96|RATING]]
[[Category:Scripting Commands OFP 1.46|RATING]]
[[Category:Scripting Commands ArmA|RATING]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]
{{Command|= Comments
{{Command|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 11: Line 5:


|1.00|= Game version
|1.00|= Game version
|arg= global |= Arguments in MP
____________________________________________________________________________________________
____________________________________________________________________________________________


| Check unit rating. Rating is increased for killing enemies, decreased for killing friendlies (see [[ArmA:_Rating Scores|Rating Scores]]). Can be changed via [[addRating]] by the mission designer. |= Description
| Check unit rating. Rating is increased for killing enemies, decreased for killing friendlies (see [[ArmA:_Rating Values|Rating Values]]). Can be changed via [[addRating]] by the mission designer.
 
The rating of the player is displayed as the "score" at the end of the mission. Via [[Description.ext]] one can define how many points it takes to get a perfect score, as well as the number of stars.|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''rating''' unit |= Syntax
| [[Number]] <nowiki>=</nowiki> '''rating''' unitName|SYNTAX=


|p1= unit: [[Object]] |= Parameter 1
|p1= unitName: [[Object]] |PARAMETER1=


| [[Number]] |= Return value
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_score <nowiki>=</nowiki> '''rating''' [[player]] </code> |= Example 1
|x1= <code>_score <nowiki>=</nowiki> '''rating''' [[player]] </code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[addRating]], [[rank]] |= See also
| [[Side relations]], [[ArmA: Rating Values]], [[addRating]], [[rank]], [[setUnitRank]] |SEEALSO=


}}
}}
Line 34: Line 32:
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->


<dd class="notedate">Posted on August 3, 2006 - 14:04</dd>
<dt class="note">Unknown
<dt class="note">'''[[User:Hardrock|hardrock]]'''</dt><dd class="note">''Notes from before the conversion:''
<dd class="note">In ArmA 1.18 rating does only return rating levels for units that are local.
 
Use [[addRating]] to change the rating of a unit.
 
The rating of the player is displayed as the "score" 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.
</dd>
 
<dd class="notedate">Posted on January 9, 2007</dd>
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''</dt>
 
<dd class="note">In both '''ArmA''' and '''OFP v1.96''', if a unit's rating drops below -2000, it will be considered enemy and attacked by all units.</dd>
<dd class="note">A unit's [[rank]] changes its starting rating: Private=0, Corporal=500,Sergeant=1500,Lieutenant=2500,Captain=3500,Major=5000,Colonel=7500</dd>


<!-- Note Section END -->
<!-- Note Section END -->
Line 52: Line 39:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|RATING]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|RATING]]
[[Category:Scripting Commands OFP 1.46|RATING]]
[[Category:Scripting Commands ArmA|RATING]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Object_Information|{{uc:{{PAGENAME}}}}]]

Revision as of 15:45, 7 April 2019

Hover & click on the images for description

Description

Description:
Check unit rating. Rating is increased for killing enemies, decreased for killing friendlies (see Rating Values). Can be changed via addRating by the mission designer. The rating of the player is displayed as the "score" at the end of the mission. Via Description.ext one can define how many points it takes to get a perfect score, as well as the number of stars.
Groups:
Uncategorised

Syntax

Syntax:
Number = rating unitName
Parameters:
unitName: Object
Return Value:
Number

Examples

Example 1:
_score = rating player

Additional Information

See also:
Side relationsArmA: Rating ValuesaddRatingranksetUnitRank

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Unknown
In ArmA 1.18 rating does only return rating levels for units that are local.

Bottom Section