じ☆ve冰风 发表于 昨天 15:59

AktorTraits VX

AktorTraits VX

by Kyonides​

Introduction

A forumer once asked for a very specific script to be made, a Trait System for the player's mobsters.

Add as many "traits" to each list this way:
                Ruby:       
LIKES = ["ice cream", "football", "science", "languages"]


If it gets too long, you can add more traits in the following lines.
                Ruby:       
LIKES = ["ice cream", "football", "science", "languages", "dancing",
"trees", "penguins", "pizza"]


It has several Optional Script Calls, thus feel free to read the # embedded comments left there.

WARNING!​

It would fail if you are testing your game using old save files.
An Actor's Position or Actor's Index can be any Number starting from 0.
The larger your Party is, the more positions there will be available.
It is also available for RMXP and RMVX ACE.

Embedded Comments​

                Ruby:       
# * Script Calls * #

# - Step 1: Find an Actor - 2 Methods
# actor = $game_actors
# actor = $game_party.member(ActorPosition)

# - Step 2: Use Any of the Following Calls

# - Check if the Actor Has a Trait - 2 Ways
# -- Pass a "Trait"
# actor.personality?("Trait")
# actor.like?("Trait")
# actor.dislike?("Trait")
# actor.hobby?("Trait")
# -- Pass 2 ActorID's
# personality?(ActorID1, ActorID2)
# like?(ActorID1, ActorID2)
# dislike?(ActorID1, ActorID2)
# hobby?(ActorID1, ActorID2)

# * Optional Script Calls * #

# Their purpose is to change the Traits at a specific moment or as per the
# player's request at a store, etc.

# - Change a Type of Trait Randomly
# actor.change_personality
# actor.change_like
# actor.change_dislike
# actor.change_hobby


DOWNLOAD SCRIPT​

Terms & Conditions

Free for use in any game.
Due credit is mandatory.
Don't piss me off!
That's it!


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