Jump to content

Mod Help?


Guest Suited Prawns

Recommended Posts

Guest Suited Prawns
Posted

So I have no idea if this is the right place to ask this, please excuse me if it isn't.

 

Hey there I have a modding question and I hope I get an answer over here since I'd like a quicker response and Im not getting one on The nexus.

So here i go:

Ive been working on a mod and I need help with the script for it. The mod is a transformation, that changes the player into a Skeleton and then when recast back.

Ive not worked on any scripts to add weapons or anything like that, just change the characters race and then back.

Here is the script i wrote to do this:

Scriptname Transform extends ActiveMagicEffect  






Event OnEffectStart(Actor Target, Actor Caster)
   


    if (Target.GetActorBase().GetRace() != 1skeletonrace)


Target.setrace(1skeletonrace)


        elseif 
         (Target.GetActorBase().GetRace() == 1skeletonrace)
Target.PlayerOriginalRace




    endif
EndEvent

If you could tell me how to fix this then id be very grateful.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...