Trying an XP/level mod

master
Solebull 2018-12-29 16:30:59 +01:00
parent 3d16e1ef3d
commit 2920d36c8e
3 changed files with 25 additions and 15 deletions

19
ROADMAP
View File

@ -224,11 +224,20 @@ It's really fast. May be used on a website, to show the actual map.
[mg_villages] ERROR: Did not find a suitable replacement for cottages:barrel (suggested but inexistant: cottages:barrel). Building: chateau_without_garden.
**** Try mumble-link
- see https://github.com/chipgw/minetest-mumble-wrapper
**** [feature_Levels] Try an XP+levels mod
- [ ] Trying to find a XP and level mod
But we can buy some things with that etc.
Doesn't show total level ?
But the ranking thing is really cool. Could use the same trick for Factions!
**** TODO [feature_Levels] Try an XP+levels mod
CLOCK: [2018-12-29 sam. 15:55]--[2018-12-29 sam. 16:17] => 0:22
*level 2 : not showing it! but a cool annoucement with novice etc...*
*When we die, we loose 50 XPs*
- [X] Trying to find a XP and level mod : trying xpro
- [X] First, try to win a level to see if it is shown in the HUD
- [X] Try to buy an item with XP : that works
- [ ] Partly in portugese :(
- [ ] First translate the API documentation
- [ ] But we can buy some things with that etc.
- [ ] Doesn't show total level ?
- [ ] But the ranking thing is really cool. Could use the same trick for Factions!
**** DONE Install and configure a mumble server
CLOCK: [2018-12-23 dim. 11:22]--[2018-12-23 dim. 11:43] => 0:21
CLOCK: [2018-12-23 dim. 10:12]--[2018-12-23 dim. 11:12] => 1:00

2
TODO
View File

@ -11,4 +11,4 @@ minetest-solebull - LGPL-2.1 - A PVP/faction game for minetest based on Cobalt.
* v0.0.1-4 (29 Dec. 2018 - ???) CLOC ???,???
- Trying an XP/level mod

View File

@ -1,14 +1,15 @@
API para mod XPro v1.1.0
XPro v1.1.0 mod API
### Métodos
### Methods
* `xpro.add_xp(name, xp_add)`: Adiciona xp a um jogador
* `xpro.register_on_add_xp(func(name, xp_added, lvl_changed))`: Registra uma função a ser executada apos ser adicionado xp a um jogador
* `xpro.rem_xp(name, xp_rem)`: Remove xp a um jogador
* `xpro.register_on_rem_xp(func(name, xp_removed, lvl_changed))`: Registra uma função a ser executada apos ser removido xp de um jogador
* `xpro.get_player_xp(name)`: Retorna o numero de pontos de xp do jogador
* `xpro.get_player_lvl(name)`: Retorna o numero do nivel do jogador
* `xpro.registrar_premio(name, Definições do Prêmio)`: Registra um premio para ser trocado por cash xp
* `xpro.add_xp(name, xp_add)`: Add given XP amount to a player
* `xpro.rem_xp(name, xp_rem)`: Remove given XP amount to a player
* `xpro.register_on_add_xp(func(name, xp_added, lvl_changed))`: Registers a function to be executed after adding xp to a player
* `xpro.register_on_rem_xp(func(name, xp_removed, lvl_changed))`: Registers a function to be executed after removing xp to a player
* `xpro.get_player_xp(name)`: Returns the number of xp points of the player
* `xpro.get_player_lvl(name)`: Returns the player level number
* `xpro.registrar_premio(name, Definições do Prêmio)`: Registra um premio para ser trocado por cash xp (premio=prize)
* `name` é o nome de exibição do item na lista de prêmios
* Definições de Prêmio
{