Jump to content

Need Help/Advice with Papyrus


Tallcastle

Recommended Posts

Ive tried to teach myself Papyrus and quickly found my self in way over my head. Short Story: I ether need someone willing to step in and help out with Papyrus or at least point me to a few places where i can learn what i need to on my own.

 

Long Story: This is what I'm doing and what i need.

 

the mod I'm working on would completely overhaul smithing, in particular it would change how a player would learn new smithing recipes. Rather than any player being able to make any item at a forge with the right perk selection and a prestigious skill rank, forge "blueprints" would be acquired the same way a person learns new spells, they buy them from merchants and smiths, receive them as quest rewards, and find them on monsters or as clutter in dungeons.

 

How It Would Work

 

Players reading "Blueprints" would be like reading a spell book, the they disappear when read and grant the player with a perk that allows them to from that point forward manufacture that particular item from the forge.

 

What I Need

 

The only way i can figure to do this is to set up a book attached to a Papyrus script that removes it from inventory and grants the necessary Invisible perk when read.

 

Any Help or suggestions would be appreciated.

Link to comment
Share on other sites

The script needed for this is easy:

 

Scriptname BlueprintScript extends ObjectReference

Perk Property MyPerk Auto

Event OnRead()
Game.GetPlayer().AddPerk(MyPerk)
Game.GetPlayer().RemoveItem(Self)
EndEvent

 

All you need to do is change the value for the property for each set of blueprints. As for a good place to learn Papyrus, I don't know. TES Alliance has a very good tutorial for beginners, but there's only one tutorial.

 

Have you tried the tutorials on the CK wiki?

Link to comment
Share on other sites

Thanks for the help!

 

yes. i checked tutorials in a few places ... the big problem with me is i have no traditional programing experience so i don't really understand code in any programing language .... i have done some work with XML files modding Civilization 4 but even then "Python" was little more than sand script to me

 

its odd how those 6 lines of code can make me feel like such a Luddite. :laugh:

 

you are a lifesaver thanks again :)

Link to comment
Share on other sites

  • Recently Browsing   0 members

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