Incremental

Reading a Book

Oct 26th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.74 KB | None | 0 0
  1. Let's make a game!
  2. name:Reading a Book
  3. by:Incremental
  4. desc:This is a game of a guy named Liam.<//>He is given a book, a really long one. He must finish the book or else something bad will happen to him forever. You will take the role as Liam and get Page Multipliers and Upgrades to help you read much more pages. Good luck, my friend.<//><b>version 1</b><//><.>Just a bit of coding...<//><b>version 1.02</b><//><.>Added a rebirth system, caps at 9 for now<.>added an achievement for rebirthing<//><b>version 1.04</b><//><.>rebirthing caps at 35<.>7 more page multipliers
  5. created:26/10/2019
  6. updated:30/10/2019
  7. version:1.04
  8.  
  9. Settings
  10. background:https://img.freepik.com/free-photo/wooden-table_36051-46.jpg?size=626&ext=jpg
  11. building cost increase:100%
  12. building cost refund:50%
  13. stylesheet:stuff/bigBlue.css
  14.  
  15. Layout
  16. use default
  17.  
  18. Buttons
  19. *read
  20. name:Read a page
  21. desc:Click on the book to earn pages
  22. on click:anim icon wobble
  23. on click:yield 1 pages
  24. on click:if (have GoldUP1 and chance(1%)) yield 1 goldenPages
  25. icon:https://thumbs.gfycat.com/BronzeImpassionedCob-size_restricted.gif
  26. class:bigButton hasFlares
  27. icon class:shadowed
  28. tooltip origin:bottom
  29. tooltip class:red
  30.  
  31. Resources
  32. *pages
  33. name:pages
  34. desc:These are your pages, you must have EVERY single one of these.
  35. class:noBackground
  36. show earned
  37.  
  38. *goldenPages
  39. name:Golden pages
  40. desc:These appear randomly while you are reading the book. You can spend them on upgrades.
  41. class:noBackground
  42. hidden when 0
  43. show earned
  44.  
  45. *rebirthsEarned
  46. name:Rebirths
  47. desc:You get these every time you rebirth.
  48. class:noBackground
  49. hidden when 0
  50. show earned
  51.  
  52. Shinies
  53. *luckyPage
  54. on click:log Woop
  55. movement:onRight moveLeft fade bounce:0.05
  56. frequency:40
  57. frequency variation:30
  58. icon:https://image.freepik.com/free-vector/beautiful-texture-golden-paint_62951-55.jpg
  59. class:bigButton
  60. on click:
  61. $boost=1
  62. if (chance(25%))
  63. //get at least 7, or between 1 and 3 minutes of our page production
  64. $amount=max(7,random(pages:ps*60*1,pages:ps*60*3))*$boost
  65. toast The lucky page grants you<//><b>[$amount] pages</b>.
  66. yield $amount pages
  67. else
  68. $amount=1*$boost
  69. toast The lucky page grants you<//><b>[$amount] golden pages[s?$amount]</b>!
  70. yield $amount goldenPages
  71. end
  72. end
  73.  
  74. Buildings
  75. *TEMPLATE
  76. on click:anim glow
  77.  
  78. *multi1
  79. name:Page Multiplier 1
  80. desc:The first page multiplier. Helps you read <b>0.1</b> pages every second.
  81. cost:10 pages
  82. on tick:yield 0.1 pages
  83. unlocked
  84.  
  85. *multi2
  86. name:Page Multiplier 2
  87. desc:The second page multiplier. Helps you read <b>3</b> pages every second.
  88. cost:300 pages
  89. on tick:yield 3 pages
  90. unlocked
  91.  
  92. *multi3
  93. name:Page Multiplier 3
  94. desc:The third page multiplier. Helps you read <b>34</b> pages per second.
  95. cost:3400 pages
  96. on tick:yield 34 pages
  97. req:10 pages:earned
  98.  
  99. *multi4
  100. name:Page Multiplier 4
  101. desc:The fourth page multiplier. Helps you read <b>250</b> pages per second.
  102. cost:25000 pages
  103. on tick:yield 250 pages
  104. req:300 pages:earned
  105.  
  106. *multi5
  107. name:Page Multiplier 5
  108. desc:The fifth page multiplier. Helps you read <b>700</b> pages per second.
  109. cost:70000 pages
  110. on tick:yield 700 pages
  111. req:3400 pages:earned
  112.  
  113. *multi6
  114. name:Page Multiplier 6
  115. desc:The sixth page multiplier. Helps you read <b>2.1K</b> pages per second.
  116. cost:210000 pages
  117. on tick:yield 2100 pages
  118. req:25000 pages:earned and unlockBuildings
  119.  
  120. *multi7
  121. name:Page Multiplier 7
  122. desc:The seventh page multiplier. Helps you read <b>4.56K</b> pages per second.
  123. cost:456000 pages
  124. on tick:yield 4560 pages
  125. req:70000 pages:earned and unlockBuildings
  126.  
  127. *multi8
  128. name:Page Multiplier 8
  129. desc:The eighth page multiplier. Helps you read <b>40K</b> pages per second.
  130. cost:4000000 pages
  131. on tick:yield 40000 pages
  132. req:210000 pages:earned and unlockBuildings
  133.  
  134. *multi9
  135. name:Page Multiplier 9
  136. desc:The ninth page multiplier. Helps you read <b>120K</b> pages per second.
  137. cost:12000000 pages
  138. on tick:yield 120000 pages
  139. req:456000 pages:earned and unlockBuildings
  140.  
  141. *multi10
  142. name:Page Multiplier 10
  143. desc:The tenth page multiplier. Helps you read <b>370K</b> pages per second.
  144. cost:37000000 pages
  145. on tick:yield 370000 pages
  146. req:4000000 pages:earned and unlockBuildings
  147.  
  148. *multi11
  149. name:Page Multiplier 11
  150. desc:The eleventh page multiplier. Helps you read <b>1.86M</b> pages per second.
  151. cost:186000000 pages
  152. on tick:yield 1860000 pages
  153. req:12000000 pages:earned and unlockBuildings
  154.  
  155. *multi12
  156. name:Page Multiplier 12
  157. desc:The 12th page multiplier. Helps you read <b>5.5M</b> pages per second.
  158. cost:550000000 pages
  159. on tick:yield 5500000 pages
  160. req:37000000 pages:earned and unlockBuildings
  161.  
  162. *multi13
  163. name:Page Multiplier 13
  164. desc:The 13th page multiplier. Helps you read <b>19M</b> pages per second.
  165. cost:1900000000 pages
  166. on tick:yield 19000000 pages
  167. req:186000000 pages:earned and unlockBuildings
  168.  
  169. *multi14
  170. name:Page Multiplier 14
  171. desc:The 14th page multiplier. Helps you read <b>60M</b> pages per second.
  172. cost:6000000000 pages
  173. on tick:yield 60000000 pages
  174. req:550000000 pages:earned and unlockBuildings
  175.  
  176. *multi15
  177. name:Page Multiplier 15
  178. desc:The 15th page multiplier. Helps you read <b>250M</b> pages per second.
  179. cost:25000000000 pages
  180. on tick:yield 250000000 pages
  181. req:1900000000 pages:earned and unlockBuildings
  182.  
  183. *multi16
  184. name:Page Multiplier 16
  185. desc:The 16th page multiplier. Helps you read <b>1.33B</b> pages per second.
  186. cost:133000000000 pages
  187. on tick:yield 1330000000 pages
  188. req:6000000000 pages:earned and unlockBuildings
  189.  
  190. *multi17
  191. name:Page Multiplier 17
  192. desc:The 17th page multiplier. Helps you read <b>4.4B</b> pages per second.
  193. cost:440000000000 pages
  194. on tick:yield 4400000000 pages
  195. req:25000000000 pages:earned and unlockBuildings
  196.  
  197. *multi18
  198. name:Page Multiplier 18
  199. desc:The 12th page multiplier. Helps you read <b>58B</b> pages per second.
  200. cost:5800000000000 pages
  201. on tick:yield 58000000000 pages
  202. req:133000000000 pages:earned and unlockBuildings
  203.  
  204. /*
  205. *debug
  206. name:lots of pages
  207. desc:none
  208. cost:1 pages
  209. on tick:yield 1000000000 pages
  210. req:1 pages
  211. */
  212.  
  213. Upgrades
  214. *TEMPLATE
  215. on click:anim glow
  216.  
  217. //rebirth upgrades
  218.  
  219. *rebirth
  220. name:Rebirth
  221. desc:When you rebirth, you lose <b>ALL</b> your pages, golden pages, upgrades and page multipliers, but you get a <b>x3 boost</b> on page reading!
  222. cost:1 pages
  223. req:1 multi10
  224. on earn:yield 1 rebirthsEarned
  225. on earn:lose rebirth
  226. on earn:lose pages
  227. on earn:lose goldenPages
  228. on earn:lose multi1
  229. on earn:lose multi2
  230. on earn:lose multi3
  231. on earn:lose multi4
  232. on earn:lose multi5
  233. on earn:lose multi6
  234. on earn:lose multi7
  235. on earn:lose multi8
  236. on earn:lose multi9
  237. on earn:lose multi10
  238. on earn:lose multi11
  239. on earn:lose multi12
  240. on earn:lose multi13
  241. on earn:lose multi14
  242. on earn:lose multi15
  243. on earn:lose multi16
  244. on earn:lose multi17
  245. on earn:lose multi18
  246. on earn:lose clickUP1
  247. on earn:lose clickUP2
  248. on earn:lose clickUP3
  249. on earn:lose clickUP4
  250. on earn:lose clickUP5
  251. on earn:lose clickUP6
  252. on earn:lose GoldUP1
  253. on earn:lose unlockBuildings
  254.  
  255. *rebirthUP1
  256. name:Rebirth Boost 1
  257. desc:x3 boost
  258. cost:1 pages
  259. passive:multiply yield of pages by 3
  260. req:1 rebirthsEarned
  261.  
  262. *rebirthUP2
  263. name:Rebirth Boost 2
  264. desc:x3 boost
  265. cost:1 pages
  266. passive:multiply yield of pages by 3
  267. req:2 rebirthsEarned
  268.  
  269. *rebirthUP3
  270. name:Rebirth Boost 3
  271. desc:x3 boost
  272. cost:1 pages
  273. passive:multiply yield of pages by 3
  274. req:3 rebirthsEarned
  275.  
  276. *rebirthUP4
  277. name:Rebirth Boost 4
  278. desc:x3 boost
  279. cost:1 pages
  280. passive:multiply yield of pages by 3
  281. req:4 rebirthsEarned
  282.  
  283. *rebirthUP5
  284. name:Rebirth Boost 5
  285. desc:x3 boost
  286. cost:1 pages
  287. passive:multiply yield of pages by 3
  288. req:5 rebirthsEarned
  289.  
  290. *rebirthUP6
  291. name:Rebirth Boost 6
  292. desc:x3 boost
  293. cost:1 pages
  294. passive:multiply yield of pages by 3
  295. req:6 rebirthsEarned
  296.  
  297. *rebirthUP7
  298. name:Rebirth Boost 7
  299. desc:x3 boost
  300. cost:1 pages
  301. passive:multiply yield of pages by 3
  302. req:7 rebirthsEarned
  303.  
  304. *rebirthUP8
  305. name:Rebirth Boost 8
  306. desc:x3 boost
  307. cost:1 pages
  308. passive:multiply yield of pages by 3
  309. req:8 rebirthsEarned
  310.  
  311. *rebirthUP9
  312. name:Rebirth Boost 9
  313. desc:x3 boost
  314. cost:1 pages
  315. passive:multiply yield of pages by 3
  316. req:9 rebirthsEarned
  317.  
  318. *rebirthUP10
  319. name:Rebirth Boost 10
  320. desc:x3 boost
  321. cost:1 pages
  322. passive:multiply yield of pages by 3
  323. req:10 rebirthsEarned
  324.  
  325. *rebirthUP11
  326. name:Rebirth Boost 11
  327. desc:x3 boost
  328. cost:1 pages
  329. passive:multiply yield of pages by 3
  330. req:11 rebirthsEarned
  331.  
  332. *rebirthUP12
  333. name:Rebirth Boost 12
  334. desc:x3 boost
  335. cost:1 pages
  336. passive:multiply yield of pages by 3
  337. req:12 rebirthsEarned
  338.  
  339. *rebirthUP13
  340. name:Rebirth Boost 13
  341. desc:x3 boost
  342. cost:1 pages
  343. passive:multiply yield of pages by 3
  344. req:13 rebirthsEarned
  345.  
  346. *rebirthUP14
  347. name:Rebirth Boost 14
  348. desc:x3 boost
  349. cost:1 pages
  350. passive:multiply yield of pages by 3
  351. req:14 rebirthsEarned
  352.  
  353. *rebirthUP15
  354. name:Rebirth Boost 15
  355. desc:x3 boost
  356. cost:1 pages
  357. passive:multiply yield of pages by 3
  358. req:15 rebirthsEarned
  359.  
  360. *rebirthUP16
  361. name:Rebirth Boost 16
  362. desc:x3 boost
  363. cost:1 pages
  364. passive:multiply yield of pages by 3
  365. req:16 rebirthsEarned
  366.  
  367. *rebirthUP17
  368. name:Rebirth Boost 17
  369. desc:x3 boost
  370. cost:1 pages
  371. passive:multiply yield of pages by 3
  372. req:17 rebirthsEarned
  373.  
  374. *rebirthUP18
  375. name:Rebirth Boost 18
  376. desc:x3 boost
  377. cost:1 pages
  378. passive:multiply yield of pages by 3
  379. req:18 rebirthsEarned
  380.  
  381. *rebirthUP19
  382. name:Rebirth Boost 19
  383. desc:x3 boost
  384. cost:1 pages
  385. passive:multiply yield of pages by 3
  386. req:19 rebirthsEarned
  387.  
  388. *rebirthUP20
  389. name:Rebirth Boost 20
  390. desc:x3 boost
  391. cost:1 pages
  392. passive:multiply yield of pages by 3
  393. req:20 rebirthsEarned
  394.  
  395. *rebirthUP21
  396. name:Rebirth Boost 21
  397. desc:x3 boost
  398. cost:1 pages
  399. passive:multiply yield of pages by 3
  400. req:21 rebirthsEarned
  401.  
  402. *rebirthUP22
  403. name:Rebirth Boost 22
  404. desc:x3 boost
  405. cost:1 pages
  406. passive:multiply yield of pages by 3
  407. req:22 rebirthsEarned
  408.  
  409. *rebirthUP23
  410. name:Rebirth Boost 23
  411. desc:x3 boost
  412. cost:1 pages
  413. passive:multiply yield of pages by 3
  414. req:23 rebirthsEarned
  415.  
  416. *rebirthUP24
  417. name:Rebirth Boost 24
  418. desc:x3 boost
  419. cost:1 pages
  420. passive:multiply yield of pages by 3
  421. req:24 rebirthsEarned
  422.  
  423. *rebirthUP25
  424. name:Rebirth Boost 25
  425. desc:x3 boost
  426. cost:1 pages
  427. passive:multiply yield of pages by 3
  428. req:25 rebirthsEarned
  429.  
  430. *rebirthUP26
  431. name:Rebirth Boost 26
  432. desc:x3 boost
  433. cost:1 pages
  434. passive:multiply yield of pages by 3
  435. req:26 rebirthsEarned
  436.  
  437. *rebirthUP27
  438. name:Rebirth Boost 27
  439. desc:x3 boost
  440. cost:1 pages
  441. passive:multiply yield of pages by 3
  442. req:27 rebirthsEarned
  443.  
  444. *rebirthUP28
  445. name:Rebirth Boost 28
  446. desc:x3 boost
  447. cost:1 pages
  448. passive:multiply yield of pages by 3
  449. req:28 rebirthsEarned
  450.  
  451. *rebirthUP29
  452. name:Rebirth Boost 29
  453. desc:x3 boost
  454. cost:1 pages
  455. passive:multiply yield of pages by 3
  456. req:29 rebirthsEarned
  457.  
  458. *rebirthUP30
  459. name:Rebirth Boost 30
  460. desc:x3 boost
  461. cost:1 pages
  462. passive:multiply yield of pages by 3
  463. req:30 rebirthsEarned
  464.  
  465. *rebirthUP31
  466. name:Rebirth Boost 31
  467. desc:x3 boost
  468. cost:1 pages
  469. passive:multiply yield of pages by 3
  470. req:31 rebirthsEarned
  471.  
  472. *rebirthUP32
  473. name:Rebirth Boost 32
  474. desc:x3 boost
  475. cost:1 pages
  476. passive:multiply yield of pages by 3
  477. req:32 rebirthsEarned
  478.  
  479. *rebirthUP33
  480. name:Rebirth Boost 33
  481. desc:x3 boost
  482. cost:1 pages
  483. passive:multiply yield of pages by 3
  484. req:33 rebirthsEarned
  485.  
  486. *rebirthUP34
  487. name:Rebirth Boost 34
  488. desc:x3 boost
  489. cost:1 pages
  490. passive:multiply yield of pages by 3
  491. req:34 rebirthsEarned
  492.  
  493. *rebirthUP35
  494. name:Rebirth Boost 35
  495. desc:x3 boost
  496. cost:1 pages
  497. passive:multiply yield of pages by 3
  498. req:35 rebirthsEarned
  499.  
  500. //click upgrades
  501.  
  502. *clickUP1
  503. name:Flickful Fingers
  504. desc:You'll really get a flick with these. Reading is <b>twice</b> as efficient.
  505. cost:100 pages
  506. passive:multiply yield of read by 2
  507. req:100 pages:earned
  508.  
  509. *clickUP2
  510. name:Increased flick speed
  511. desc:flick, flick, flick. Reading is <b>twice</b> as efficient.
  512. cost:500 pages
  513. passive:multiply yield of read by 2
  514. req:500 pages:earned
  515.  
  516. *clickUP3
  517. name:Swipe-O-Matic
  518. desc:A robot hand that swipes pages automatically. Reading is <b>twice</b> as efficient.
  519. cost:3000 pages
  520. passive:multiply yield of read by 2
  521. req:3000 pages:earned
  522.  
  523. *clickUP4
  524. name:Ambidextrous
  525. desc:"(sarcasm) Oh yeah, why didn't I think of this before?" said Liam. Reading is <b>+0.1</b> more efficient per multiplier owned (except for the first).
  526. cost:300000 pages
  527. passive:increase yield of read by 0.1*(multi2)
  528. passive:increase yield of read by 0.1*(multi3)
  529. passive:increase yield of read by 0.1*(multi4)
  530. passive:increase yield of read by 0.1*(multi5)
  531. passive:increase yield of read by 0.1*(multi6)
  532. passive:increase yield of read by 0.1*(multi7)
  533. passive:increase yield of read by 0.1*(multi8)
  534. passive:increase yield of read by 0.1*(multi9)
  535. passive:increase yield of read by 0.1*(multi10)
  536. passive:increase yield of read by 0.1*(multi11)
  537. req:30000 pages:earned
  538.  
  539. *clickUP5
  540. name:Soft Back
  541. desc:For the fragile and dim-witted. Reading is <b>+0.5</b> more efficient per multiplier owned (except for the first).
  542. cost:30000000 pages
  543. passive:increase yield of read by 0.5*(multi2)
  544. passive:increase yield of read by 0.5*(multi3)
  545. passive:increase yield of read by 0.5*(multi4)
  546. passive:increase yield of read by 0.5*(multi5)
  547. passive:increase yield of read by 0.5*(multi6)
  548. passive:increase yield of read by 0.5*(multi7)
  549. passive:increase yield of read by 0.5*(multi8)
  550. passive:increase yield of read by 0.5*(multi9)
  551. passive:increase yield of read by 0.5*(multi10)
  552. passive:increase yield of read by 0.5*(multi11)
  553. req:30000000 pages:earned
  554.  
  555. *clickUP6
  556. name:Hard Back
  557. desc:For the broody and chronically tight-fisted. Reading is <b>+5</b> more efficient per multiplier owned (except for the first)
  558. cost:300000000 pages
  559. passive:increase yield of read by 5*(multi2)
  560. passive:increase yield of read by 5*(multi3)
  561. passive:increase yield of read by 5*(multi4)
  562. passive:increase yield of read by 5*(multi5)
  563. passive:increase yield of read by 5*(multi6)
  564. passive:increase yield of read by 5*(multi7)
  565. passive:increase yield of read by 5*(multi8)
  566. passive:increase yield of read by 5*(multi9)
  567. passive:increase yield of read by 5*(multi10)
  568. passive:increase yield of read by 5*(multi11)
  569. req:300000000 pages:earned
  570.  
  571. //golden page upgrades
  572.  
  573. *GoldUP1
  574. name:Gold Page Hunter
  575. desc:With this, you can get Golden Pages randomly while reading the book (1% chance)!
  576. cost:1 goldenPages
  577. req:1 goldenPages:earned
  578.  
  579. *unlockBuildings
  580. name:Unlock More Buildings
  581. desc:With this, you can have access to more multipliers, for a price.
  582. cost:10 goldenPages
  583. req:1 goldenPages:earned
  584.  
  585. Achievements
  586. *TEMPLATE
  587. on click:anim glow
  588.  
  589. *pageAchievement1
  590. name:First page
  591. desc:Have <b>1</b> page.
  592. req:1 pages
  593. *pageAchievement2
  594. name:Page Collector
  595. desc:Have <b>1 thousand</b> pages.
  596. req:1000 pages
  597. *pageAchievement3
  598. name:Page Hunter
  599. desc:Have <b>100 thousand</b> pages.
  600. req:100000 pages
  601. *pageAchievement4
  602. name:Page Treasurer
  603. desc:Have <b>1 million</b> pages.
  604. req:1000000 pages
  605. *pageAchievement5
  606. name:Page Forger
  607. desc:Have <b>100 million</b> pages.
  608. req:100000000 pages
  609. *pageAchievement6
  610. name:Page Overlord
  611. desc:Have <b>1 billion</b> pages.
  612. req:1000000000 pages
  613.  
  614. *rebirthAchiev1
  615. name:Starting from scratch
  616. desc:Rebirth <b>once</b>.
  617. req:1 rebirthsEarned
Add Comment
Please, Sign In to add comment