public class 1500_Achievement_Commands extends Object
============================== |1500.- Achievement commands.| ==============================
| 构造器和说明 |
|---|
1500_Achievement_Commands() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
achievementadd()
achievementadd(<achievement id>{,<char id>})
This function will add an achievement to the player's log for the attached
player or the supplied <char id>.
|
void |
achievementcomplete()
achievementcomplete(<achievement id>{,<char id>})
This function will complete an achievement for the attached player or the supplied
<char id>.
|
void |
achievementexists()
achievementexists(<achievement id>{,<char id>});
This function will return if the achievement exists on the player or the supplied
<char id>.
|
void |
achievementinfo()
achievementinfo(<achievement id>,<type>{,<char id>})
This function will return the specified <type> value for an achievement of the
attached player or the supplied <char id>.
|
void |
achievementremove()
achievementremove(<achievement id>{,<char id>})
This function will remove an achievement from the player's log for the attached
player or the supplied <char id>.
|
void |
achievementupdate()
achievementupdate(<achievement id>,<type>,<value>{,<char id>})
This function will update an achievement's value for an achievement of the attached
player or the supplied <char id>.
|
achievementadd(<achievement id>{,<char id>})
This function will add an achievement to the player's log for the attached
player or the supplied <char id>. The objective requirements are not ignored
when using this function.
Returns true on success and false on failure.
achievementremove(<achievement id>{,<char id>})
This function will remove an achievement from the player's log for the attached
player or the supplied <char id>.
Returns true on success and false on failure.
achievementinfo(<achievement id>,<type>{,<char id>})
This function will return the specified <type> value for an achievement of the
attached player or the supplied <char id>. If the player doesn't have the
achievement active (no progress has been made): if the achievement doesn't
exist -1 will be returned, or -2 will be returned on any other error such as
an invalid <type>.
Valid types:
- ACHIEVEINFO_COUNT1
- ACHIEVEINFO_COUNT2
- ACHIEVEINFO_COUNT3
- ACHIEVEINFO_COUNT4
- ACHIEVEINFO_COUNT5
- ACHIEVEINFO_COUNT6
- ACHIEVEINFO_COUNT7
- ACHIEVEINFO_COUNT8
- ACHIEVEINFO_COUNT9
- ACHIEVEINFO_COUNT10
- ACHIEVEINFO_COMPLETE
- ACHIEVEINFO_COMPLETEDATE
- ACHIEVEINFO_GOTREWARD
- ACHIEVEINFO_LEVEL (<achievement id> is useless for this)
- ACHIEVEINFO_SCORE (<achievement id> is useless for this)
achievementcomplete(<achievement id>{,<char id>})
This function will complete an achievement for the attached player or the supplied
<char id>. The objective requirements are ignored when using this function.
Returns true on success and false on failure.
achievementexists(<achievement id>{,<char id>});
This function will return if the achievement exists on the player or the supplied
<char id>.
Returns true on success and false on failure.
achievementupdate(<achievement id>,<type>,<value>{,<char id>})
This function will update an achievement's value for an achievement of the attached
player or the supplied <char id>. If the player does not have the achievement active
(no progress has been made) it will be added to the player's log first before updating
the <type> value.
Returns true on success and false on failure.
See 'achievementinfo' for valid <type> values.
- ACHIEVEINFO_COMPLETE, ACHIEVEINFO_COMPLETEDATE, and ACHIEVEINFO_GOTREWARD require the
specific value returned from 'gettimetick(2)'.
- Excludes ACHIEVEINFO_LEVEL and ACHIEVEINFO_SCORE.
Copyright © 工程的初始时间(可选)–2019. All rights reserved.