0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

RPGツクールMVで特定アクターの所持スキル数を取得するコード

Last updated at Posted at 2016-09-28

全スキル数の取得

$gameActors.actor(アクター番号).skills().length

スキルタイプが2つ以上あるとき(魔法、スキル、・・・)に、片方のだけ取得したい場合

$gameActors.actor(アクター番号).skills().filter(function(item) {return item.stypeId==スキルタイプ番号;}).length

例:アクター番号1番のキャラの2番目のスキルタイプのスキル数を取得

$gameActors.actor(1).skills().filter(function(item) {return item.stypeId==2;}).length

イベントのスクリプトとかで使ってください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?