Compare commits
4 Commits
7e219419e0
...
34d92ffc2a
Author | SHA1 | Date | |
---|---|---|---|
34d92ffc2a | |||
7b277d1784 | |||
03b3c9e016 | |||
6cf29e9bde |
@ -1,3 +1,7 @@
|
||||
x_p = 15
|
||||
y_p = 27
|
||||
z_p = 15
|
||||
|
||||
currentPage = 1
|
||||
|
||||
function game_over()
|
||||
@ -16,6 +20,7 @@ function you_win(player)
|
||||
"position[0.5, 0.5]",
|
||||
"style_type[button;bgcolor=yellow;textcolor=green]",
|
||||
"hypertext[1, 12.5; 12, 5;;<global halign=center color=black size=20 font=Regular>" .. thanks .. "]\n",
|
||||
"image[1, .2; 16, 12; thanks.png]",
|
||||
"button[13, 14.9; 4, 1;exit;Quit]"
|
||||
}
|
||||
minetest.show_formspec(player:get_player_name(), "poop:story", table.concat(storyFormspec, ""))
|
||||
@ -51,7 +56,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
if currentPage >= 4 then
|
||||
minetest.close_formspec(player:get_player_name(), "story:story_formspec")
|
||||
-- teleport player to 10 9.5 18
|
||||
player:setpos({x=10, y=9.5, z=18})
|
||||
player:setpos({x=15,y=21,z=15})
|
||||
return
|
||||
end
|
||||
currentPage = currentPage + 1 -- Fuck Lua and its lack of arithmetic assignment operators
|
||||
@ -71,7 +76,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
end
|
||||
end)
|
||||
storyText = {}
|
||||
|
||||
storyText[0] = "Click next to continue. Do NOT close the formspec by pressing the Escape key, or the game may break. To my knowledge, this is impossible to solve with the current Lua API."
|
||||
storyText[1] = "Welcome to the state-of-the-art Shitting Simulator! A very advanced, educational, and culturally significant Minetest Game!"
|
||||
storyText[2] = "So the story is simple: You've eaten so many pickles and beans and drank so much milk that your rectum will burst if you don't take a shit in the next two minutes."
|
||||
storyText[3] = "You accidently use your flux capacitor and travel in time to the far future, where you find yourself in a city where you are shitting all over the place."
|
||||
@ -99,7 +104,7 @@ is_game_finished = false
|
||||
|
||||
minetest.register_on_newplayer(function(ObjectRef)
|
||||
minetest.place_schematic({x = 0, y = 0, z = 0}, minetest.get_modpath("poop") .. "/map.mts", "0", nil, true)
|
||||
ObjectRef:set_pos({x = 15, y = 11, z = 15})
|
||||
ObjectRef:set_pos({x = 15, y = 21, z = 15})
|
||||
end)
|
||||
|
||||
|
||||
@ -384,7 +389,7 @@ minetest.register_craftitem("poop:plumba", {
|
||||
if pointed_thing.type ~= "node" then
|
||||
return
|
||||
end
|
||||
if pooped_things >= 100 then
|
||||
if pooped_things >= 200 then
|
||||
is_game_finished = true
|
||||
you_win(user)
|
||||
return
|
||||
|
BIN
mods/poop/textures/thanks.png
Normal file
BIN
mods/poop/textures/thanks.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Loading…
x
Reference in New Issue
Block a user