From Ryzom Forge Wiki
(20 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{tabLang|EN|DE|ARCC Guide EN|ES|ARCC Guide FR|RU}} | + | {{Migrated to|:en:ARK, guide}} |
− | {{ | + | {{tabLang|EN|ARCC Guide DE|ARCC Guide EN|ARCC Guide ES|ARCC Guide FR|ARCC Guide RU}} |
− | { | + | |
+ | {{toTrad|DE}} | ||
+ | {{toTrad|EN|To check the quality of the text itself}} | ||
+ | {{toTrad|ES}} | ||
+ | {{toTrad|FR|À corriger par rapport à l'anglais}} | ||
+ | {{toTrad|RU}} | ||
+ | |||
+ | <big>'''User guide for Ark, short for Ryzom Arkitect.'''</big> | ||
+ | |||
+ | ''For historical reasons, those manuals refers very often, almost always, to '''A.R.C.C.'''. | ||
+ | ''This is due to the fact that the full documentation has been started with the initial name, '''ARCC''', meaning '''A'''dvanced '''R'''yzom '''C'''ontent '''C'''reator. | ||
− | |||
*[[ARCC intro EN|Volume I : Quick Start Guide]] | *[[ARCC intro EN|Volume I : Quick Start Guide]] | ||
*[[ARCC Guide EN|Volume II : User guide]] | *[[ARCC Guide EN|Volume II : User guide]] | ||
*[[ARCC Expert EN|Volume III: Advanced user guide]] | *[[ARCC Expert EN|Volume III: Advanced user guide]] | ||
− | {{Banner|ff0|Important Note|[[File:WarningRyzom.png |left|]] To coming on documentation and made quicly enable translations, I try to write as much as possible what I have understood and tested. | + | <!--{{Banner|ff0|Important Note|[[File:WarningRyzom.png |left|]] To coming on documentation and made quicly enable translations, I try to write as much as possible what I have understood and tested. |
− | '''What is not clear and validated is highlighted in yellow'''.}} | + | '''What is not clear and validated is highlighted in yellow'''. |
+ | |||
+ | You are welcome to improve the documentation.}} | ||
{{Banner|ff0|Important Note|[[File:WarningRyzom.png|left|]] This page is actually a merger of other pages (wiki transclusion). | {{Banner|ff0|Important Note|[[File:WarningRyzom.png|left|]] This page is actually a merger of other pages (wiki transclusion). | ||
Line 16: | Line 27: | ||
With the exception of paragraph 2.1, | With the exception of paragraph 2.1, | ||
− | '''all paragraphs Level 2 are editable and can be viewed by clicking on the arrow (→) behind the title of the functions'''.}} | + | '''all paragraphs Level 2 are editable and can be viewed by clicking on the arrow (→) behind the title of the functions'''.}}--> |
+ | '''Note''': with the exception of paragraph 2.1, all paragraphs Level 2 are in single page that can be accessed by clicking on the arrow (→) behind the title of the functions. | ||
==The script functions== | ==The script functions== | ||
This guide is intended to show how to use the scripting capabilities of the ARCC, Advanced Ryzom Content Creator. | This guide is intended to show how to use the scripting capabilities of the ARCC, Advanced Ryzom Content Creator. | ||
Line 43: | Line 55: | ||
</div> | </div> | ||
− | |||
===weVMessage (Displaying a message)=== | ===weVMessage (Displaying a message)=== | ||
{| | {| | ||
|[[File:Style.png|32px|Home]] | |[[File:Style.png|32px|Home]] | ||
− | | | + | |Internal function name: ''' ''weVMessage'' ''' |
|} | |} | ||
<div style="overflow: hidden"> | <div style="overflow: hidden"> | ||
[[File:WeVMessage 3.png|200px|thumb|left|window title and function name]] | [[File:WeVMessage 3.png|200px|thumb|left|window title and function name]] | ||
− | + | This function displays a message in a WebIG window, with a title (in the sample here: Unit_test: " ''May the Force be with you'' " ) | |
</div> | </div> | ||
<div style="overflow: hidden"> | <div style="overflow: hidden"> | ||
[[File:WeVMessage.png|200px|thumb|left|weVMessage_v3]] | [[File:WeVMessage.png|200px|thumb|left|weVMessage_v3]] | ||
− | *'''1)''' <span style="color:#f0f">'''[commun]'''</span> | + | *'''1)''' <span style="color:#f0f">'''[commun]'''</span> Function name. |
− | *'''2)''' <span style="color:#f00">'''[expert]'''</span> | + | *'''2)''' <span style="color:#f00">'''[expert]'''</span> Always display this message (Yes/No) |
− | *'''3)''' <span style="color:#f00">'''[expert]'''</span> | + | *'''3)''' <span style="color:#f00">'''[expert]'''</span> Player must click the link in the message (Yes/No) |
− | *'''4)''' | + | *'''4)''' Text field for the message. |
</div> | </div> | ||
<div style="overflow: hidden"> | <div style="overflow: hidden"> | ||
[[File:WeVMessage 2.png|200px|thumb|left|Text field]] | [[File:WeVMessage 2.png|200px|thumb|left|Text field]] | ||
− | *'''5)''' <span style="color:#f0f">'''[commun]'''</span> | + | *'''5)''' <span style="color:#f0f">'''[commun]'''</span> enlargement zone corner '''(4)''' |
− | *'''6)''' <span style="color:#f0f">'''[commun]'''</span> | + | *'''6)''' <span style="color:#f0f">'''[commun]'''</span> toggle button editor. (assisted mode or not) |
</div> | </div> | ||
− | *'''7)''' <span style="color:#f00">'''[expert]'''</span> | + | *'''7)''' <span style="color:#f00">'''[expert]'''</span> Type of message content: |
− | :*'''bbcode''' ( | + | :*'''bbcode''' (recommended; an aide-memoire of ryzom bbcode is provided in a [[ARCC Expert EN|dedicated page]].) |
<div style="margin:0em; padding:1em 2em;border: thin inset #{{ColorAtys|type=dark|group=HRP}};background:#{{ColorAtys|type=light|group=HRP}};color:#{{ColorAtys|type=fg|group=HRP}};"> | <div style="margin:0em; padding:1em 2em;border: thin inset #{{ColorAtys|type=dark|group=HRP}};background:#{{ColorAtys|type=light|group=HRP}};color:#{{ColorAtys|type=fg|group=HRP}};"> | ||
<poem> | <poem> | ||
Line 73: | Line 84: | ||
</poem> | </poem> | ||
</div> | </div> | ||
− | :*'''html''' ( | + | :*'''html''' (Specific, studied later, but immediately testable in web page) |
<div style="margin:0em; padding:1em 2em;border: thin inset #{{ColorAtys|type=dark|group=HRP}};background:#{{ColorAtys|type=light|group=HRP}};color:#{{ColorAtys|type=fg|group=HRP}};"> | <div style="margin:0em; padding:1em 2em;border: thin inset #{{ColorAtys|type=dark|group=HRP}};background:#{{ColorAtys|type=light|group=HRP}};color:#{{ColorAtys|type=fg|group=HRP}};"> | ||
<poem> | <poem> | ||
Exemple : | Exemple : | ||
<nowiki><hr/>Hello! | <nowiki><hr/>Hello! | ||
− | <br/> | + | <br/>this is a new line |
<hr>External link! | <hr>External link! | ||
<img src="http://wiki.blender.org/skins/naiad/images/blender_logo.png"/><hr/></nowiki> | <img src="http://wiki.blender.org/skins/naiad/images/blender_logo.png"/><hr/></nowiki> | ||
</poem> | </poem> | ||
</div> | </div> | ||
− | :*'''lua''' ( | + | :*'''lua''' (very specific; to see later) |
<div style="margin:0em; padding:1em 2em;border: thin inset #{{ColorAtys|type=dark|group=HRP}};background:#{{ColorAtys|type=light|group=HRP}};color:#{{ColorAtys|type=fg|group=HRP}};"> | <div style="margin:0em; padding:1em 2em;border: thin inset #{{ColorAtys|type=dark|group=HRP}};background:#{{ColorAtys|type=light|group=HRP}};color:#{{ColorAtys|type=fg|group=HRP}};"> | ||
<poem> | <poem> | ||
Line 100: | Line 111: | ||
</poem> | </poem> | ||
</div> | </div> | ||
− | *8) <span style="color:#f0f">'''[commun]'''</span> | + | *8) <span style="color:#f0f">'''[commun]'''</span> Internal name of the function. This name is used especially for jumps, loops ... |
− | *9) <span style="color:#f0f">'''[commun]'''</span> | + | *9) <span style="color:#f0f">'''[commun]'''</span> Save Changes button. |
− | *10) <span style="color:#f0f">'''[commun]'''</span> | + | *10) <span style="color:#f0f">'''[commun]'''</span> toggle the "Basic Edition" mode to "Advanced Edit" mode. |
+ | Once in "Advanced Edit" mode, it is no longer possible to return to the "Basic Edition" mode. | ||
+ | |||
+ | The description of functions in that guide will always be in "Advanced Edit" mode. | ||
+ | The specific "Advanced objects" are indicated by <span style="color:#f00">'''[expert]'''</span> | ||
==Actions without player intervention== | ==Actions without player intervention== | ||
− | ===End of script [[End of script ARCC | + | ===End of script [[End of script ARCC EN|→]]=== |
− | {{: | + | {{:End of script ARCC EN}} |
− | ===Jump [[Jump ARCC | + | ===Jump [[Jump ARCC EN |→]]=== |
− | {{: Jump ARCC | + | {{: Jump ARCC EN }} |
− | ===Include [[Include ARCC | + | ===Include [[Include ARCC EN |→]]=== |
− | {{: Include ARCC | + | {{: Include ARCC EN }} |
− | ===While [[While ARCC | + | ===While [[While ARCC EN |→]]=== |
− | {{: While ARCC | + | {{: While ARCC EN }} |
− | === | + | ===Window (webig windows management) [[Window ARCC EN |→]]=== |
− | {{: Window ARCC | + | {{: Window ARCC EN }} |
− | ===Display message in game | + | ===DisplayIgMessage (Display message in game: broadcast, crafting information...) [[DisplayIgMessage ARCC EN |→]]=== |
− | {{: DisplayIgMessage ARCC | + | {{: DisplayIgMessage ARCC EN }} |
− | ===ShapeManager [[ShapeManager ARCC | + | ===ShapeManager [[ShapeManager ARCC EN |→]]=== |
− | {{: ShapeManager ARCC | + | {{: ShapeManager ARCC EN }} |
− | ===Save value in the database [[Database ARCC | + | ===Database (Save value in the database) [[Database ARCC EN |→]]=== |
− | {{: Database ARCC | + | {{: Database ARCC EN }} |
− | === | + | ===ReceiveItems (Player received item) [[ReceiveItems ARCC EN |→]]=== |
− | {{: | + | {{: ReceiveItems ARCC EN }} |
− | === | + | === DeleteItems [[DeleteItems ARCC EN |→]]=== |
− | {{: | + | {{: DeleteItems ARCC EN }} |
− | === | + | ===NpcManager [[NpcManager ARCC EN |→]]=== |
− | {{: | + | {{: NpcManager ARCC EN }} |
− | === | + | ===Hmagic (Send command to server) [[Hmagic ARCC EN|→]]=== |
− | + | {{: Hmagic ARCC EN }} | |
− | |||
− | |||
− | {{: Hmagic ARCC | ||
==Checks== | ==Checks== | ||
− | ===Datas [[Datas ARCC | + | All these check offers action after a logical evaluation, TRUE or FALSE. |
− | {{: Datas ARCC | + | ===Check Datas [[Datas ARCC EN |→]]=== |
+ | {{: Datas ARCC EN }} | ||
− | ===Switch [[Switch ARCC | + | ===Switch [[Switch ARCC EN |→]]=== |
− | {{: Switch ARCC | + | {{: Switch ARCC EN }} |
− | ===Verification of value in database [[Check Database ARCC | + | ===Check Database (Verification of value in database) [[Check Database ARCC EN |→]]=== |
− | {{: Check Database ARCC | + | {{: Check Database ARCC EN }} |
− | ===Player verification check from server | + | ===Check PlayerInfos (Player verification check from server: Fames, Dapper, Position...) [[Check PlayerInfos ARCC EN |→]]=== |
− | {{: Check PlayerInfos ARCC | + | {{: Check PlayerInfos ARCC EN }} |
==Captures information== | ==Captures information== | ||
− | ===Captures information on the player [[PlayerInfos ARCC | + | ===PlayerInfos (Captures information on the player) [[PlayerInfos ARCC EN |→]]=== |
− | {{: PlayerInfos ARCC | + | {{: PlayerInfos ARCC EN }} |
==Steps to be validated by player== | ==Steps to be validated by player== | ||
− | ===NewGiveItems [[NewGiveItems ARCC | + | ===NewGiveItems [[NewGiveItems ARCC EN |→]]=== |
− | {{: NewGiveItems ARCC | + | {{: NewGiveItems ARCC EN }} |
− | ===NPC dialog bubble option | + | ===NpcDialog (NPC dialog bubble option like classic missions) [[NpcDialog ARCC EN |→]]=== |
− | {{: NpcDialog ARCC | + | {{: NpcDialog ARCC EN }} |
− | ===The player must wait X seconds for validation | + | ===Timer (The player must wait X seconds for validation, automated validation possible) [[Timer ARCC EN |→]]=== |
− | {{: Timer ARCC | + | {{: Timer ARCC EN }} |
− | ===Mission [[Mission ARCC | + | ===Mission [[Mission ARCC EN |→]]=== |
− | {{: Mission ARCC | + | {{: Mission ARCC EN }} |
− | ===Itemshop [[Itemshop ARCC | + | ===Itemshop [[Itemshop ARCC EN |→]]=== |
− | {{: Itemshop ARCC | + | {{: Itemshop ARCC EN }} |
+ | {{In_Category|ARCC}} | ||
{{TPInWikiRyzom}} | {{TPInWikiRyzom}} | ||
− | |||
[[Category:Tutorials]] | [[Category:Tutorials]] | ||
[[Category:ARCC]] | [[Category:ARCC]] | ||
[[Category:EN]] | [[Category:EN]] |
Latest revision as of 09:28, 14 June 2018
Migration
Please use the migrated document at URL shown below.
User guide for Ark, short for Ryzom Arkitect.
For historical reasons, those manuals refers very often, almost always, to A.R.C.C.. This is due to the fact that the full documentation has been started with the initial name, ARCC, meaning Advanced Ryzom Content Creator.
Note: with the exception of paragraph 2.1, all paragraphs Level 2 are in single page that can be accessed by clicking on the arrow (→) behind the title of the functions.
Contents
- 1 The script functions
- 2 Visualizations
- 3 Actions without player intervention
- 3.1 End of script →
- 3.2 Jump →
- 3.3 Include →
- 3.4 While →
- 3.5 Window (webig windows management) →
- 3.6 DisplayIgMessage (Display message in game: broadcast, crafting information...) →
- 3.7 ShapeManager →
- 3.8 Database (Save value in the database) →
- 3.9 ReceiveItems (Player received item) →
- 3.10 DeleteItems →
- 3.11 NpcManager →
- 3.12 Hmagic (Send command to server) →
- 4 Checks
- 5 Captures information
- 6 Steps to be validated by player
The script functions
This guide is intended to show how to use the scripting capabilities of the ARCC, Advanced Ryzom Content Creator. It is recommended to read the volume I for having an overview of the use of the ARCC. The functions of the script are classified into five groups.
- Visualizations
- Actions without player intervention
- Checks
- Captures information
- Steps to be validated by player
Visualizations
This group has only one function, one of the simplest and most common.
It serves as a reference with regard to the areas and buttons common to all functions detailed in separate pages for an easy maintenance of the ARRC documentation.
- Common objects will be reported in the documentation by [common].
- The tag [expert] corresponds to the advanced editing mode (see below paragraph 10).
weVMessage (Displaying a message)
Internal function name: weVMessage |
- 7) [expert] Type of message content:
- bbcode (recommended; an aide-memoire of ryzom bbcode is provided in a dedicated page.)
Exemple :
[session=url_validated][scriptinfos]is_valid_url[/scriptinfos][/session]
- html (Specific, studied later, but immediately testable in web page)
Exemple :
<hr/>Hello!
<br/>this is a new line
<hr>External link!
<img src="http://wiki.blender.org/skins/naiad/images/blender_logo.png"/><hr/>
- lua (very specific; to see later)
Exemple :
[lua]
function game:onMissionSelected(index)
disableModalWindow()
self:updateCurrMissionComboBox()
local missionWnd = getMissionWindow()
setOnDraw(missionWnd, "game:updateArccMissionCustomDesc()")
end
...
updateArccMissionCustomDesc_loop = 100
game:updateArccMissionCustomDesc(1)
[/lua]
- 8) [commun] Internal name of the function. This name is used especially for jumps, loops ...
- 9) [commun] Save Changes button.
- 10) [commun] toggle the "Basic Edition" mode to "Advanced Edit" mode.
Once in "Advanced Edit" mode, it is no longer possible to return to the "Basic Edition" mode.
The description of functions in that guide will always be in "Advanced Edit" mode. The specific "Advanced objects" are indicated by [expert]
Actions without player intervention
End of script →
Migration
Please use the migrated document at URL shown below.
Function name : lEnd_v4 |
It is "wise" to finish the scripts systematically by an "End of Script". The "End of script" can be judiciously used to abort a script. At the end of the script, it helps to have a single output accessed by conditional branches as weAJump (jump).
Jump →
Migration
Please use the migrated document at URL shown below.
Function name : lJump_v4 |
This function allows you to interrupt the sequence of steps (also called "stages" in ARCC) by connecting to another function within the script. It only allows to jump "foreward." To go back, use the function weAWhile .
ReceiveItems (Player received item) →
Migration
Please use the migrated document at URL shown below.
Function name : weAReceiveItems |
DeleteItems →
Migration
Please use the migrated document at URL shown below.
Function name: weADeleteItems |
NpcManager →
Migration
Please use the migrated document at URL shown below.
Nom interne de la fonction : weANpcManager |
Gestion du PNJ.
weAGroupScript
|
weASpawnBot
|
weADeSpawnBot
|
weAGroupScriptSay
|
weAGroupScriptEmote
|
weAGroupScriptAiAction
|
Hmagic (Send command to server) →
Migration
Please use the migrated document at URL shown below.
Function name : WeHMagic |
Hmagic will send a command to the server.
weASendUrl
Used to open an url in a player. It should be used for instance for to Rangers rite
weATeleport
Téléports player and possibly his mount.
weATeleportToEntity
weAManageMoney
Give or Take Dappers.
|
weAChangeFame
|
weAChangeFactionPoints
|
weAManageGuildMoney
|
weAManageBuilding
Sell / make accessible player or guild house.
|
weATriggerPacs
Trigger an event PACS (to activate an elevator or vortex)
|
weASetOrganization
Defining the Third Faction Player (Marauder, Ranger, Trytonist)
|
weAFixOldBuildings
|
Checks
All these check offers action after a logical evaluation, TRUE or FALSE.
Check Datas →
Migration
Please use the migrated document at URL shown below.
Function name: weCDatas |
This function is the equivalent of a logical test: if Value compared with testValue by testFunction is TRUE then make valideAction else failAction .
Switch →
Migration
Please use the migrated document at URL shown below.
Function name : weCSwitch_v2 |
This function allows 10 conditional branches + 1 default based on a value supplied as the first parameter of comparison.
Check Database (Verification of value in database) →
Migration
Please use the migrated document at URL shown below.
Function name : weCDatabase |
This function allows to chain actions depending on a value in a database of the event.
Check PlayerInfos (Player verification check from server: Fames, Dapper, Position...) →
Function name : weCPlayerInfos |
weCPlayerInfos can test any information stored on the server for the player and run an appropriate action.
weCPlayerFaction
Tests if the player belongs to a faction.
|
weCPlayerDappers
Tests if the player has a certain amount of dappers.
|
weCPlayerPosition
Examines the position of the player. If the player is in the rectangle bounded by coordinates mi /max x/y the return value is TRUE.
weCPlayerItem
Tests if a certain amount of item at certain level is present in one of the containers of the player.
weCPlayerTarget
Tests if the target is the desired one.
|
weCPlayerFame
Tests reputation in the nations and factions.
weCPlayerGuild
Tests the rank of the player in his guild
|
weCPlayerGuildDappers
Tests if a minimum amount of dappers is in the treasury of the guild.
|
weCPlayerFreetrial
Test if the player is free version or not.
no params |
Captures information
PlayerInfos (Captures information on the player) →
Migration
Please use the migrated document at URL shown below.
Function name : weGPlayerInfos |
weGPlayerInfos allows you to take all the information stored on the target or position of the player.
Steps to be validated by player
NewGiveItems →
Migration
Please use the migrated document at URL shown below.
Function name : weSNewGiveItems |
weSNewGiveItems can give items.
Description of items requested.
NpcDialog (NPC dialog bubble option like classic missions) →
Migration
Please use the migrated document at URL shown below.
Function name : weSNpcDialog_v2 |
This function creates a bubble of an NPC dialogue with options to choose.
Timer (The player must wait X seconds for validation, automated validation possible) →
Migration
Please use the migrated document at URL shown below.
Function name : weSTimer |
Mission →
Migration
Please use the migrated document at URL shown below.
Function name : weSMission |
Mission function enables one mission at a time.
weAMissionGeneric
weAMissionLoot
|
weAMissionTalkTo
|
weAMissionKillFauna
|
weAMissionKillNpc
|
weAMissionRemove
|
Itemshop →
Migration
Please use the migrated document at URL shown below.
Function name : weSItemshop |
weItems
Technical description of the item
|
Items in bag: how to use it IG?
weNamedItem
Item name. Why not the standard translation function?
|
weVirtualItem
Virtual item!!??
|
63 pages in ARCC