Macgyver1958 Posted February 19, 2012 Share Posted February 19, 2012 (edited) I'm trying to make a NPC that is capable of training you in more than one skill. For this example, we'll call him "SwordTrainer" who can train you in both one and two handed weapons. I've added him to both JobTrainerOnehanedFaction and JobTrainerTwohandedFaction. I created a dialogue for him that gives both options "Can you train me in Two handed Weapons?" and "Can you train me in One Handed Weapons." The script that is activated with these responses is: ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment;NEXT FRAGMENT INDEX 1Scriptname TIF__000E3A47 Extends TopicInfo Hidden ;BEGIN FRAGMENT Fragment_0Function Fragment_0(ObjectReference akSpeakerRef)Actor akSpeaker = akSpeakerRef as Actor;BEGIN CODEGame.ShowTrainingMenu(akSpeaker);END CODEEndFunction;END FRAGMENT ;END FRAGMENT CODE - Do not edit anything between this and the begin comment I'm super new to scripting, so I'm trying to figure out where the script gets it's information on what skill training menu to display. I'm assuming it's from the "class" of the character. I'm wondering if it's possible to modify the script and specify a specific training menu....like "Game.ShowTrainingMenu(OneHandedMaster). Any help would be appreciated. Edited February 19, 2012 by Macgyver1958 Link to comment Share on other sites More sharing options...
Macgyver1958 Posted February 20, 2012 Author Share Posted February 20, 2012 According to the Wiki, the syntax for the command is Function ShowTrainingMenu(Actor aActor) native global I've been trying to specify a specific Actor like : game.ShowTrainingMenu(Vilkas), but it doesn't like that. Can anyone help me with the syntax of this command? Link to comment Share on other sites More sharing options...
Cipscis Posted February 20, 2012 Share Posted February 20, 2012 Were you using a property? Perhaps this will help - EditorIDs in Papyrus Cipscis Link to comment Share on other sites More sharing options...
Macgyver1958 Posted February 20, 2012 Author Share Posted February 20, 2012 I'm not really sure, I'm just learning Papyrus. The problem is the only resource on it is the Creationkit.com site. Unfortunately, it was written by a programmer, and not a technical writer. While I'm sure the author thought it made perfect sense, It's quite confusing to a non-programmer. In many cases the author just assumes you already know about something, and doesn't bother to explain each detail...and if there's a part you don't understand, you're screwed. Hopefully someone else in the near future will come out with a scripting tutorial that brings things down to level the audience (gamers) can understand. Link to comment Share on other sites More sharing options...
Cipscis Posted February 20, 2012 Share Posted February 20, 2012 www.creationkit.com is a wiki. It was originally written (and used) by Skyrim's developers during the development of Skyrim, and is now available to be edited by the public. If you think something on there is unclear, you'd be welcome to raise it on that article's talk page, or to re-word the unclear bit if you're feeling confident. Cipscis Link to comment Share on other sites More sharing options...
Recommended Posts