Jump to content


Photo

Husk-Reclaim Logic


  • Please log in to reply
1 reply to this topic

#1 Arclite288

Arclite288
  • Members
  • 11 posts

Posted 11 May 2011 - 08:04 PM

As some of us may be aware, StarCraft II boasts a potent logic, where the Terran Command Centre can transform itself into either an Orbital Command or a Planetary Fortress. This system is a temporary emulation of this.

WARNING: This system is far from perfect, there WILL be flaws. That being said, this has been tested and is working.

When coding this, simply replace the CamelCaps headers with the ID you've chosen for the building in question.

[OriginalBuilding]
TechLevel=<buildable> ;whatever you've chosen to be its available tech level
Rubble.Destroyed=Husk ;ID of the building that serves as the husk
Primary=DummyWeapon ;If you've stated DummyWeapon as something else already, change this one's name to something you haven't used
Secondary=DummyWeapon ;Needs to be stated on both, as it has to work with a BuildingType upgrade
AttackFriendlies=yes ;Makes it work if there are no enemies
GuardRange=255 ;Might as well be infinite
DefaultToGuardArea=yes ;Forced it to guard
OpportunityFire=yes ;Can fire at all times
Turret=yes ;Can fire in any direction
DamageSelf=yes ;VITAL!! Won't work otherwise
Upgrades=<more than 0> ;Needs to have an upgrade
ThreatPosed=<more than 0> ;VITAL!! If this is 0, it won't fire at ground units automatically, no matter what

[DummyWeapon]
Damage=1
ROF=1
Range=500
Speed=2
AreaFire=yes
FireOnce=no
Projectile=InvisibleAll
Warhead=DummyWarhead2 ;This'll make it fire as well
DecloakToFire=no
Report=Dummy ;So it doesn't make any sound when it's not yet upgraded

[DummyWarhead2] ; Makes weapon ineffective, but it can still be fired
Verses=50%,50%,50%,50%,50%,50%,50%,50%,50%,50%,50%

[Husk]
Rubble.Intact=UpgradedBuilding ;ID of the building it'll transform into when repaired, but it'll only work if repared by an ENGINEER unit
Strength=120
TechLevel=-1
BuildLimit=0
AIBuildThis=no
Armor=custom ;optional, in case you have anything capable of repair buildings

[UpgradedBuilding]
TechLevel=-1 ;these are the only two you need, to stop players from cheating
BuildLimit=0

[Upgrade]
TechLevel=<buildable> ;ditto top, doesn't have to be identical to original building
PowersUpBuilding=OriginalBuilding
PowersUpToLevel=-1
Cost=<cost of upgrade> ;however much you want the UPGRADE to cost. E.G., if you're making the Terran Command Centre from SC2, the CC costs 400,
;while the Orbital Command costs 150. This tag would be set to 150 in this case, NOT 400.
ThreatPosed=0 ;probably a good idea, rulesmd.ini says that it "MUST be 0 for all building addons"
AIBuildThis=no ;AI might get confused...
Primary=ReclaimDestroy ;this is the weapon that it uses to do the destroying
Secondary=ReclaimDestroy;engine constraints...
AttackFriendlies=yes ;just in case...
GuardRange=255 ;ditto
DefaultToGuardArea=yes ;ditto
OpportunityFire=yes ;ditto
Turret=yes ;ditto


[ReclaimDestroy]
Damage=600 ;must deal the same damage as the building has strength, otherwise it will fail
ROF=100 ;this is okay, since the upgrade vanishes when the building turns into a husk
Range=500 ;as near as makes no difference, infinite
Projectile=InvisibleAll ;so it'll definitely work
Speed=2 ;probably for the best
Warhead=DummyWarhead2 ;probably for the best
Report=PowerOff ;optional
AreaFire=yes ;so it hits itself
FireOnce=no ;might need this too
DecloakToFire=no ;doesn't need to decloak before upgrading

This example was testing with the Allied Robot Control Centre, which has 600 strength by default. This may need retuning to work with buildings with other strength values. Try aiming for identical damage to building strength to start with, and if it blows up the husk, change the husk's strength to 1/5th of the original building. Also note that this system is stackable.

Ares developers, if you're reading this, it might be a good idea to consider it.

Please bear in mind that I'm not an active user on this forum, and it may take me weeks or even months to respond to any replies.

Enjoy. Sorry, no screenshots attached here. If you want proof, try implementing it yourself. Requires Ares.

#2 Graion Dilach

Graion Dilach

    Supérior Caliburwielder

  • Project Team
  • 2,187 posts
  • Location:Iszkaszentgyörgy, Hungary
  • Projects:Infinty Engine modding, OpenHV, Attacque Supérior (sometimes)
  •  That guy you keep hearing the stories about.

Posted 12 May 2011 - 04:23 PM

FYI, if you want your post to be seen by Ares developers, you should post that on RenProj. Since neither one is here.

Feature requests go to the tracker.

Don't take this personally, they welcome newbies.

Regarding the logic... it sounds interesting, but I'm not interested in Starcraft. If we mention only-Blizzard, Warcraft.

Edited by Graion Dilach, 12 May 2011 - 04:24 PM.

kuuHd4s.png6pDXsCS.png
n0J1wqE.pngIX8pBXZ.png

AS Discord server: https://discord.gg/7aM7Hm2

ComradeCrimson: AS is the product of Hungarian acid
ComradeCrimson: And magical hussars
Dutchygamer: and Weird Al.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users