Jump to content

Set projectile art through papyrus


wintersblast

Recommended Posts

To begin with, I have no experience in modding and certainly no experience with papyrus. I am familiar with other object-orientated languages and I have looked at the Creation Kit wiki.

 

Enough with the introduction, I am wondering whether it is possible to convert weapons into projectile objects in papyrus. More specifically, is it possible to say, produce an effect along the lines of launching a weapon through a spell:

 

1. Check your inventory for item X (item X being a weapon)

2. Get the art or item X (I believe it's the .nfi).

3. Set the art to another object (say a projectile)

4. Set the projectile to the spell.

 

OR

 

1. Check your inventory for item X (item X being a weapon)

2. Move item X from point A to point B.

3. Deal damage on contact.

 

Are either methods possible? If so, it would be great if you can point me in the right direction.

I know step 1 in general is relatively easy to do, but does Skyrim have a system to differentiate melee and ranged weapons?

 

Thanks for your time.

Link to comment
Share on other sites

I'm not a coder, but I would imagine that this sort of thing is possible. Several throwing-knife mods have been made, and they do similar things to this, though they don't work through spells, nor am I sure if they used papyrus.

If you're aiming for what I think you're aiming for, I likey.

Link to comment
Share on other sites

Hmm, I've had a look at the throwing knife script.

He created a new projectile and spell for every weapon.

 

Judging from the mods I've looked at, it doesn't seem possible to set the art file of a projectile in the script. Nor does it seem possible to set a spell's projectile in the script either. Seems that a new spell and projectile need to be created for every weapon, and every modded weapon would need to be added manually.

 

In fact it seems that once the game starts most object properties are unchangeable.

 

Can anyone confirm this?

 

EDIT: After further research it seems that adding the weapon nif to the projectile would cause the projectile to appear to "overshoot".

 

So, assuming a new projectile is created for each base weapon. Is it possible to get the enchantment effects and damage of weapons that are not equipped?

Edited by wintersblast
Link to comment
Share on other sites

  • Recently Browsing   0 members

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