Page 1 of 1

Modifier Triggers to Script

Posted: Thu Nov 09, 2017 3:40 pm
by Heroes084
I need a help on making a player get some modifiers when activating something, like the player does more melee damage when pressing a button, so... if someone could help me on this, Thx :D

Re: Modifier Triggers to Script

Posted: Fri Nov 10, 2017 6:05 pm
by JakSparro98
Heroes084 wrote:
Thu Nov 09, 2017 3:40 pm
I need a help on making a player get some modifiers when activating something, like the player does more melee damage when pressing a button, so... if someone could help me on this, Thx :D
Do you need other kind of profile triggering apart from the button press? like AreaTriggers for example?
Then, you need that only players can get effects from a modifier or also bots?
Lastly only the one that activates the trigger will be affected by the modifier?

Re: Modifier Triggers to Script

Posted: Sat Nov 11, 2017 3:40 am
by Heroes084
JakSparro98 wrote:
Fri Nov 10, 2017 6:05 pm
Heroes084 wrote:
Thu Nov 09, 2017 3:40 pm
I need a help on making a player get some modifiers when activating something, like the player does more melee damage when pressing a button, so... if someone could help me on this, Thx :D
Do you need other kind of profile triggering apart from the button press? like AreaTriggers for example?
Then, you need that only players can get effects from a modifier or also bots?
Lastly only the one that activates the trigger will be affected by the modifier?
yeah a need something like that, so i could make some scripts that make specific players have specifed modifiers

Re: Modifier Triggers to Script

Posted: Sat Nov 11, 2017 10:20 pm
by JakSparro98
Heroes084 wrote:
Sat Nov 11, 2017 3:40 am
JakSparro98 wrote:
Fri Nov 10, 2017 6:05 pm
Heroes084 wrote:
Thu Nov 09, 2017 3:40 pm
I need a help on making a player get some modifiers when activating something, like the player does more melee damage when pressing a button, so... if someone could help me on this, Thx :D
Do you need other kind of profile triggering apart from the button press? like AreaTriggers for example?
Then, you need that only players can get effects from a modifier or also bots?
Lastly only the one that activates the trigger will be affected by the modifier?
yeah a need something like that, so i could make some scripts that make specific players have specifed modifiers
With this the player that activates the button, or passes through the trigger will inherit the modifiers.
Keep in mind that if you use multiple modifiers on the same player, the previous modifiers are not cleared if in the new triggered modifier there isn't a default flag (-2 instead of -1), so if you trigger a modifier that gives you more max health and then you trigger another that gives you more sprint speed, the max health is kept unless in the last triggered one there is a -2 in the max health field.

Here the script and map example of how to use the script along with triggers.