I've nearly worked out my new repair script (I think), but I'm stuck on how to determine in a quest script who is doing the repair. I was going to use GetSelf with GetIsReference, but the script will not compile because "GetSelf requires explicit reference in quest script." And I don't know how to do that, since the actor is unknown at that point.
As usual, my script is pretty simple, but here's what I have so far:
ref myselffloat RepairSkillBaseBegin GameMode If ShowRepairMenu set myself to GetSelf if GetIsReference player set RepairSkillBase to 0 else ;It's not the player set RepairSkillBase to 10 endif SetNumericGameSetting fRepairSkillBase RepairSkillBase ; max player repair of any item is same as player's repair skill; NPC's can repair 100% endifEnd
Does anyone have any advice on how I can do this? I'm really stuck, and have tried for hours to find out how to do this.