Jump to content

Cipscis

Premium Member
  • Posts

    1103
  • Joined

  • Last visited

Everything posted by Cipscis

  1. An object does receive updates if it's not registered for updates. P.S. When posting scripts, please use code tags. This makes the script displayed with a fixed-width font, and maintains formatting like indentation. For example: Cipscis
  2. It's also worth mentioning that there's been discussion of this on the official Creation Kit forums - Old versions of mods conflicting with newer ones Cipscis
  3. Well, it sounds like the variable sSpeed is undefined. Could you post the script as well so we could see where you're trying to use it and whether or not you've declared it correctly? Cipscis
  4. FindClosestReferenceOfTypeFromRef takes an object of type Form as its first parameter, which should be the base object of which you're trying to find references. However, I suspect your "target" variable is of type ObjectReference, which is itself a reference. Since ObjectReferences can't have references of their own, FindClosestReferenceOfTypeFromRef will never find anything, but because ObjectReference extends Form the compiler will auto-cast it to Form so the compilation will be successful. To fix your call to FindClosestReferenceOfTypeFromRef, you'll need to use GetBaseObject in order to your target's base form. To calculate the distance between two references, however, you don't want to use this function. Instead, you want to use the GetDistance function. Cipscis
  5. Here's a list of "Lonely Pages", which "are not linked from or transcluded into other pages". Cipscis EDIT: It appears some of these pages have categories, so they might not all be completely hidden. Currently only 15 pages are uncategorised. Cipscis
  6. Hey everyone! I've just published a new Papyrus tutorial on cipscis.com, aimed at beginners who want an introduction to Papyrus. It doesn't cover everything, but it covers all you're likely to need to know to write simpler scripts, and should hopefully be enough to get you started. I plan on writing a follow-up tutorial at some point, hopefully in the near future, covering more advanced aspects of Papyrus that I don't talk about in this tutorial, as well as going into more technical detail. I'd really appreciate any feedback on this. It's not set in stone by any means, and if you think it's unclear or wrong (please tell me if it's wrong, that's the most important thing) or anything, I'd really like to know. In case you're wondering, I'm hoping to take the feedback and the knowledge I gain from the experience of writing this tutorial and its follow-up to help improve the Creation Kit Wiki's information on Papyrus. While the information is pretty much all there, it can be hard to find and I'd like to help with that. I also like to be able to point to my own explanations of stuff, though, which is why I also like writing tutorials over which I can maintain ownership. Anyway, here's what I'm sure you're looking for: Papyrus for Beginners P.S. Thanks a lot to those of you who agreed to proof read this for me prior to its publishing, even if in your particular case life got in the way (as it often does). Cipscis
  7. Try checking in another mod manager, like Wrye Bash or the Nexus Mod Manager, as they will show you Update.esm as well. I expect it has somehow become deactivated. Cipscis
  8. This sounds like a missing master issue. Are you certain that you haven't deactivated Update.esm? Plugins should require Update.esm, so that shouldn't be a problem. Cipscis
  9. ReferenceAliases and ActiveMagicEffects are sent events from the Actor at which they're pointing. I don't know if an effect would be applied soon enough to catch an OnHit event, but if you set a ReferenceAlias ahead of time you should be able to catch that. You'd probably be safe with a quest that has, say, 15 alias slots (or more, if it seems to be necessary) that resets itself whenever the player enters combat, using a method like this to attach them to nearby actors in order to catch OnHit events. Cipscis
  10. If you have a script that won't compile, it's really helpful if you also post the full script and compiler output. Cipscis
  11. Only declarative code can be used outside of function bodies. You don't want to attach a script to the race, though. In fact, I'm pretty sure the game doesn't know how to handle that, and none of your code would ever be run (unless a global function was called from another script). You could try using a quest script to add an ability to the player which is conditionalised to activate a scripted effect when the player's skill in Conjuration reaches 100, so an OnEffectStart event would be called, and then call SetRace in there. You also can't use editorIDs directly in Papyrus. Read this for more information - EditorIDs in Papyrus Cipscis
  12. It looks like this property already exists in your script. Did you add it earlier as well? Cipscis
  13. I'm guessing OnLoad isn't firing because, presumably, the player's 3D is always loaded, and OnUpdate won't fire because the player isn't registered for any updates. Cipscis
  14. 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
  15. Were you using a property? Perhaps this will help - EditorIDs in Papyrus Cipscis
  16. You can only make requests about the content of an inventory if you know exactly what type(s) of item you're looking for. However, with the OnItemAdded and OnItemRemoved events you can accurately keep track of changes to a container's inventory. Couple that with RemoveAllItems (twice to move items to another container then back again) and you should be able to detect all items within a container. Be wary of doing this with actors, however. Particularly the player. Removing an item will also unequip it, and I'm not sure but I expect it would play havok with favourites and/or hotkeys. Cipscis
  17. I can't think of any time in which you would ever want to use a formID in a script, unless it's for the sole purpose of printing it to a debug log. Use a property instead - have a read of this for a bit of detail on that - EditorIDs in Papyrus Cipscis
  18. Exactly the same, I'm afraid. For all intents and purposes with regard to inventories, actors and containers can basically be treated as identical. Cipscis
  19. Take a look at this thread on the official forums for some good information about attaching ReferenceAlias scripts to nearby Actors - Dynamically attaching scripts to Actors near the player Cipscis
  20. That's not what you think it is - it's one of the native scripts that is automatically attached by the game to objects of the correct type. As far as I know, what you want to do can't be done in Papyrus. You'll have to wait on SKSE for this one, I expect. Even then, without "clone form" functionality, you wouldn't be able to do this for the player only, and if you can clone forms the you will lose a bit of the perfect compatibility you were looking for. You best chance by a long way, in my mind, is to use templates to create copies that will inherit changes to the original. Cipscis
  21. There's no "OnAttack" native event like you're looking for. The only way in which I know how to do that is quite complex and involves applying abilities or using ReferenceAliases to detect OnHit events from actors close enough for the player to hit them. By the way, I've seen the term "proc" used probably a dozen times now, but I haven't the faintest clue what it means, and neither has anyone I've asked. You seem to know, so could you pehaps enlighten me? Cipscis
  22. Okay, this tutorial I've written explains what your problem is and how to fix it - EditorIDs in Papyrus P.S. Please use code tags when posting scripts - they maintain formatting (like indentation) and force the scripts to be displayed in a fixed-width font. I've described how to do this on the official Creation Kit forums - How To Ask For Scripting Help Cipscis
  23. Would you mind showing us what you've got at the moment? Cipscis
  24. ObjectReference extends Form, so casting ObjectReference as Form will work every time. I also expect you should be able to add an ObjectReference to a FormList without any issues, although you may end up with problems due to persistence, so watch out. I discovered the importance of being aware of persistence first hand the other night. I don't know if it's possible to get the ObjectReference-specific value for an instance of an item. You may need to wait for SKSE for that functionality. Cipscis
  25. It should be, yeah, if you can attach a script to the container and know the initial state of its inventory. Keep in mind, however, that a FormList is global, so if you want more than one instance of this container you might want to take another approach, like a set of arrays as variables in your script. Have a play with it, you'll probably be able to get something working. Cipscis
×
×
  • Create New...