ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Superweapon that only gives money

From ModEnc
Revision as of 11:10, 26 January 2011 by 213.113.55.253 (talk)
Jump to navigation Jump to search

In RP/NP, we could with Type=Money and AutoFire=yes make a super weapon that automatically give us money. In Ares there is no Type=Money, but we have other tags. Here is how this is done in Ares

[MoneySpecial]
UIName=NOSTR:Give Money
Name=Donate
IsPowered=true
RechargeTime=.1 ;How often to give you money?
SidebarImage=
Type=SonarPulse;With this type can we create a dummy superweapon. Note that it wont work if type is not vaild!
Action=None
ShowTimer=no
DisableableFromShell=no

;With these tags, we have a dummy superweapon which do nothing expect give money.
SW.Range=-1
SW.AffectsHouse=none
SonarPulse.Delay=0
SW.AITargeting=NoTarget

Money.Amount=100 ;This is how much money you will, change this value to whatever you want.
SW.AutoFire=yes ;Do we need to click on the cameo or not to get the money? This tag is optimal
SW.ShowCameo=no ;Another optimal tag, this will hide the cameo. Dont use this tag if you have SW.AutoFire= set to "no".


Type=SonarPulse uses SW.AITargeting=Stealth as default, which might be undesirable in this case, because you only get money if one of the affected houses (which is set to none) has cloaked units. That's why we use SW.AITargeting=NoTarget.