Player gaining a trait

● ARCHIVED · READ-ONLY
Started by Nekron 14 posts View original ↗
  1. 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.
  2. By default traits are static and can only be gained by states.
    For anything else you'll need plugins like shaz dynamic traits.
  3. Nekron said:
    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).
  4. @Guanto change parameter does only that, change a parameter. It has absolutely nothing to do with the traits-part of a class (top right)
  5. 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.
  6. Andar said:
    @Guanto change parameter does only that, change a parameter. It has absolutely nothing to do with the traits-part of a class (top right)
    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.

    Engr. Adiktuzmiko said:
    If you mean the basic parameters like HP, ATK etc, you can use the event command Change Parameters,
    Like @Guanto said - I mean since you were citing references ;)

    Engr. Adiktuzmiko said:
    and also there might be something in the effects box of the item that can actually increase parameters too.
    Several, and a formula box... that's why I'm a little lost on this one.

    Obviously need some more clarification from OP, but to have a potion manipulate a trait is built-in functionality.
  7. Guanto said:
    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.
    you misunderstood what a parameter is.
    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.
  8. Andar said:
    you misunderstood what a parameter is.
    I'm not sure me using an explicit documented definition of a "parameter" (class > traits > param) qualifies as misunderstanding.

    Andar said:
    parameter-modifications are only one type of trait.
    And I would be amazed if OP was talking about anything beyond this.
  9. @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.
  10. Engr. Adiktuzmiko said:
    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.
    Yep. As pointed out there is also an effects box and a formula box, pre-plugins, that could fit the bill depending.

    Engr. Adiktuzmiko said:
    Since the OP said Traits and not Parameters, its better to assume he means modifying any of the Traits.
    I'm interpreting the question a bit differently, and what I shared does fall under the category of "modifying traits".
  11. 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.
  12. Engr. Adiktuzmiko said:
    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".

    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.
  13. 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"