Version 1.0
By Wyatt
What is this script?
This script is for desert areas.
You have a water supply, which runs down every time you move. (You drink from exhaustion from the heat of the desert basically). If you run out of water, you start losing health until you get water again.
Instructions
They are in the script.
But, a note. To make water points where you can fill up your water, do a call script with:
$desert_left =
And then after that put the amount of steps you'd like the player to be able to go with this water before losing health.
If you do not want on-map regeneration:
Delete lines 36 to 40.
If you just want on-map regeneration, just use:
Code:
class Game_Party
def increase_steps
@steps = [@steps + 1, 9999999].min
for i in 0...$game_party.actors.size
$game_party.actors[i].hp += 1 unless $game_party.actors[i].hp ==
$game_party.actors[i].maxhp
end
end
end
....instead of this script.
Notes
Should be compatable with most things other than those which edit the steps method of Game_Player.
It shouldn't lag too much, because it is just adding on to a system already in place (the steps system).
The Script
It's not very long.
Code:
#===============================================================================
# * Desert Heat (and map regeneration)
#
# By Wyatt, version 1.0
# [url=http://www.vengeance-rpg.co.nr]http://www.vengeance-rpg.co.nr[/url]!
#
# To turn on desert heat change $in_desert to true
# To turn it off again change $in_desert to false
#
# To change the amount characters are regenetated by change
# the number "1" on lines 28, 33, and 38.
#
# When you enter a desert area, call a script with:
# $desert_left = x
# Where "x" is the amount of steps you want before you start losing health
#
# License:
# It's only a small script, feel free to use in free or commercial games.
# But please give credit.
#===============================================================================
class Game_Party
def increase_steps
@steps = [@steps + 1, 9999999].min
if $in_desert == true
if $desert_left > 0
$desert_left -= 1
for i in 0...$game_party.actors.size
$game_party.actors[i].hp += 1 unless $game_party.actors[i].hp ==
$game_party.actors[i].maxhp
end
else
for i in 0...$game_party.actors.size
$game_party.actors[i].hp -= 1 unless $game_party.actors[i].hp <= 0
end
end
else
for i in 0...$game_party.actors.size
$game_party.actors[i].hp += 1 unless $game_party.actors[i].hp ==
$game_party.actors[i].maxhp
end
end
end
end