Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Script Request: No land units in hex

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Warplan Pacific >> Scenario Design and Modding >> Script Request: No land units in hex Page: [1]
Login
Message << Older Topic   Newer Topic >>
Script Request: No land units in hex - 5/31/2021 1:03:56 PM   
ago1000


Posts: 856
Joined: 8/6/2004
From: Canada
Status: offline
I was wondering if a script could be added to the editor to check if a land unit exists on the hex. If it already exists, I've missed it somewhere. If it's too difficult I understand that too.

Not sure this will be possible. The idea will be used to garrison ports that are under your control through events with no micro. This would force your opponent to think twice about invading without recon. Just a thought and just wondering.

Thanks in advance.



_____________________________

Post #: 1
RE: Script Request: No land units in hex - 5/31/2021 3:31:22 PM   
AlvaroSousa


Posts: 9927
Joined: 7/29/2013
Status: offline
landUnitInRadius=x,y,+units,radius,alliance ― returns true if the number of land units in the area is equal to or GREATER than the number from the specified alliance that are within the radius. If set to zero radius it checks the x,y hex only

landUnitInRadius=x,y,-units,radius,alliance ― returns true if the number of land units in the area is LESS than the (absolute value)number of units in the specified alliance that are within the radius. If set to zero radius it checks the x,y hex only

You can also set "units" to "0" so it checks for NO units in the radius

_____________________________

Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3

(in reply to ago1000)
Post #: 2
RE: Script Request: No land units in hex - 5/31/2021 4:10:53 PM   
ago1000


Posts: 856
Joined: 8/6/2004
From: Canada
Status: offline
You da man. Thank you, thank you.


_____________________________


(in reply to AlvaroSousa)
Post #: 3
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Warplan Pacific >> Scenario Design and Modding >> Script Request: No land units in hex Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

3.156