View Full Version : The Gladiator - One Battle Deal
Atreidi
June 16th, 2008, 06:03 PM
I was trying to duplicate the One Blattle Deal of a gladiator but I am not sure what command to use. I've cheked his stats and cant find anything significat that makes him leave after battle. I might have read something about it in the manual or in the in-game-loading-tips, but I cant remember. Any Ideas?
I just want to create a unit that fights one battle and leaves, regardless of outcome...
Aezeal
June 16th, 2008, 06:37 PM
copystats might be the way to go, then change the basic stats and add what you want in.
Sombre
June 17th, 2008, 07:19 AM
Yep, copystats a gladiator unit and change what you want.
Burnsaber
June 19th, 2008, 01:43 PM
Actually I was unable to make this work on my Alugra mod.
I had a "cutthroat" - unit that was supposed to be a assasin who only does a single hit. He remained after battles, thought.
Twan
June 19th, 2008, 02:46 PM
Copystat doesn't work, gladiators disappearing seem to be linked with their unit id, so you need to replace a gladiator unit if you want the same behavior.
A workaround is a to use #secondtmpshape, and make so the first shape has only one hp (one hit and the unit become its second shape, which disappears at the end of battle)..
llamabeast
June 19th, 2008, 05:20 PM
An even more thorough workaround would be to have #secondtmpshape, and to have the unit #onebattlespell a spell which kills itself. Therefore at the beginning of the battle it will kill itself with its #onebattlespell, and switch to its #secondtmpshape, which will disappear after battle.
Aezeal
June 19th, 2008, 07:12 PM
Lol battle starts and one side kills itself http://forum.shrapnelgames.com/images/smilies/laugh.gif
It would work though http://forum.shrapnelgames.com/images/smilies/laugh.gif
But which spell that targets self kills a unit 100% of the time, since you can't make a new one to do it?
Twan
June 20th, 2008, 05:55 AM
You can make a new one but it's rather complicated.
First/easier method is to replace an existing spell (if you mod a nation replacing a national spell of a nation of another era shouldn't make problem).
A more complicated method allow to use any new spell.
You need to use 2 mods, one with the new spell, one calling it for onebattlespell. Use for example the spell enabler mod (posted here somewhere by Endorperez iirc) which should be your first mod enabled.
Make your self kill effect and insert it in the spell enabler mod.
Call this spell by number in your other (second) mod.
Note that this will only work as long no new spell are added in vanilla game (numbers will change when spells are added).
Sombre
June 20th, 2008, 06:23 AM
The easiest way is just to give it a secondshape which is aquatic. Then it drowns after battle.
llamabeast
June 20th, 2008, 07:24 AM
Units don't normally change to their secondshape at the end of battle do they?
Sombre
June 20th, 2008, 07:37 AM
I thought there was a way of making that happen,....
Maybe I'm remembering wrong. I haven't messed around with the shapes for a while.
Twan
June 20th, 2008, 07:39 AM
Sombre said:
The easiest way is just to give it a secondshape which is aquatic. Then it drowns after battle.
You wanted to say a #firstshape I guess.
Anyway it's not a good solution as it would allow to make the unit really aquatic (using some magical way to enter water and fight a first battle, then you have an aquatic not disappearing gladiator).
Sombre
June 20th, 2008, 07:42 AM
Yeah, firstshape.
I think it's the best solution so far. It isn't very good though so I'd just give up on the idea.
llamabeast
June 20th, 2008, 07:50 AM
It wouldn't work at all, because units also revert to their firstshape at the end of every turn, regardless of whether they've been in a battle (they do it at the end of battle as well, so they can go through several firstshape steps if they are involved in battles). So by this method the gladiator would die after one turn.
I think the #onebattlespell thing is a good idea (if I do say so myself http://forum.shrapnelgames.com/images/smilies/wink.gif ). I will flesh it out when I get a chance. There is lots of potential to do cool stuff with this kind of thing.
Sombre
June 20th, 2008, 09:58 AM
But using #onebattlespell brings up a whole load of other problems. The chief one being that it doesn't work for non commanders.
llamabeast
June 20th, 2008, 10:02 AM
Aaahh. Good point. I had forgotten that.
In that case I think perhaps we are stumped for non-commanders. Aquatic #firstshape won't work because they'll die anyway after one turn, and #onebattlespell won't work because it doesn't work for non-commanders. Are there any other options I've forgotten?
So I guess the only option is the 1hp thing (i.e. their first form only has 1hp, and their second form disappears after battle). You could say they agree to fight until their blood is first drawn, and then they will leave.
Sombre
June 20th, 2008, 10:27 AM
That of course has the drawback of making them survive the first hit against them unscathed, sort of like a free twist fate.
llamabeast
June 20th, 2008, 10:34 AM
Indeed, that isn't ideal either.
Surprisingly tricky problem, this one.
Sombre
June 20th, 2008, 10:46 AM
I don't even think it's an interesting mechanic to have in the game. It definitely causes the AI trouble and it really just encourages more micro and economic calculations rather than strategy.
Twan
June 20th, 2008, 11:51 AM
Sombre said:
That of course has the drawback of making them survive the first hit against them unscathed, sort of like a free twist fate.
Are you sure remaining dammage isn't transfered to next shape ?
It seem to be the case for some multi-shapes creatures.
Sombre
June 20th, 2008, 12:16 PM
Twan said:
Are you sure remaining dammage isn't transfered to next shape ?
It seem to be the case for some multi-shapes creatures.
Try soul slaying something with multiple forms. That does 999 damage.
Atreidi
June 20th, 2008, 01:14 PM
I was not able to figure it out either. Shapechanging does not seem to be the soluction. Is there missing command such as #onebattledeal or something like that? I dont see any other way of doing it by simple modding.
vBulletin® v3.8.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.