Difference between revisions of "SEED - Usage"

From The DarkMod Wiki
Jump to navigationJump to search
(add)
 
(add the watch_brethren scenario idea)
Line 20: Line 20:
 
Note: Players expect that the loot in a map is stable, e.g. when they play it again, they get the same amount of loot from the same places. While you can break this expectation f.i. by randomly spawning a loot piece in different places, having different loot pieces in the ''''same'''' place might confuse people. To avoid this, make the loot amount on all the entities targeted by this lode the same, but choose different entities (like a bottle of wine, a statue and a plate).
 
Note: Players expect that the loot in a map is stable, e.g. when they play it again, they get the same amount of loot from the same places. While you can break this expectation f.i. by randomly spawning a loot piece in different places, having different loot pieces in the ''''same'''' place might confuse people. To avoid this, make the loot amount on all the entities targeted by this lode the same, but choose different entities (like a bottle of wine, a statue and a plate).
  
=== Huge Forest ===
+
=== Overcome the entity limit ===
  
{{red|Section not done yet}}
+
Suppose you have already placed manually a few hundred or even thousand entities in your map, and start to run into the entity limit. Also, if you have hundreds of entities under the [[LOD]] system, their thinking uses up time.
  
=== Something entirely else ===
+
In this scenario you can use the LODE system as an entity manager. Just tell it to not take it's targets as entity templates to create new entities, but instead as the class of already existing entities it should watch. All the entities inside the LODE area of the given class will then be added under control of the LODE, so they just keep their positions, rotation and skin, but they get potentially hidden and removed/respawned when nec. Best of both worlds.
 +
 
 +
Create a copy of one of your existing entities, target it from your LODE and put the following spawnarg this entity:
 +
 
 +
<pre>
 +
"watch_brethren" "1"
 +
</pre>
 +
 
 +
=== To Generate Huge Scenes ===
  
 
{{red|Section not done yet}}
 
{{red|Section not done yet}}

Revision as of 19:12, 1 July 2010

Introduction

Note: It is recommended that you read the pages about LOD and LODE first.

The LODE System (available in TDM from v1.03 on) enables you to overcome the built-in entity limit, as well as randomly generate entities. But since the system is new and it might still be unclear on how and when to use it, this page provides a few real-map scenarios with examples:

Usage cases

Random Loot Generator

Place a small LODE in your map, plus three loot entities. Target these from the LODE and set the following spawnargs (enter them in DR without the quotes!) on the LODE:

 "max_entities" "1"
 "remove"       "1"

This means all the loot entities will be of the same probability, but only one of them will ever be generated. Also, the "remove 1" means the LODE will remove itself after spawning the other entity.

Note: Players expect that the loot in a map is stable, e.g. when they play it again, they get the same amount of loot from the same places. While you can break this expectation f.i. by randomly spawning a loot piece in different places, having different loot pieces in the 'same' place might confuse people. To avoid this, make the loot amount on all the entities targeted by this lode the same, but choose different entities (like a bottle of wine, a statue and a plate).

Overcome the entity limit

Suppose you have already placed manually a few hundred or even thousand entities in your map, and start to run into the entity limit. Also, if you have hundreds of entities under the LOD system, their thinking uses up time.

In this scenario you can use the LODE system as an entity manager. Just tell it to not take it's targets as entity templates to create new entities, but instead as the class of already existing entities it should watch. All the entities inside the LODE area of the given class will then be added under control of the LODE, so they just keep their positions, rotation and skin, but they get potentially hidden and removed/respawned when nec. Best of both worlds.

Create a copy of one of your existing entities, target it from your LODE and put the following spawnarg this entity:

 "watch_brethren" "1"

To Generate Huge Scenes

Section not done yet

See also