Difference between revisions of "Talk:OBSE Wish List"
Jump to navigation
Jump to search
getting local references
imported>DragoonWraith m (typo) |
imported>Scruggs (getting local references) |
||
Line 109: | Line 109: | ||
:::I haven't seen any slowdown due to spells, but then my computer has a good processor and a lot of RAM, it's the video card that's bad. If this is more efficient, then that is a good thing. MWSE's version of this wasn't very efficient as I remember it, though. | :::I haven't seen any slowdown due to spells, but then my computer has a good processor and a lot of RAM, it's the video card that's bad. If this is more efficient, then that is a good thing. MWSE's version of this wasn't very efficient as I remember it, though. | ||
::::Iterating through local references would be very nice. AoE spells will get you references to actors and nothing else - activators, furniture, containers, and doors will only run spell scripts if directly hit by them, and carriable items, statics, flora, etc can't run spell scripts at all. | |||
::::I have no idea how OB stores information about references in the current cell, but my ideal (within the realm of possibility) implementation would be similar to the new inventory functions: one function returns the number of references of the specified type in the current cell, and another returns a reference to one of those. i.e.: | |||
<pre>set numDoors to getNumLocalReferences 10 ; assuming 10 is the code for doors | |||
set door1 to getLocalReference 1 ; return the first door found | |||
set door5 to getLocalReference 5 ; return the 5th</pre> | |||
::::Basically similar to MWSE's implementation, except allowing you to jump to any reference in the list without iterating. [[User:Scruggs|Scruggs]] 20:53, 3 August 2006 (EDT) |