Add infotexts for cups to explain the award reason
This commit is contained in:
parent
061124ff83
commit
80aa522e56
@ -122,7 +122,6 @@ minetest.register_abm( {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Number of gold ingots/lumps
|
-- Number of gold ingots/lumps
|
||||||
tutorial.gold = 13
|
tutorial.gold = 13
|
||||||
|
|
||||||
@ -1050,7 +1049,15 @@ tutorial.cupselbox = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function tutorial.goldinfo(pos)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
meta:set_string("infotext", S("This golden cup has been awarded for finishing the tutorial."))
|
||||||
|
end
|
||||||
|
|
||||||
|
function tutorial.diamondinfo(pos)
|
||||||
|
local meta = minetest.get_meta(pos)
|
||||||
|
meta:set_string("infotext", S("This diamond cup has been awarded for collecting all hidden diamonds."))
|
||||||
|
end
|
||||||
|
|
||||||
--[[ awarded for collecting all gold ingots ]]
|
--[[ awarded for collecting all gold ingots ]]
|
||||||
minetest.register_node("tutorial:cup_gold", {
|
minetest.register_node("tutorial:cup_gold", {
|
||||||
@ -1060,7 +1067,8 @@ minetest.register_node("tutorial:cup_gold", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = tutorial.cupnodebox,
|
node_box = tutorial.cupnodebox,
|
||||||
selection_box = tutorial.cupselbox,
|
selection_box = tutorial.cupselbox,
|
||||||
groups = { immortal = 1 }
|
groups = { immortal = 1 },
|
||||||
|
on_construct = tutorial.goldinfo,
|
||||||
})
|
})
|
||||||
|
|
||||||
--[[ awarded for collecting all diamonds ]]
|
--[[ awarded for collecting all diamonds ]]
|
||||||
@ -1071,10 +1079,25 @@ minetest.register_node("tutorial:cup_diamond", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
node_box = tutorial.cupnodebox,
|
node_box = tutorial.cupnodebox,
|
||||||
selection_box = tutorial.cupselbox,
|
selection_box = tutorial.cupselbox,
|
||||||
groups = { immortal = 1 }
|
groups = { immortal = 1 },
|
||||||
|
on_construct = tutorial.diamondinfo,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
--[[
|
||||||
|
minetest.register_abm({
|
||||||
|
nodenames = {"tutorial:cup_gold"},
|
||||||
|
interval = 5,
|
||||||
|
chance = 1,
|
||||||
|
action = tutorial.goldinfo,
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_abm({
|
||||||
|
nodenames = {"tutorial:cup_diamond"},
|
||||||
|
interval = 5,
|
||||||
|
chance = 1,
|
||||||
|
action = tutorial.diamondinfo,
|
||||||
|
})
|
||||||
|
]]
|
||||||
|
|
||||||
--[[ This function shows a simple dialog window with scrollable text
|
--[[ This function shows a simple dialog window with scrollable text
|
||||||
name: name of the player to show the formspec to
|
name: name of the player to show the formspec to
|
||||||
|
@ -65,6 +65,8 @@ You have collected all hidden diamonds! = Sie haben alle versteckten Diamanten g
|
|||||||
# Awards
|
# Awards
|
||||||
golden cup = Goldpokal
|
golden cup = Goldpokal
|
||||||
diamond cup = Diamantpokal
|
diamond cup = Diamantpokal
|
||||||
|
This golden cup has been awarded for finishing the tutorial. = Dieser Goldpokal wurde für das Beenden der Einführung vergeben.
|
||||||
|
This diamond cup has been awarded for collecting all hidden diamonds. = Dieser Diamantpokal wurde für das Aufsammeln aller versteckten Diamanten vergeben.
|
||||||
|
|
||||||
# Kick message
|
# Kick message
|
||||||
You have voluntarily exited the tutorial. = Sie haben die Einführung freiwillig verlassen.
|
You have voluntarily exited the tutorial. = Sie haben die Einführung freiwillig verlassen.
|
||||||
|
@ -65,6 +65,8 @@ You have collected all hidden diamonds! = Vous avez trouvé tous les diamants ca
|
|||||||
# Awards
|
# Awards
|
||||||
golden cup = Coupe en or
|
golden cup = Coupe en or
|
||||||
diamond cup = Coupe en diamant
|
diamond cup = Coupe en diamant
|
||||||
|
This golden cup has been awarded for finishing the tutorial.
|
||||||
|
This diamond cup has been awarded for collecting all hidden diamonds.
|
||||||
|
|
||||||
# Kick message
|
# Kick message
|
||||||
You have voluntarily exited the tutorial. = Vous avez volontairement quitté le tutoriel.
|
You have voluntarily exited the tutorial. = Vous avez volontairement quitté le tutoriel.
|
||||||
|
@ -65,6 +65,8 @@ You have collected all hidden diamonds! = Kamu telah mengumpulkan semua berlian
|
|||||||
# Awards
|
# Awards
|
||||||
golden cup = cangkir emas
|
golden cup = cangkir emas
|
||||||
diamond cup = cangkir berlian
|
diamond cup = cangkir berlian
|
||||||
|
This golden cup has been awarded for finishing the tutorial.
|
||||||
|
This diamond cup has been awarded for collecting all hidden diamonds.
|
||||||
|
|
||||||
# Kick message
|
# Kick message
|
||||||
You have voluntarily exited the tutorial. = Kamu dengan sukarela keluar dari tutorial.
|
You have voluntarily exited the tutorial. = Kamu dengan sukarela keluar dari tutorial.
|
||||||
|
@ -65,6 +65,8 @@ You have collected all hidden diamonds!
|
|||||||
# Awards
|
# Awards
|
||||||
golden cup
|
golden cup
|
||||||
diamond cup
|
diamond cup
|
||||||
|
This golden cup has been awarded for finishing the tutorial.
|
||||||
|
This diamond cup has been awarded for collecting all hidden diamonds.
|
||||||
|
|
||||||
# Kick message
|
# Kick message
|
||||||
You have voluntarily exited the tutorial.
|
You have voluntarily exited the tutorial.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user