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...

[SKY] Noob needing help on easy script


allidoischill
 Share

Recommended Posts

Hi everyone. This is the first script I've tried to code in papyrus, and what I'm trying to do is is make a magic effect that will take the target of a spell and change the actor's race into a Skeleton Custom Race. Here's what I've got:

Scriptname ZNECskeliscript extends activemagiceffect

ObjectReference property SkeletonRace auto

Event OnSpellCast (Actor Target, Actor Caster)

Target.SetRace(SkeletonRace)

EndEvent

output is as follows:

ZNECskeliscript.psc(7,7): type mismatch on parameter 1 (did you forget a cast?)

ZNECskeliscript.psc(5,0): the parameter types of function onspellcast in the empty state on script znecskeliscript do not match the parent script activemagiceffect

No output generated for ZNECskeliscript, compilation failed.

So I think the issue revolves around the SetRace function and how it doesn't belong in the activemagiceffect functions since it's an actor function, but I have no idea how to get around that. Any help would be much appreciated.

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...