Checking weapon type

clark

Villager
Member
Joined
Feb 23, 2016
Messages
22
Reaction score
10
First Language
english
Primarily Uses
how do i do this:


$game_actors[x].equips[y].wtype_id unless $game_actors[x].equips[y] == nil


in javascript?


I just want to check weapon types lol.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,848
First Language
English
If you just want to check whether a certain weapon type is equipped you can do this instead:


$gameActors.actor(ACTOR_ID).isWtypeEquipped(WTYPE_ID)


Which returns true if the specified actor is holding a weapon of the specified type.


This formula reference might be useful
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,470
Members
137,821
Latest member
Capterson
Top