Jump to content

Creating new spell script effect


furzball

Recommended Posts

If I am doing a spell that does a charm effect visual, but only script effect is

moddisposition <actorid> <nn> how do I program it to be the target of the spell? As in whatever the spell is pointed at will become the target of the script.

By default, anything which the script is attached to will be used as the target for the effects of the script. In the case of a spell, it becomes whatever the spell if affecting.

 

In your case, all you need to do is define who you want the affected actor to change their disposition toward.

 

moddisposition player 45 will make whatever is hit by the spell like the player more.

 

However, there is no easy way of determining who cast the spell, so the actor you want to change dispositions toward needs to be one which is either known and persistent, or one which is obtained through some means within the spell script. The standard charm effect does this automatically, so a long duration charm may be the best solution if you are trying to make the targeted NPC change their disposition toward anyone other than the player or a knowable reference.

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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