Dynamic Traits and Effects

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,966
Reaction score
13,603
First Language
English
Primarily Uses
RMMV
AddTrait class $gameParty.targetActor()._classId TRAIT_EQUIP_WTYPE 3

You left out the class keyword. What I gave you was what to put instead of the class id.
 

41728280

Veteran
Veteran
Joined
May 31, 2020
Messages
239
Reaction score
71
First Language
Chinese
Primarily Uses
RMMV
AddTrait class $gameParty.targetActor()._classId TRAIT_EQUIP_WTYPE 3

You left out the class keyword. What I gave you was what to put instead of the class id.
Ah, it turned out to be so, I really appreciate your help!
 

tumsterfest

Veteran
Veteran
Joined
Aug 11, 2020
Messages
42
Reaction score
4
First Language
English
Primarily Uses
RMMZ
Is there an MZ plugin that lets you add traits mid-game like this? I can't seem to find anything.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
39,966
Reaction score
13,603
First Language
English
Primarily Uses
RMMV
I believe one of the VisuStella core plugins will do it
 

tumsterfest

Veteran
Veteran
Joined
Aug 11, 2020
Messages
42
Reaction score
4
First Language
English
Primarily Uses
RMMZ
I believe one of the VisuStella core plugins will do it
That was my assumption, but I'm not seeing it anywhere. It's totally possible I'm missing it in the loooong explanations and lists of notetags and JS coding. But so far, even searching "traits" on several of the Yanfly/VS plugin pages hasn't turned anything up.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Yesterday I made my first step towards eating more healthily.
I saw candy on discount and did not buy it.
"They yearn for what they fear for."
I always told my DA fans how much I hate slot machines. They're fine in games as a risk-and-reward system. But when you're spending REAL MONEY in a Vegas casino to try and hit the jackpot (which very, very few people will), it can really hurt your budget. Gambling is a bad habit, and I don't like wasting my money on a slim chance. Go to Vegas for the experience, not the jackpot.
Took the kids to a corn maze. They gave us a map and had lights at certain points in the maze. Not overwhelming... or underwhelming... just... whelming.

Forum statistics

Threads
104,399
Messages
1,006,105
Members
135,929
Latest member
raffle
Top