Advertisement
Nuor

goodwill multi

Dec 20th, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. -- xr_effects.script
  2. function complete_task_inc_goodwill(actor,npc,p)
  3. local amt = tonumber(p[1]) or 50
  4. amt = amt * axr_main.config:r_value("mm_options","goodwill_multipier",2,1.0)
  5. for i=2,#p do
  6. inc_faction_goodwill_to_actor(db.actor, nil, {p[i], amt})
  7. end
  8. end
  9.  
  10. -- axr_main_options.script
  11. menu.gameplay_options["goodwill_multipier"] = {default=1.0, debug_only=false, typ="list", list={0.5,0.75,1.0,1.5,2.0,2.5,3.0,4.0,5.0,10.0,20.0}}
  12.  
  13. --text
  14. <string id="ui_mm_goodwill_multipier">
  15. <text>Task Goodwill Multiplier</text>
  16. </string>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement