Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Recommended Posts

Hi all, I found this script in another mod and used psaopt to pull it out and PEXD to read it. When I try to recompile the script it won't work. Any help is appreciated. Here it is:

 

.FLAGS
hidden 0
conditional 1
.OBJECTS
OBJECT CleanerAlchemyPerkBoxScript : ObjectReference {0}
VARS
perk ::AlchemyPerk_var = null {0}
actor ::PlayerREF_var = null {0}
ENDVARS
PROPS
PROP actor PlayerREF rw {0}
AUTOVAR ::PlayerREF_var
ENDPROP
PROP perk AlchemyPerk rw {0}
AUTOVAR ::AlchemyPerk_var
ENDPROP
ENDPROPS
STATES
STATE DEFAULT
String FUNCTION GetState() {0}
@doc Function that returns the current state
FLAGS 0
return ::State
ENDFUNCTION
None FUNCTION AddPerk(perk akPerk) {0}
FLAGS 2
ENDFUNCTION
None FUNCTION OnTriggerLeave(ObjectReference akActionRef) {0}
FLAGS 0
VARS
actor ::temp3
None ::NoneVar
ENDVARS
callstatic game, GetPlayer, ::temp3
callmethod RemovePerk, ::temp3, ::NoneVar, ::AlchemyPerk_var
callstatic debug, notification, ::NoneVar, "Your alchemy skill has returned to normal"
ENDFUNCTION
None FUNCTION GotoState(String newState) {0}
@doc Function that switches this object to the specified state
FLAGS 0
VARS
None ::NoneVar
ENDVARS
callmethod onEndState, self, ::NoneVar
assign ::State, newState
callmethod onBeginState, self, ::NoneVar
ENDFUNCTION
None FUNCTION OnTriggerEnter(ObjectReference akActionRef) {0}
FLAGS 0
VARS
ObjectReference ::temp0
Bool ::temp1
actor ::temp2
None ::NoneVar
ENDVARS
cast ::temp0, ::PlayerREF_var
cmp_eq ::temp1, akActionRef, ::temp0
jmpf ::temp1, 5
callstatic game, GetPlayer, ::temp2
callmethod AddPerk, ::temp2, ::NoneVar, ::AlchemyPerk_var
callstatic debug, notification, ::NoneVar, "Alchemical Brilliance added"
jmp 1
ENDFUNCTION
None FUNCTION RemovePerk(perk akPerk) {0}
FLAGS 2
ENDFUNCTION
ENDSTATE
ENDSTATES
ENDOBJECT
Edited by InsanitySorrow
Added codebox
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...