SP drain/increase over time - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Archives (https://www.save-point.org/forum-105.html) +--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html) +---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html) +----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html) +------ Forum: New Functionality/Features Scripts (https://www.save-point.org/forum-99.html) +------ Thread: SP drain/increase over time (/thread-6663.html) |
SP drain/increase over time - Cavi - 05-20-2011 SP drain/increase over time But this time with feeling by Cavi May 20 2011 This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss. No support is given. If you are the owner of the thread, please contact administration. Earlier today I was in need of a script to increment Sp (DT in my game) down slowly, and activate a common event when it did. So after a while of poking around, and a lot of help from the wonderful dudes and dudettes here at Creation Asylum, I'd like to let everyone see it :D [Spoiler=The Code Code: #______________________________________________________# To use it, simply place it under Interpreter 1-7, and above main. The example above makes it to where if switch 15 is on, it will slowly whittle down until 0, whereupon Common Event 11 will happen. Ideally, you could replace sp with hp as well. The speed of the drain is on the line Graphics.frame_count%[ ] == 0, and the higher the number the slower. Okay well, most off how to use it is easily learned by looking at the code itself, and can be changed to fit whatever need :3 No credit needed, but I'd like for you to keep the comments in, for both easier use and (possible) future development. Now I'm off to work, so have fun guys EDIT: I've realized that you could slowly increase Hp, Mp, or Sp in this way over time too :D! Seems kind of a 'durr' realization, but I wasn't thinking too hard earlier xD |