Difference between revisions of "CZCareer"

From AlliedModders Wiki
Jump to: navigation, search
 
Line 17: Line 17:
 
{{hl1msg|short|Unknown}}
 
{{hl1msg|short|Unknown}}
 
{{end-hl1msg}}
 
{{end-hl1msg}}
Example:
+
Example usage:
 
{{begin-hl1msg|CZCareer|string,short}}
 
{{begin-hl1msg|CZCareer|string,short}}
 
{{hl1msg|string|START}}
 
{{hl1msg|string|START}}
Line 23: Line 23:
 
{{end-hl1msg}}
 
{{end-hl1msg}}
  
ADDING MORE LATER
+
==GOGOGO==
 +
Sent at the start of a new Condition Zero singleplayer round. The exact purpose isn't known.<br>
 +
{{qnotice|Has no extra arguments.}}
 +
{{begin-hl1msg|GOGOGO}}
 +
{{end-hl1msg}}
 +
Example usage:
 +
{{begin-hl1msg|CZCareer|string}}
 +
{{hl1msg|string|GOGOGO}}
 +
{{end-hl1msg}}
 +
 
 +
==TASKPART==
 +
Used to update task progress. For example, on "kill X many enemy" tasks, Progress would be the amount of enemies killed so far.<br>
 +
{{qnotice|The task will always appear as incomplete, regardless of Progress, until a TASKDONE is sent.}}
 +
{{begin-hl1msg|TASKPART|byte,short}}
 +
{{hl1msg|byte|Task}}
 +
{{hl1msg|short|Progress}}
 +
{{end-hl1msg}}
 +
Example usage:
 +
{{begin-hl1msg|CZCareer|string,byte,short}}
 +
{{hl1msg|string|TASKPART}}
 +
{{hl1msg|byte|2}}
 +
{{hl1msg|short|1}}
 +
{{end-hl1msg}}
 +
 
 +
==TASKDONE==
 +
Used to mark the completion of a task. For example, changes INCOMPLETE on the scoreboard to COMPLETE.<br>
 +
{{begin-hl1msg|TASKDONE|byte}}
 +
{{hl1msg|byte|Task}}
 +
{{end-hl1msg}}
 +
Example usage:
 +
{{begin-hl1msg|CZCareer|string,byte}}
 +
{{hl1msg|string|TASKDONE}}
 +
{{hl1msg|byte|2}}
 +
{{end-hl1msg}}
 +
 
 +
==TASKUNDONE==
 +
Used to <b>un</b>mark the completion of a task. For example, changes COMPLETE on the scoreboard to INCOMPLETE.<br>
 +
{{begin-hl1msg|TASKUNDONE|byte}}
 +
{{hl1msg|byte|Task}}
 +
{{end-hl1msg}}
 +
Example usage:
 +
{{begin-hl1msg|CZCareer|string,byte}}
 +
{{hl1msg|string|TASKUNDONE}}
 +
{{hl1msg|byte|2}}
 +
{{end-hl1msg}}
 +
 
 +
==MATCH==
 +
Sent at the end of a mission, after it is finished. Appears to save the game.<br>
 +
{{begin-hl1msg|MATCH|long,long}}
 +
{{hl1msg|long|CT Wins}}
 +
{{hl1msg|long|T Wins}}
 +
{{end-hl1msg}}
 +
Example usage:
 +
{{begin-hl1msg|CZCareer|string,long,long}}
 +
{{hl1msg|string|MATCH}}
 +
{{hl1msg|long|3}}
 +
{{hl1msg|long|1}}
 +
{{end-hl1msg}}

Revision as of 16:02, 30 December 2006

CZCareer Event

This event supplies certain updates to the player regarding Condition Zero singleplayer missions. Here is its basic layout:

Name: CZCareer
Structure:
string Type
* Parameters


Note: Using an invalid type has no repercussions whatsoever.
Note: The types are case-sensitive.

The Parameters will change depending on what type you use. Below are the Parameters for the known valid types. Assume that the Type for each one of them is the same as the header for that section.

START

Sent at the start of a Condition Zero singleplayer mission. The exact purpose isn't known.
Note: Unknown is always 300.

Name: START
Structure:
short Unknown


Example usage:

Name: CZCareer
Structure:
string START
short 300


GOGOGO

Sent at the start of a new Condition Zero singleplayer round. The exact purpose isn't known.
Note: Has no extra arguments.

Name: GOGOGO
Structure:


Example usage:

Name: CZCareer
Structure:
string GOGOGO


TASKPART

Used to update task progress. For example, on "kill X many enemy" tasks, Progress would be the amount of enemies killed so far.
Note: The task will always appear as incomplete, regardless of Progress, until a TASKDONE is sent.

Name: TASKPART
Structure:
byte Task
short Progress


Example usage:

Name: CZCareer
Structure:
string TASKPART
byte 2
short 1


TASKDONE

Used to mark the completion of a task. For example, changes INCOMPLETE on the scoreboard to COMPLETE.

Name: TASKDONE
Structure:
byte Task


Example usage:

Name: CZCareer
Structure:
string TASKDONE
byte 2


TASKUNDONE

Used to unmark the completion of a task. For example, changes COMPLETE on the scoreboard to INCOMPLETE.

Name: TASKUNDONE
Structure:
byte Task


Example usage:

Name: CZCareer
Structure:
string TASKUNDONE
byte 2


MATCH

Sent at the end of a mission, after it is finished. Appears to save the game.

Name: MATCH
Structure:
long CT Wins
long T Wins


Example usage:

Name: CZCareer
Structure:
string MATCH
long 3
long 1