Jump to content

DOWNLOAD MODS

Are you looking for something shiny for your load order? We have many exclusive mods and resources you won't find anywhere else. Start your search now...

LEARN MODDING

Ready to try your hand at making your own mod creations? Visit the Enclave, the original ES/FO modding school, and learn the tricks of the trade from veteran modders...

JOIN THE ALLIANCE

Membership is free and registering unlocks image galleries, project hosting, live chat, unlimited downloads, & more...

Search the Community

Showing results for tags 'api'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community Boards
    • About TESA
    • TESA Community
  • Hosted Boards
    • The Enclave
    • Hosted Projects
  • Gaming Boards
    • The Elder Scrolls
    • Fallout
    • Indie Games
  • RPG Boards
    • Roleplaying

Categories

  • Showcase
    • Skyrim
    • Fallout
    • Oblivion
    • Misc
  • Exclusives
    • Skyrim
    • Fallout
    • Oblivion
    • Morrowind
    • Misc
  • Community Works
    • Skyrim
    • Oblivion
    • Fallout
    • Misc
    • Student Projects

Categories

  • ESV: Skyrim Modding
    • Creation Kit Basics
    • Level Design
    • Character Design
    • Papyrus
    • Quest Design & Dialogue
    • Graphic Artistry
    • 3D Craftworks
  • ESIV: Oblivion Modding
    • Construction Set Basics
    • Worldbuilding
    • NPCs & Radiant AI
    • Scripting
    • Questbuilding & Dialogue
    • Story & Lore
    • Texturing
    • Modeling
    • Miscellaneous
  • ESIII: Morrowind Modding
    • Tool Set Basics
    • Worldbuilding
    • NPCs
    • Scripting
    • Questbuilding
    • Texturing
    • Modeling
  • Fallout 3 Modding
    • GECK Basics
    • Worldbuilding
    • NPCs & Radiant AI
    • Scripting
    • Questbuilding & Dialogue
    • Texturing
    • Modeling
  • Gaming Guides
    • Oblivion Gaming
    • Morrowind Gaming
    • Fallout 3 Gaming
  • Miscellaneous Tutorials
  • TES Alliance HowTo Guides

Product Groups

  • VIP Memberships
  • Subscriptions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Steam


XBox Live ID


MSN


Skype


Location


Interests

Found 1 result

  1. Preface: I am going to simplify my scripts to ease troubleshooting. I have script "A", which is used to declare properties that global functions in script "B" can use. Script "A": ScriptName rsAPI_Properties Extends Quest {Contains all the properties for rsAPI scripts} MiscObject Property myMiscObjectProperty Auto Script "B": ScriptName rsAPI_Functions Extends Quest Hidden {Contains all the functions for the rsAPI scripts} ;This function gets the forms from Script "A" rsAPI_Properties Function GetFrameworkProperties() Global return (Game.GetFormFromFile(0x294A97, "MyPlugin.esp") as Quest) as rsAPI_Properties EndFunction ;This function gets a specific form from Script "A" with the help of the above function. MiscObject Function GetMiscObject() Global return GetFrameworkProperties().myMiscObjectProperty EndFunction ;This function is an example of how I would like to handle the miscobject passed from Script "A" Function GivePlayerMiscObject(int howMany) Global Game.GetPlayer().AddItem((GetMiscObject()), howMany); I have tried declaring a MiscObject outside this command as well, but neither worked. EndFunction The second function in Script "B" is used to return a miscobject, but it only returns NONE. This way of obtaining a property from another script seems to only work for certain types of forms. The properties have been defined in the CK in Script "A". Any pointers papyrus wizards? p.s. The reason I am approaching it this way is because Script "A" and Script "B" are an API of sorts. I want to use a function in Script "B" that references properties in Script "A" after passing parameters directly from Script "C", which would utilize the third function in Script "B" like this: Script "C": ScriptName GivePlayerItem Extends Activator {Utilizes the rsAPI framework to give the player 2 MiscObjects} Event OnActivate(Actor akActionRef) rsAPI_Functions.GivePlayerMiscObject(2) EndEvent
×
×
  • Create New...