User avatar
JacquesDeLalaing
Colonel
Posts: 340
Joined: Tue Mar 09, 2010 11:05 pm
Location: Vienna (Austria)

[RoP] abiSpawnUnit - Param6?

Mon Jan 04, 2016 12:08 am

Since I'm getting into trouble with unit spawning again and again (first for sieges, now for grenzers spawning skirmishers and also for the spawning of orders/information), I wanted to ask if I'm doing something wrong or if Param6 is indeed not functional?

I've got all my information from here:
http://www.ageod.net/agewiki/Ability_Category_26:_Unit_Spawning

So, this is my ability:

UID = 137
Name = $abi_nam_SpawnGrenzer
Alias = abiSpawnGrenzer
Kind = $abiUnitSpawning
Text = $abi_txt_SpawnGrenzer
ImageID = abi_SiegeExpert.png [wip]
Color = $colAbi_Green
Appliance = Self
Family = 0
Level = 1
Param0 = 24
Param1 = 100
Param2 = 24
Param3 = 0
Param4 = 24
Param5 = 0
Param6 = -100
Param7 = 0
Param8 = 0
Param9 = 0
ListParams0 = $Clear_flat|$clear_building

I believed that each model with this ability would have a 100% (Param1) chance to spawn unit UID 24 (Param0) per turn. For each spawned element (not unit), the parent-element would have its chances to spawn another unit (!) by Param6 (-100). In my case, an element that has spawned a unit should spawn no more. However, that clearly is not the case. Units keep spawning happily, regardless of how many elements have already been spawned. Am I missing something?

PS: When I set Param1 to 50, it works pretty well. 10 units (each one element) spawn only slightly more (12) units (each two elements) than they should. It takes a few turns, however. At 12, they seem to stop.
[CENTER][color="#A52A2A"] S I L E S I A I N R U P T A[/color]
- a work-in-progress mod for Rise of Prussia - [/CENTER]

User avatar
Bohémond
Posts: 2369
Joined: Wed May 14, 2008 8:47 pm

Mon Jan 04, 2016 2:17 am

Hello,

You should remove non useful entry, the abi should look like this ;

UID = 137
Name = $abi_nam_SpawnGrenzer
Alias = abiSpawnGrenzer
Kind = $abiUnitSpawning
Text = $abi_txt_SpawnGrenzer
ImageID = abi_SiegeExpert.png [wip]
Color = $colAbi_Green
Appliance = Self
Family = 0
Level = 1
Param0 = 24
Param1 = 100
Param6 = -100
Param8 = 0
Param9 = 0
ListParams0 = $Clear_flat|$clear_building


You can check the results of the unit spawning in the hostlog, Starting DoUnitsSpawningFromAbi section.


Please keep us posted.

Regards
Marco, perché vai così forte in salita?» «Per abbreviare la mia agonia.

Return to “Modding AGE engine games”

Who is online

Users browsing this forum: No registered users and 2 guests