标题: Simple Energy system for Ace [打印本页] 作者: 熊喵酱 时间: 2013-9-24 09:08 标题: Simple Energy system for Ace 本帖最后由 76213585 于 2013-9-23 21:43 编辑
Ok, it's my first complete script!!!!!!
Screen shot:
None Needed
Credits:
Panda King(76213585)
Usage:
Plug and play if you want to go with default setting....
This script does....................:
S.This script creates an energy system, you can set up variable that controls the energy amount.
1.restore energy every X frame (Costumable)
2.Set up energy amount require for to Run, Walk
3.Set up energy cost per step(walk, run)
4.Set up energy Max
5.Does NOT show variables on map.....
=====Version Note=====
1.22 | A really stupid bug fixed (covering my face)
1.21 | Variable name improve(What?)
1.20 | Big update, Able to restore per X frame and set a max amount for Energy
1.05 | Fixed going under 0 Bug
1.00 | Relese
OverWrites:
class Game_Player
def update_encounter
class Game_Map
def disable_dash
def passable?
class Scene_Map
def start
def update
Free for commercial use if you like (but if you use my system.... it probably isn't a serious commercial game....)
#=====================
# Simple Energy System For VXA V1.05
#=====================
# By PandaKing
#=====================
# OverWrites:
# #class Game_Player#
# def update_encounter
# # class Game_Map #
# def disable_dash
# def passable?
# #class Scene_Map#
# def start
# def update
#======================
# Put this script above Main
# and below Scene_Gameover
#======================
# This script is a simple simple script
#======================
# You can set up the Variable that
# control Energy Amount
# Also you can set up the Energy use
# per Walk/Dash. The Amount of
# energy require for to be able to run/walk
# is also setable(is there such word?)
#======================
# IMPORTANT!!!!!!!!
# If you want to show variable on
# map, use Freya's Var Window!
#=======================
# =====Version Note=====
# 1.21 | Variable name improve(What?)
# 1.20 | Big update, Able to restore per X frame
# and set a max amount for Energy
# 1.05 | Fixed going under 0 Bug
# 1.00 | Relese
#=======================
module Panda
#Variable Used to Control Energy
Energy_Var = 1 #Default 1
#Amount of Energy Required ro Run
Dash_Disable = 50 #Default 50
#Amount of Energy Required ro Run
Walk_Disable = 0 #Default 1
#Energy Cost Per Step(When Walking)
Walk = 2 #Default 2
#Energy Cost Per Step(When Running)
Dash = 3 #Default 3
#Wait frame for each trun
Wait = 60
#Energy restore per trun (from 1 to this amount)
Restore = 3
#use variable to control the max energy
Var = 1 # 1= false 2=true
#if Variable = true, what's the variable used to control max amount?