Difference between revisions of "Category talk:Items"
answer
imported>QQuix (How to access objects from other mods??) |
imported>DragoonWraith (answer) |
||
Line 126: | Line 126: | ||
im sorry but not exactly thatfamiliar with modding so could you u be so kind as to give a link to where i could learn about it? | im sorry but not exactly thatfamiliar with modding so could you u be so kind as to give a link to where i could learn about it? | ||
== Accessing Other Mods' Items == | |||
Can anybody help me on how to access objects from other mods?? Or it is impossible due to some built-in restriction? | Can anybody help me on how to access objects from other mods?? Or it is impossible due to some built-in restriction? | ||
In my mod, I would like to show the player a list of everything a vendor has to sell (including items added by other mods). | In my mod, I would like to show the player a list of everything a vendor has to sell (including items added by other mods). | ||
But if I ref containers/items created by other mods, the script compiles OK, but crashes when used in the game | But if I ref containers/items created by other mods, the script compiles OK, but crashes when used in the game | ||
If I put those items in a new container (drag&drop in the CS), the container is empty when I open it in the game. | If I put those items in a new container (drag&drop in the CS), the container is empty when I open it in the game. | ||
The workaround I found is to duplicate all items, but this would make my mod static: it would show the item even if the original Mod is not installed (and wouldn’t work, as the meshes/textures are not there) and would not show items from mods that I didn’t duplicate items from. | The workaround I found is to duplicate all items, but this would make my mod static: it would show the item even if the original Mod is not installed (and wouldn’t work, as the meshes/textures are not there) and would not show items from mods that I didn’t duplicate items from. | ||
I would appreciate any ideas you can give me. | |||
I would appreciate any ideas you can give me. --[[User:Qquix|Qquix]] 17:47, 2 May 2008 (EDT) | |||
:Yes, mods cannot access each other's items (for the most part). What you're wanting to do is best done with [[:Category: Oblivion Script Extender|OBSE]]'s [[GetFirstRef]]/[[GetNextRef]] and [[GetInventoryObject]]. | |||
:In terms of dealing with mod isolation in general, try reading the [[Mod De-Isolation Tutorial]]. It'll explain what you can do. | |||
:Also please sign your posts with <nowiki>~~~~</nowiki>, and give your questions a title with <nowiki>==</nowiki>'s. Thanks. | |||
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 02:43, 3 May 2008 (EDT) |