Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,971
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

Regular
Regular
Joined
May 31, 2020
Messages
240
Reaction score
75
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

Regular
Regular
Joined
Aug 11, 2020
Messages
284
Reaction score
503
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

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,971
First Language
English
Primarily Uses
RMMV
I believe one of the VisuStella core plugins will do it
 

tumsterfest

Regular
Regular
Joined
Aug 11, 2020
Messages
284
Reaction score
503
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.
 

cirdian

Villager
Member
Joined
Feb 28, 2014
Messages
26
Reaction score
39
First Language
Brazil
Primarily Uses
Hello, I believe the downlaod link is broken...
 

cirdian

Villager
Member
Joined
Feb 28, 2014
Messages
26
Reaction score
39
First Language
Brazil
Primarily Uses
Weird... Maybe is my browser, it's not loading pastebin. Thanks for the reply.
 
Joined
Mar 23, 2021
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hello, I'm having trouble using this plugin. I'm trying to give one of my classes a new Skill Type, but no matter what I do it won't change!
I've tried it as an actor `AddTrait actor 3 TRAIT_STYPE 8` and as a class `AddTrait class 4 TRAIT_STYPE 8`

But neither seem to work!
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,665
Reaction score
11,182
First Language
English
Primarily Uses
RMMV
I've tried it as an actor `AddTrait actor 3 TRAIT_STYPE 8`
You're missing a third of your trait code. It should be TRAIT_STYPE_ADD, per the chart in the first post.
 

HalcyanStudio

Eniko Ghosts of Grace Dev
Regular
Joined
Mar 16, 2012
Messages
1,048
Reaction score
738
First Language
Dutch
Primarily Uses
RMMV
I'm using this succesfully for elemental rates, for example:

AddTrait actor 1 TRAIT_ELEMENT_RATE 6 0.85

But i seem to do something wrong for state rates? If use
AddTrait actor 1 TRAIT_STATE_RESIST 61 0.9 or AddTrait actor 1 TRAIT_STATE_RESIST 61 90 or AddTrait actor 1 TRAIT_STATE_RESIST 61 110, the state resist always changes to 0%?

Edit: found the issue, had to use TRAIT_STATE_RATE instead of TRAIT_STATE_RESIST
 
Last edited:

Rhestael

Villager
Member
Joined
Oct 2, 2023
Messages
11
Reaction score
0
First Language
Turkish
Primarily Uses
RMMV
Im having a huge issue about the plugin. cant seem to make it work in anyway i want. So far what i could do is to make an item act as something that can be used to give a trait to the actor 1 in this case but what i want is, instead of giving it to actor one like AddTrait actor 1 TRAIT_STYPE_ADD 9 i want to make it so that which ever character that i use on it will have the effect. been working on this to understand how it works for 6-7 hours. im completely lost and i need this badly. wouldve been awesome if there were some examples or sample.
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,665
Reaction score
11,182
First Language
English
Primarily Uses
RMMV
Im having a huge issue about the plugin. cant seem to make it work in anyway i want.
It would help if you provided screenshots of what you've tried so far. The first post, plugin file itself, and the rest of this thread do have examples.

Without any knowledge of what you have so far, anyone helping you is starting at making an item and the code from scratch.
 

Rhestael

Villager
Member
Joined
Oct 2, 2023
Messages
11
Reaction score
0
First Language
Turkish
Primarily Uses
RMMV
So far this is what i did. Ive created an item and gave it a common event for plugin command to act as a source of the skill stype trait and this is the only thing i could do with the given informations (as far as i could process in my mind) but when i do this it gives to a specified actor even if i use it on another actor because i only know how to write that kind of plugin command. im not sure how can i make the command work in a way that whom ever i use it on gets the trait.
ss 1.png
 

Attachments

  • ss2.png
    ss2.png
    76.7 KB · Views: 0

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,665
Reaction score
11,182
First Language
English
Primarily Uses
RMMV
So far this is what i did.
Okay...that's not super helpful because you're not showing the contents of the event where you're trying to actually use the plugin command. So we don't know if your syntax is correct at all.

But the trick here is that a common event has no way of knowing which battler was targeted by a skill. So you need to give it some point of reference.

For example:
1 - Give your skill an Add State at the top of its Effects list (any blank, dummy state)
2 - In the common event, you use a series of Conditional Branches
Conditional Branch -> Actor 1 Has dummy state
- type in the plugin command targeting actor 1
- remove dummy state from actor 1
Conditional Branch -> Actor 2 has dummy state
- type in the plugin command targeting actor 2
- remove dummy state from actor 2
etc.
 

Rhestael

Villager
Member
Joined
Oct 2, 2023
Messages
11
Reaction score
0
First Language
Turkish
Primarily Uses
RMMV
Im sorry im very new to all these. Pretty noob about the subject. Its not a matter of syntax i just dont know how to write it in that way. "AddTrait actor 1 TRAIT_STYPE_ADD 9" in a plugin command. this is all i did. Im still learning everyday about how plugins work. I will try your method and see if that does anything. Sorry for late response i was very busy.
 

Latest Threads

Latest Posts

Latest Profile Posts

these 80+ gb updates on several years old games are the absolute worst. I just want to play for an hour or so before bed to unwind. Sorry, gotta spend that time downloading an update. Then my mods will be broken so I'll have to start over or wait for those to be updated to. Is a complete game within three years of the pay to be a beta tester period really to much to ask?
So important question - how much uncensored pixel art butt can I show and still have PG-13 game rating?
There, three maps of my roughly 60 indoor maps now have light blocking on doors working correctly! (You won't see doors through walls if you shine the flashlight at the wall)
I really trudged through the molasses for this one today. Here’s Day #5! Give thanks and love to our advent folk! Maybe a snow dance? So I guess…do you wish for a white Christmas? Sorry Southern Hemisphere!
Hoping to see the first key claim soon...

Forum statistics

Threads
136,780
Messages
1,269,838
Members
180,521
Latest member
Pingas00k7
Top