Conquest of Elysium 4

Conquest of Elysium 4

Scripted Independents Spawner
I'm trying to code a monster that has rituals that can create pre-generated combinations of Independents and a terrain to match them, for example, this monster has the ritual "CREATE KING'S CASTLE" -uses alterloc to turn the square into the King's Castle, and summarily spawns a King, Princess, a Knight, 20 Spearman etc, and leaves them there to be encountered later by other wandering player factions, just like if the computer spawned them

The casting monster is destroyed at the same time the summoning occurs, to prevent a fight from changing the contents of the batch created

The summoning and alterloc commands work fine, the problem is I can't get the game to register the parties of new units under the control of Independents. They keep ending up under the control of the faction of the casting monster. I've tried placing defctrl 0, setplayer 16, and failplayer 16 commands all over the scripts and I still can't get it to work

Here's a copy of my King's Castle Script:

newritpow

newritual "Create King's Castle KILLS-ADMIN"
level 1
apcost 1
free
soundfx 24
alterloc 124
summoning
defctrl 0
setplayer 16
failplayer 16
addstring "1*King & 1*Princess & 1*Court Mage & 1*Alchemist & 20*Archer & 10*Pikeneer & 1*Knight & 1*Bard & 1*Hero & 1*Old Weapons Master & 1*White Wizard & 2*Catapult & 25*Spearman & 1*Arch Bishop"
killtarg 9999
selectmonster "Disposable Administrator"
power 0 1


-If someone could help me figure out what the issue is, I'd be grateful
< >
Showing 1-2 of 2 comments
Xelos 27 Oct, 2020 @ 7:57am 
Change summoning --> farsummon

add castertarg

remove defctrl

remove failplayer

I would also recommend adding "free"

newritual "Create King's Castle KILLS-ADMIN"
level 1
apcost 1
free
soundfx 24
alterloc 124
castertarg
#summoning
farsummon #this is what I use to consistently spawn
#defctrl 0
setplayer 16
#failplayer 16
addstring "1*King & 1*Princess & 1*Court Mage & 1*Alchemist & 20*Archer & 10*Pikeneer & 1*Knight & 1*Bard & 1*Hero & 1*Old Weapons Master & 1*White Wizard & 2*Catapult & 25*Spearman & 1*Arch Bishop"
killtarg 9999
free #I recommend adding this incase you add more rituals to this ritpow group.


Take a look at pop_rit.c4m from the Populum mod for a lot of custom rituals.
Last edited by Xelos; 27 Oct, 2020 @ 7:59am
HospitallerInaBoat 17 Dec, 2020 @ 11:18pm 
Originally posted by Xelos:
Change summoning --> farsummon

add castertarg

remove defctrl

remove failplayer

I would also recommend adding "free"

newritual "Create King's Castle KILLS-ADMIN"
level 1
apcost 1
free
soundfx 24
alterloc 124
castertarg
#summoning
farsummon #this is what I use to consistently spawn
#defctrl 0
setplayer 16
#failplayer 16
addstring "1*King & 1*Princess & 1*Court Mage & 1*Alchemist & 20*Archer & 10*Pikeneer & 1*Knight & 1*Bard & 1*Hero & 1*Old Weapons Master & 1*White Wizard & 2*Catapult & 25*Spearman & 1*Arch Bishop"
killtarg 9999
free #I recommend adding this incase you add more rituals to this ritpow group.


Take a look at pop_rit.c4m from the Populum mod for a lot of custom rituals.

Epicness, thankyou :) -I'll post again if I run into more issues.
< >
Showing 1-2 of 2 comments
Per page: 1530 50