I need some help by modifying the vanilla-papyrus-script of the investor perk. Every help is welcome to advance this ability.
My intention is, that, if you choose the dialogue option and start to invest, a pop-up-windows shows up, in which you can type the amount of gold you want to invest. One quarter of that amount will be the additional amount, that the merchant gets permanently. Also should it be possible, to invest more than one time in the same merchant (so you could rise his gold amount step by step).
The original script looks like this:
Scriptname PerkInvestorQuestScript extends Quest Conditionalmiscobject Property Gold Autoint Property GoldAmount = 500 Autofunction GoldTransfer (ObjectReference VendorRef)game.getplayer().RemoveItem(Gold, InvestAmount.value as int)VendorRef.additem(Gold, InvestAmount.value as int)Actor VendorActor=VendorRef as ActorVendorActor.ModFavorPoints(PerkInvestorFavorReward.value as Int)EndFunctionglobalvariable Property PerkInvestorFavorReward AutoGlobalVariable Property InvestAmount Auto
Unfortunately I'm not that, what you call a expert scripter - so I would be glad about every suggestion.
Thanks!

- my script was successful all the time, but I defined one of the variables as constant, so that the chance, that the list won't spawn, remained by 100 percent (so nothing happened). I killed now the flag at "constant", and it works!