赞 | 1 |
VIP | 171 |
好人卡 | 21 |
积分 | 4 |
经验 | 59678 |
最后登录 | 2024-7-30 |
在线时间 | 1292 小时 |
- 梦石
- 0
- 星屑
- 362
- 在线时间
- 1292 小时
- 注册时间
- 2013-1-12
- 帖子
- 3590
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
It's a simple script based on someone's question.......
I don't really get how to use alias, would be nice if someone teaches me to do it.
Screen shot:
None Needed
Credits:
Panda King(76213585)
Usage:
Plug and play if you want to go with default setting....
This script does....................:
1.restore hp based on the variable of hp restore variable(fill in the lost hp based on the variable)
=====Version Note=====
1.00 | Relese
OverWrites:
class Scene_Map
def update- module Panda
- U_VAR = 1 #Hp restore Variable
- ACT = 1#The ID of actor reciving the hp restore
- end
- class Scene_Map < Scene_Base
- def update
- super
- $game_map.update(true)
- $game_player.update
- $game_timer.update
- @spriteset.update
- update_scene if scene_change_ok?
- @k = $game_actors[Panda::ACT].mhp - $game_actors[Panda::ACT].hp
- if $game_variables[Panda::U_VAR]!= 0
- if $game_variables[Panda::U_VAR]>= @k
- $game_variables[Panda::U_VAR] -= @k
- $game_actors[Panda::ACT].hp += @k
- end
- else if $game_variables[Panda::U_VAR]<= @k
- $game_actors[Panda::ACT].hp += $game_variables[Panda::U_VAR]
- $game_variables[Panda::U_VAR] = 0
- end
- end
- end
- end
复制代码 |
|