Well, I tried making the battle arena myself, ripping code from the streams, as I think that one user had successfully replicated it, but I think it didn’t work for me.
Nice idea
And also the Holy Punch… >.>
Don’t forget the Holy Punch…
The shield is actually as tall as a hearthling. Well, a little less, but it covers from the feet to part of the head.
Perhaps in the future we could have a priest of some sort to bless the crusader’s weapons? Also, he should totally do holy damage, which would have a bonus against undead enemies.
Good suggestion @phector2004. I’ll put it on my list; we’ll see when I get to it. In the meantime, you’ve got a couple of options:
a.) force enemies to spawn in the real world using the stone hearth debug tools. Download them from the git repository, install them into the mods folder, and use the campaign browser (the book) to spawn undead/goblins/whatever you like.
b.) If you want to do this from inside a micro world instead of inside the game, you have to turn on the game master service, which is off by default in test worlds. That would be:
radiant.set_realtime_timer(“SettlementTest game master start”, 500, function()
stonehearth.game_master:start()
end)
You could just call stone hearth.game_master:start() but the realtime timer makes sure that it’s starting after the bulk of the game as loaded.
When someone mentioned the paladin, I got and idea. Pehaps we could have TWO holy warrior classes? Crusader and paladin. The crusader would be attack oriented, and the paladin would be defense oriented!
local ArenaWorld = class()
local Point3 = _radiant.csg.Point3
function ArenaWorld:start()
microworld:create_world(50)
– Create all the Goodies.
local goodies = {}
for x = 1,3 do
for z = 1,2 do
local footman = microworld:place_citizen(-5 + (x * 3), -5 + (z * 3), ‘stonehearth:jobs:footman’)
table.insert(goodies, footman)
end
end
self._baddies()
end
– Rip off and murder Radiants create_citizen function
function ArenaWorld:place_baddies(x, z, job)
local ENEMY_PLAYER = ‘goblins’
local pop = stonehearth.population:get_population(ENEMY_PLAYER)
local citizen = pop:create_new_citizen()
radiant.terrain.place_entity(citizen, Point3(x, 1, z))
return citizen
end
function ArenaWorld:_baddies(x, z, job)
– Create all the Baddies.
local baddies = {}
for x = 1,4 do
for z = 1,4 do
local footman = ArenaWorld:place_baddies(-5 + (x * 3), -5 + (z * 3), ‘stonehearth:jobs:footman’)
table.insert(baddies, footman)
end
end
end
return ArenaWorld
Change the goodie job to your crusader, and it should work ~ works for me anyway.
There are probably better way to achieve this, but I’m still learning, so … bite me…
Also, @Relyss, is there any way to make existing mods ‘pre-compatible’ with other mods? I think it would be funny if you could have a mixin in Candyland to replace the crusader’s hammer with a Marshmallow Mallet if a player decides to install both mods
That would be funny
I think the mod might not want to get fully loaded if I did that, but if it skips the error silently it might work (I’m talking about installing only Candyland without Crusader).
But I’m afraid that the UI will prompt an error when the Crusader mod is missing. I’ll give it a try anyway.
And thank you very much for the script, @Froggy !
I really needed the arena to test all the combat stuff for the upcoming features of my mods.
Edit after testing the arena_world: Wow, the hammer is really OP (at least against footman goblins)…
But this is perfect because now I can work on both mods at the same time
Balancing the combat in this one and adding new monsters on Candyland… Honestly my jellies would look like slimes on normal Stonehearth… Might as well release some things separately
I’ve updated the link in the OP with the fixes. Seems like the armor didn’t get the new catalog updates. The display level of the healing aura was indeed wrong.
That’s no good, he should only equip crusader equipment, so it might be something else besides the ilevel
Thanks for telling me!
Edit: Ok, I’ve changed the ilevel. In the carpenter’s recipe for the wooden shield, it will still appear as equippable by the crusader, but it won’t be equipped. I didn’t want to remove the melee_combat role from the crusader just in case it will be used for something else.