pasiak12
Well-Known Member
- Joined
- Jun 7, 2009
- Messages
- 261
- Solutions
- 13
- Reaction score
- 71
Hey!
I am trying to implement funcion in RME, that will allow me to put random monsters spawn at one position and another function that will spawns monsters in random time.
So rme generates 'spawn' xml file that contains spawns informations
Here's example of two rats placed in spawn area (x:32819,y:32215,z:7) (real functions)
Is there any standard functions that allow me to define the 'time range' between whose the monster will spawn (for example the Rat will spawn between 10 and 20 secs) abstract fake code, that help you understand me:
And another that will choose randomly(or with percents) one monster to spawn
like this (its also abstract fake code)
Thanks!
I am trying to implement funcion in RME, that will allow me to put random monsters spawn at one position and another function that will spawns monsters in random time.
So rme generates 'spawn' xml file that contains spawns informations
Here's example of two rats placed in spawn area (x:32819,y:32215,z:7) (real functions)
Code:
<spawn centerx="32819" centery="32215" centerz="7" radius="2">
<monster name="Rat" x="0" y="-1" z="7" spawntime="23" />
<monster name="Rat" x="1" y="1" z="7" spawntime="23" />
</spawn>
Is there any standard functions that allow me to define the 'time range' between whose the monster will spawn (for example the Rat will spawn between 10 and 20 secs) abstract fake code, that help you understand me:
Code:
<spawn centerx="32819" centery="32215" centerz="7" radius="2">
<monster name="Rat" x="0" y="-1" z="7" spawntime1="10" spawntime2="20" />
</spawn>
And another that will choose randomly(or with percents) one monster to spawn
like this (its also abstract fake code)
Code:
<spawn centerx="32819" centery="32215" centerz="7" radius="2">
<monster name="Rat" x="0" y="-1" z="7" spawnGroup="1" chanceSpawn="60" />
<monster name="Orc" x="0" y="-1" z="7" spawnGroup="1" chanceSpawn="40" />
</spawn>
Thanks!