You must be logged in to post messages.
Please login or register

Scenario Design and Discussion
Moderated by HockeySam18

Hop to:    
Welcome! You are not logged in. Please Login or Register.5 replies
Age of Kings Heaven » Forums » Scenario Design and Discussion » Garrison a Unit within another
Bottom
Topic Subject:Garrison a Unit within another
LoCoDoN
Squire
posted 05-04-19 03:09 PM CT (US)         
I was pointed out that a Campaign called Minato and the Imperial Regalia V5 has an awesome feature where you can use garrisoned units within a unit as 'spells'.

I have Trigger Studio version 1.2.2.78 and use AOE2 HD on Steam.

I found an old archived post about this but did not understand how to change the Unit Attribute to '1'. It seems the Unit Attribute and Garrison needs to be changed. Trigger Studio does show the Garrison attribute.

Any help figuring this out would be great!


Update: Got it working with the help of a friend on Steam. Using it in my Lord Of The Rings RPG on the workshop. You can summon the Ring of power which makes you invisible for a certain amount of time. Then the eye of sauron sees you and the spell is over.

https://steamcommunity.com/sharedfiles/filedetails/?id=1717550204

[This message has been edited by LoCoDoN (edited 05-06-2019 @ 01:08 AM).]

AuthorReplies:
Pyroptere
Squire
posted 05-10-19 08:41 AM CT (US)     1 / 5       
Does someone know if it's possible on voobly with 1.5 userpatch and no data mods?

(I can create a transport ship, loading it then transforming into one unit, the garrison stays (and I can ungarison), but after the transformation I cannot garrison anything else inside it)

[This message has been edited by Pyroptere (edited 05-10-2019 @ 04:43 PM).]

LoCoDoN
Squire
posted 05-11-19 06:56 PM CT (US)     2 / 5       
That I do not... I still do not understand the difference between all the versions like userpatch. Is that for single player only?

Steam Group for Game of Thrones Maps - https://steamcommunity.com/groups/gotaoe

Game of Thrones Overhaul - https://steamcommunity.com/sharedfiles/filedetails/?id=1210070778
Game of Thrones The RPG - 7 player co-op https://steamcommunity.com/sharedfiles/filedetails/?id=1210070778
Lord of the Rings - The Fellowship RPG - 6 player co-op https://steamcommunity.com/sharedfiles/filedetails/?id=1210070778
local boi
Squire
(id: dragon14)
posted 05-15-19 02:37 AM CT (US)     3 / 5       
Don't know. Maybe something to do with unit traits but I can't get it working either

#const GAR_HORSE 814
/* New: Category 10+ */
#const ATTR_TRAITS 54/* ADD_ATTRIBUTE append flags */
/* New: Category 80+ */
#const ATTR_GARRISON_TYPE 30

effect_amount SET_ATTRIBUTE GAR_HORSE ATTR_TRAITS 64

This will make the horse undeletable so the effect amount is working at least somewhat.

I heard about this from the up effect thread

"attr" 54 (TRAITS) {Affects all Types.} -- "value" SETS or ADDS Trait flags. Having Trait Flag 64 makes your unit unable to be deleted through the delete key. I don't know other trait flags, except for 1 and 2 which are supposedly Garrison Unit and Ship Unit, but I've had no luck using this to allow garrisons inside other units besides Rams which have this trait.

USA
katsup or mustard

[This message has been edited by local boi (edited 05-15-2019 @ 03:07 AM).]

local boi
Squire
(id: dragon14)
posted 05-15-19 04:08 AM CT (US)     4 / 5       
Solution for WololoKingdoms RMS and Scenarios (No modding required)

#const SGTWR 885
effect_amount UPGRADE_UNIT SGTWR HORSE 0
effect_amount SET_ATTRIBUTE SGTWR ATTR_TRAITS 3
effect_amount ADD_ATTRIBUTE SGTWR ATTR_GARRISON_CAPACITY 1


according to John the Late the unit needs to have the appropriate tasks in order to use those unit traits, which is stored in one byte, with each bit corresponding to some trait.
The first bit is the flag for garrisoning. The line effect_amount SET_ATTRIBUTE SGTWR ATTR_TRAITS 3 sets the first and second bit.

But the reason why you can't just upgrade a horse into a siege tower and garrison it is because it's missing the task for that

according to jineapple unit id 885 is the old siege tower from a forgotten empires campaign, in wololokingdoms, that shoots arrows but can't jump over walls. I suggest using that.

If you want more garrisonable units, maybe start thinking about modding.

USA
katsup or mustard

[This message has been edited by local boi (edited 05-15-2019 @ 04:09 AM).]

Pyroptere
Squire
posted 05-30-19 05:39 AM CT (US)     5 / 5       
Thanks a lot local boi for the insights =) It makes sense.

@LoCoDoN For the spell system I'd recommend the double hidden ID trick from Nixck (http://aok.heavengames.com/cgi-bin/aokcgi/display.cgi?action=ct&f=4,40290,,all), a bit tricky to get at first but then it works quite well on userpatch 1.5 (at least in single player)

(I heard 1.4 RC struggles with it, so be sure to be on the last userpatch 1.5 RC where it was somewhat "fixed" according to scripter: "The double negative object ungarrison trick now has a special exception to work despite a bug fix." (http://userpatch.aiscripters.net/) )
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Kings Heaven | HeavenGames