Difference between revisions of "Database ARCC EN"

From Ryzom Forge Wiki

Jump to: navigation, search
m
Line 12: Line 12:
 
*'''1)''' Database name : for the whole the event, Omega, in the example.
 
*'''1)''' Database name : for the whole the event, Omega, in the example.
 
*'''2)''' databaseRow : Khi, in the example.
 
*'''2)''' databaseRow : Khi, in the example.
<div style="margin:0em; padding:0em;border: none;background:yellow;">
+
*'''3)''' databaseId : player, guild, arcc, civ, cult, org, race.
*'''3)''' databaseId : meaning in the game? changing rights, visibility?...
+
*'''4)''' Conversion method : (setvalue/addvalue) : there are two modes of insertion into the database, or overwriting the previous contents or by adding another algebraic value.
 
</div>
 
</div>
{|
 
|1 player
 
|-
 
|2 guild
 
|-
 
|3 arcc
 
|-
 
|4 civ
 
|-
 
|5 cult
 
|-
 
|6 org
 
|-
 
|7 race
 
|}
 
*'''4)''' Conversion method : (setvalue/addvalue) : there are two modes of insertion into the database, or overwriting the previous contents or by adding another algebraic value.
 
 
*'''5)''' param : may be different static values ​​recovered from elsewhere or calculated. Those are:
 
*'''5)''' param : may be different static values ​​recovered from elsewhere or calculated. Those are:
 
:*A Blank or an <empty>. In calculation, the "empty" may be equated with "zero."
 
:*A Blank or an <empty>. In calculation, the "empty" may be equated with "zero."

Revision as of 14:52, 25 November 2014

Database

Database add value.png Function name : weADatabase_v2

This function is used to store information in a usable local DB thereafter in the same script or another in the same event. It can also increment the numerical values.

It is best to use the assisted edition mode in a first step, as viewed here.

WeADatabase window
  • 1) Database name : for the whole the event, Omega, in the example.
  • 2) databaseRow : Khi, in the example.
  • 3) databaseId : player, guild, arcc, civ, cult, org, race.
  • 4) Conversion method : (setvalue/addvalue) : there are two modes of insertion into the database, or overwriting the previous contents or by adding another algebraic value.
  • 5) param : may be different static values ​​recovered from elsewhere or calculated. Those are:
  • A Blank or an <empty>. In calculation, the "empty" may be equated with "zero."
  • A Constant: "-1" in "Addvalue" mode creates a decrement.
  • A common parameter to the event : [param]Max_player_bag[/param] or [session]LocalTemporaryData[/session]
  • A value contained in another database : [db=Player_Bag]Last[/db]
  • A function : [func]now[/func]
  • A calculation :

[func=min]
  [math]
    ([func]now[/func]
    -
    [db=Bags]
      Status:[get]bag[/get]
    [/db])
  [/math]
..|12
[/func]

</div> ←ARCC Guide EN

Ryzom Wiki: Ryzom Commons | DE • EN • ESFRRU | Ryzom Forge