TDF Posted March 4, 2023 Share Posted March 4, 2023 (edited) Hello, Totally new at this ... I am trying to create a mod that gives all the players a buff one time per (real time) week or month, for 1h. I am assuming there is no existing trigger for this (FirstLoginOfTheWeek/Month) !? Any way to achieve it ? I am thinking that: - I may be able to build a variable to hold the real time ... ? .. or - Have a dummy buff for a week minus 1 hour ... and start the real one for 1 hour when the first expires .. but the first one should count time when the player is offline as well ... Any hints ? Thank you! Simple Buff below ... . <config> <append xpath="/buffs"> <!-- Weekly Buff --> <buff name="buffWeeklyBonus" name_key="WeeklyBuff" tooltip_key="buffWeeklyBonusTooltip" description_key="buffWeeklyBonusDesc" icon="ui_game_symbol_xp"> <stack_type value="duration"/> <duration value="3600"/> <update_rate value="9"/> <effect_group> <!-- <requirement name="OnceAWeek ???"/>--> <passive_effect name="PlayerExpGain" operation="perc_add" value="0.2"/> </effect_group> </buff> </append> </config> Edited March 4, 2023 by TDF Typos (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now