じ☆ve冰风 发表于 6 天前

Magic Units

Magic Units

Author: Tsukihime


http://i.imgur.com/iYSum.jpg


Overview

This script converts skill types to "units". In the default engine, skill use consumes MP or TP. A "unit of magic" is treated like an item; in order to use the magic, you must have one, and each time you use it, you consume as many units as required.

Features


[*]Specify skill types that should be treated as units
[*]Consume units of skill rather than MP or TP
[*]Gain or lose units through script calls
[*]Anyone can use the skill as long as they have units

Usage

You can determine how many units of each skill you can have using



                Code:        
<max-units: n>

For some integer n

You can also determine which skill types should be treated as

units by specifying it in the configuration.

You can add/remove magic units by using script calls



                Code:        
add_units(skill_id, amount, scope_id, scope) lose_units(skill_id, amount, scope_id, scope)

scope is either "actor" or "party".

If the scope is "party", then the scope_id is the number representing

the position of an actor in your party. 1 will be the first person,

2 will be the second person, etc

If the scope is actor, then the scope_id is the actor_id.

By default, the scope is "party"

Download

Script: http://db.tt/47ySZhca

Demo: http://db.tt/5UCTLMZH (copy rgss30x.dll to the System folder to run it)


本贴来自国际rpgmaker官方论坛作者:Tsukihime处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/magic-units.3088/
页: [1]
查看完整版本: Magic Units