Plain and simple, all I need is to set the value of an actor value I made to a global variable I also made for a mod I'm trying to build. This is basically what I had in a script before I rage quit:
Scriptname PlayerMods:AVtoGlobalDodge extends GlobalVariable Hidden
ActorValue Property DodgeChance Auto
GlobalVariable Property DodgePercent Auto
Game.GetPlayer().GetValue(DodgeChance)
DodgePercent.SetValue("DodgeValue")
for which I get the error:
Papyrus Compiler Version 2.8.0.4 for Fallout 4
Copyright © ZeniMax Media. All rights reserved.
Starting 1 compile threads for 1 files...
Compiling "PlayerMods:AVtoGlobalDodge"...
Buzz:\buzzz\buzzzz\AppData\Local\Temp\PapyrusTemp\PlayerMods\AVtoGlobalDodge.psc(7,4): no viable alternative at input '.'
No output generated for PlayerMods:AVtoGlobalDodge, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on PlayerMods:AVtoGlobalDodge
As you can probably tell, I'm building up a mod that will allow players to set up a dodge build like those seen in Payday 2. It will work pretty much identically like Unstoppable, but will stack with other perks and aids that will boost your dodge stat. It's all set up to affect an actor value which will in turn boost one's dodge capabilities. The problem is that in order for it to work the number used for determining dodge must be drawn from a global variable so that is what I need a script for(I think). If this one problem were solved then most assuredly the stars would align and the streets would be littered with gold and pet unicorns who also poop gold and I would be very grateful to the script MASTER who toils away precious seconds to help this blatant scrub.
In other words, thanks in advance!