You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S2 RTX event !MET_SET_MAP_ELEMENT was almost always used to activate gates (replace existing gate with activated one), but there is at least one interesting case where it was used to destroy buildings. In 2NDpaign chapter 3 occupying a certain position used !MET_SET_MAP_ELEMENT to place a rock where the player's HQ (and harbor) were (effectively cutting them off forever). This essentially destroyed these buildings (although there was no fire, no one left and borders were not recalculated):
S2:
A similar effect can be achieved in RttR by modifying LUA's AddStaticObject to replace whatever is there with no regard:
The text was updated successfully, but these errors were encountered:
This would still modify the border when a recalculation happens as the building holding the border doesn't exist any more and I don't see how to easily change that. So what exactly should this do and why?
I don't think this should necessarily mirror the S2 implementation because these last pictures are rather confusing. In S2 it is not even obvious what happened because you don't get folk running around as if an HQ/harbor was destroyed, just a silent rock is placed with a road and a flag sticking out of it :D The intention of this ticket is to have the option to replace any object. What follows is up for discussion :)
To get the strangle-looking implementation above I commented out a DestroyNO call in LuaWorld::AddStaticObject but leaving it in results in a more sane result:
S2 RTX event
!MET_SET_MAP_ELEMENT
was almost always used to activate gates (replace existing gate with activated one), but there is at least one interesting case where it was used to destroy buildings. In 2NDpaign chapter 3 occupying a certain position used!MET_SET_MAP_ELEMENT
to place a rock where the player's HQ (and harbor) were (effectively cutting them off forever). This essentially destroyed these buildings (although there was no fire, no one left and borders were not recalculated):S2:
A similar effect can be achieved in RttR by modifying LUA's
AddStaticObject
to replace whatever is there with no regard:The text was updated successfully, but these errors were encountered: