Jump to content

Custom Spell how-to?? (also effect possible??)


Badwolflabs

Recommended Posts

Posted

Im thinking as part of a mod to make adopting kids more useful there could be a special spell for them

 

 

What it would do is 30% chance it loots the target (unnamed targets only) 45% chance it hits with heavy Chaos damage and  25% chance it turns the target into a Tavern Wench/Servant.

 

 

1 are these effects possible?

2 how would it be setup??

 

 

message me directly for the rest of the setup

Posted

Using scripts you can do something.

But be aware that changing the race of an Actor may not be persistent.

 

Create a Magic Effect.

Set its type (for example Illusion, up to you to decide the one, but one is mandatory)

Give it a short description.

Set it to Aimed / Fire and Forget

Type of effect will be "script".

 

Then create a spell, give it a name, set it to Aimed / Fire and Forget

Add the Magic Effect to it.

 

Now, if you like, you can add some casting effects and the casting time. Not required, but at least the casting art may help.

 

Then the script for the magic effect.

Create a new one (it will extend ActiveMagicEffect)

 

In the code add

Event OnEffectStart(Actor caster, Actor target)
 int rnd = Utility.randomInt(0, 100)
 if rnd<30 && target.getLeveledActorbase().isUnique() ; 30% chance it loots the target is "named" (==unique)
   target.RemoveAllItems(PlayerRef, abKeepOwnership = false, abRemoveQuestItems = true)
 elseIf rnd<75 ; 45% chance it hits with heavy Chaos damage
   ; do soemthing here to apply "chaos" damage whatever it is
 else ; 25% chance it turns the target into a Tavern Wench/Servant
   target.SetRace(nordRace)
   ActorUtil.addPackageOverride(target, wenchPackage)
 endIf
endEvent

Actor Property PlayerRef Auto
Race Property NordRace Auto
Package Property wenchPackage Auto

 

 

 

Of course you may want to do something more to "transform to a wench", for sure you need a package and probably it has to be done for each locations.

Archived

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

  • Recently Browsing   0 members

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