Difference between revisions of "User talk:Sunjammer"

From Dragon Age Toolset Wiki
Jump to: navigation, search
(DA Function Page Format)
m (Reverted edits by Ladyofpayne1 (talk) to last revision by BryanDerksen)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Thanks for the touchups to the main page's layout. It's just something I threw together (by shamelessly ripping off the English Wikipedia's main page layout as a base inspiration) to make the page look like less of a wall of text, if you have ideas on how to spruce it up or reorganize it even more feel free to give it a shot. At some point the wiki will get a Dragon Age skin of some sort added to it so now's the chance to freestyle. [[User:BryanDerksen|BryanDerksen]] 22:10, 19 July 2009 (UTC)
+
I've give you admin and bureaucrat group membership, hope this will finally break the logjam we've been stuck in for so long now. Use them wisely! [[User:BryanDerksen|BryanDerksen]] 21:56, 11 May 2011 (UTC)
 
+
= DA Function Page Format =
+
 
+
__NOTOC__
+
 
+
== SourcePool ==
+
 
+
 
+
Reserves a block of memory for a fixed number of a particular type of creature.
+
 
+
<dascript>
+
int CreatePool
+
(
+
    resource rTemplate,
+
    int nPoolSize
+
)
+
</dascript>
+
 
+
=== Parts ===
+
 
+
Parameters:
+
:''rTemplate''
+
::The template of the creature to use
+
:''nPoolSize''
+
::Number of creatures of this template to create
+
Returns:
+
:TRUE if successful
+
Source:
+
:[[script.ldf]]
+
 
+
=== Remarks ===
+
 
+
Creatures of this type that are spawned with the CreateObject function in this area will use this block of memory, and when creatures of this type die or are set inactive their memory space will automatically be returned to the pool.
+
 
+
The purpose of this function is to allow for endlessly spawning monsters, or similar situations.
+
 
+
It should be used under [[EVENT_TYPE_AREALOAD_PRELOADEXIT]]. When creatures die or are set inactive they will automatically return to the pool.
+
 
+
Note that pool creatures should have "no permanent death" enabled, otherwise certain effects (such as decapitation) will remain on them when they respawn.
+
 
+
Pool size should be at least twice the number of enemies from that will ever be active simultaneously.
+
 
+
=== Examples ===
+
 
+
<dascript>
+
void main()
+
{
+
    // create a pool of 5 skeletons
+
    CreatePool(R"skeleton.utc", 5);
+
}
+
</dascript>
+
 
+
=== Known Issues ===
+
 
+
=== See Also ===
+
 
+
[[Category:Scripts]]
+

Latest revision as of 22:56, 18 February 2018

I've give you admin and bureaucrat group membership, hope this will finally break the logjam we've been stuck in for so long now. Use them wisely! BryanDerksen 21:56, 11 May 2011 (UTC)