So yea.
I need help with a player gaining a trait when selecting an option or drinking an potion.
Sort of how the do it in Elona.
Any idea how to set up soemthing like that ?
I want player character to sort of evovle get reawarded with traits.
Player gaining a trait
● ARCHIVED · READ-ONLY
-
-
By default traits are static and can only be gained by states.
For anything else you'll need plugins like shaz dynamic traits. -
So yea.
I need help with a player gaining a trait when selecting an option or drinking an potion.
Sort of how the do it in Elona.
Any idea how to set up soemthing like that ?
I want player character to sort of evovle get reawarded with traits.
Assuming you are talking about the engines default traits, I am sure I am missing something here, but please be aware that you can just use the built in event command to "change parameter" on an actor when something happens (like drinking a potion). -
@Guanto change parameter does only that, change a parameter. It has absolutely nothing to do with the traits-part of a class (top right)
-
If you mean "Traits" as in the things on the Traits box in the upper right portion of the Actors,Classes,Equipment,States tabs in the database, you will need plugins like Andar said. If you mean the basic parameters like HP, ATK etc, you can use the event command Change Parameters, and also there might be something in the effects box of the item that can actually increase parameters too.
-
Huh? I'm fairly confident a parameter (a tab within the traits box) in the traits box on the class tab can be directly manipulated via event change parameter... among other ways.@Guanto change parameter does only that, change a parameter. It has absolutely nothing to do with the traits-part of a class (top right)
Like @Guanto said - I mean since you were citing references ;)If you mean the basic parameters like HP, ATK etc, you can use the event command Change Parameters,
Several, and a formula box... that's why I'm a little lost on this one.and also there might be something in the effects box of the item that can actually increase parameters too.
Obviously need some more clarification from OP, but to have a potion manipulate a trait is built-in functionality. -
you misunderstood what a parameter is.Huh? I'm fairly confident a parameter (a tab within the traits box) in the traits box on the class tab can be directly manipulated via event change parameter... among other ways.
the parameters are set in the top center part of the class tab, and are level-dependent base values that can further be modified by equipment, by event command or by trait.
The traits you're talking about modify the existing parameters, but they do not define them.
and traits are much more than that, parameter-modifications are only one type of trait. For example the ability to use equipment or to access skill types are all traits - and those traits can't be changed by event command.
And neither can you give a percentage bonus to a parameter with an event command, that command can only change the existing parameter while the trait would affect even future gains to the parameter. -
I'm not sure me using an explicit documented definition of a "parameter" (class > traits > param) qualifies as misunderstanding.you misunderstood what a parameter is.
And I would be amazed if OP was talking about anything beyond this.parameter-modifications are only one type of trait. -
@Guanto -
The command Change Parameter modifies the basic parameters via direct values, and as pointed out only works for the basic parameters
Traits cover things like Ex Params, Sp Params, Element Rates, State Rates, Special Flags and so on.
And I would be amazed if OP was talking about anything beyond this.
Since the OP said Traits and not Parameters, its better to assume he means modifying any of the Traits. -
Yep. As pointed out there is also an effects box and a formula box, pre-plugins, that could fit the bill depending.The command Change Parameter modifies the basic parameters via direct values, and as pointed out only works for the basic parameters
Traits cover things like Ex Params, Sp Params, Element Rates, State Rates, Special Flags and so on.
I'm interpreting the question a bit differently, and what I shared does fall under the category of "modifying traits".Since the OP said Traits and not Parameters, its better to assume he means modifying any of the Traits. -
Anyway, if he only needs to change/add basic parameters, the event command should suffice. If he wants to modify Traits, he needs the plugin. He asked for "Traits" so we gave him the more general answer.
-
Oh I'm well aware of that "general answer".Anyway, if he only needs to change/add basic parameters, the event command should suffice. If he wants to modify Traits, he needs the plugin. He asked for "Traits" so we gave him the more general answer.
Anyhoo, since I interpreted a slightly different meaning to the inquiry, and the topic wasn't locked after the first response, I decided to contribute. -
I mean traists as in well traits/perks.
lets say yout char drinks a potion that grants him "charming smile" wich causes vendors to have better prices.
or :spirit vision" like in divinity orginal sin wich causes player to see events that normally wouldnt be there.
Or "demon eyes" wich would cause better lets say luck stat but for the cost of some other stat.
By traits i mean "you gain a tag scholar you are now able to use that tag in a conversation"
Or like Elona does it."you were exposed to magic Aids you can use third arm to hold an items" -