Merge branch 'master' of github.com:thomasrudin-mt/missions
This commit is contained in:
commit
74466ebccf
114
readme.md
Normal file
114
readme.md
Normal file
@ -0,0 +1,114 @@
|
||||
Minetest mission mod (missions)
|
||||
======
|
||||
|
||||
Minetest mod for in-game mission creation
|
||||
Adds some blocks to create missions with rewards, timeout and penalties
|
||||
|
||||
* Github: [https://github.com/thomasrudin-mt/missions](https://github.com/thomasrudin-mt/missions)
|
||||
* Forum Topic: [https://forum.minetest.net/viewtopic.php?f=9&t=20125](https://forum.minetest.net/viewtopic.php?f=9&t=20125)
|
||||
|
||||
# Install
|
||||
|
||||
* Unzip/Clone it to your worldmods folder
|
||||
|
||||
# Blocks
|
||||
|
||||
The blocks have no recipe because they should be used by a admin or creative-player.
|
||||
The nature of the mission-reward could be abused for cheating if a survival-player could craft it.
|
||||
|
||||
## Mission-chest (missions:chest)
|
||||
|
||||
The mission chest acts as a target for transport-missions. The book in the right-click menu is used as a reference to it (placed in the transport block menu)
|
||||
|
||||
# Mission-types
|
||||
|
||||
There is only one implemented mission block for now
|
||||
|
||||
## Transport (missions:transport)
|
||||
|
||||
A simple transport mission, in which blocks/items must be place in the target chest (displayed in hud, if started)
|
||||
This block can be configured only by its owner:
|
||||
|
||||
* **To**: The target mission-chest (book-reference)
|
||||
* **Time**: Time for the mission in seconds
|
||||
* **Reward**: Block/Items rewards if the mission is completed
|
||||
* **Transport**: Blocks/items to transport/craft. All items must be placed in the **to**-chest for mission completion
|
||||
|
||||
XP mod fields (for xp_redo, if enabled)
|
||||
|
||||
* **XP-Reward** amount of xp to reward on completion
|
||||
* **XP-Penalty** amount of xp to take away if the mission fails (timeout) must be positive
|
||||
|
||||
Buttons:
|
||||
|
||||
* **Save** Saves the configuration
|
||||
* **Start** Starts the mission for the player
|
||||
|
||||
## Other mission-blocks
|
||||
|
||||
The other mission types are not implemented yet, but many can be emulated by the transport mission:
|
||||
* Walk (missions:walk)
|
||||
* Kill (missions:kill)
|
||||
* Goto (missions:goto)
|
||||
* Dig (missions:dig)
|
||||
* Craft (missions:craft)
|
||||
|
||||
# Depends
|
||||
|
||||
* default
|
||||
* [xp-redo](https://github.com/thomasrudin-mt/xp_redo)?
|
||||
|
||||
# Screenshots
|
||||
|
||||
## Mission-blocks (chest and mission-types)
|
||||
![](screenshots/Minetest_2018-05-17-09-18-20.png?raw=true)
|
||||
Note: **Android screenshot**
|
||||
|
||||
## Mission chest with book as reference
|
||||
![](screenshots/Minetest_2018-05-17-09-18-38.png?raw=true)
|
||||
|
||||
## Example transport mission configuration
|
||||
![](screenshots/Minetest_2018-05-17-09-18-49.png?raw=true)
|
||||
|
||||
## Running transport mission
|
||||
![](screenshots/Minetest_2018-05-17-10-28-35.png?raw=true)
|
||||
|
||||
# Lua api
|
||||
|
||||
## misssions.start_mission(player, missionSpec)
|
||||
|
||||
```lua
|
||||
missionSpec = {
|
||||
name = "Mission name",
|
||||
type = "transport",
|
||||
time = 300, --seconds
|
||||
xp = { -- optional
|
||||
reward = 100,
|
||||
penalty = 50
|
||||
},
|
||||
reward = {
|
||||
"default:stone 50"
|
||||
},
|
||||
transport = {
|
||||
"default:gold_ingot 10"
|
||||
},
|
||||
target = {
|
||||
x = 100,
|
||||
y = 200,
|
||||
z = 300,
|
||||
title = "Town chest"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
# Pull requests / bugs
|
||||
|
||||
I'm happy for any bug reports or pull requests (code and textures)
|
||||
|
||||
# TODO / Ideas
|
||||
|
||||
* Implement more mission-types
|
||||
* Display current missions in sfinv/unified inv
|
||||
* Mission stats / export
|
||||
* Persist missions across server-restart (player:set_attribute)
|
||||
* HUD improvements
|
BIN
screenshots/Minetest_2018-05-17-09-18-20.png
Executable file
BIN
screenshots/Minetest_2018-05-17-09-18-20.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 900 KiB |
BIN
screenshots/Minetest_2018-05-17-09-18-38.png
Executable file
BIN
screenshots/Minetest_2018-05-17-09-18-38.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 529 KiB |
BIN
screenshots/Minetest_2018-05-17-09-18-49.png
Executable file
BIN
screenshots/Minetest_2018-05-17-09-18-49.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 996 KiB |
BIN
screenshots/Minetest_2018-05-17-10-28-10.png
Executable file
BIN
screenshots/Minetest_2018-05-17-10-28-10.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
BIN
screenshots/Minetest_2018-05-17-10-28-35.png
Executable file
BIN
screenshots/Minetest_2018-05-17-10-28-35.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 1.3 MiB |
Loading…
x
Reference in New Issue
Block a user