Jump to content

How to have spell check for item in inv; if not found, spell fails


Derps4Days

Recommended Posts

I had the idea for a dart launcher type weapon, but the only way I can think of making it work with somewhat correct animation and have it be single-handed for sure (not sure if bows can be one-handed, that's why) is to have it be a spell.

 

However, I don't want it to use magicka and instead check if "Dart Ammo" or something related is in the player's inventory. If not, a message will appear at the top left stating "You don't have any ammo." and the spell will not work, just like a normal one would when no magicka is left (minus the bar flash, since we aren't actually using magic).

 

I get the feeling GetItemCount and Debug.Notification are going to be helpful for this. Problem is, I don't know where to start.

 

...because I don't know how to script in Papyrus; it's so complex...

Link to comment
Share on other sites

There are a lot of things you'll have to learn about. This will be a scripted magic effect that you put in a spell. Unless you learn how to make textures, the dart will just look like a magic spell. You might want to start somewhere smaller. It takes a while to learn everything. I can't do all those things and I have almost 400 hours in the CK.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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