It is currently Fri Dec 15, 2017 12:16 pm

All times are UTC + 9:30 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: What parameters can a plugin change?
PostPosted: Wed Mar 25, 2009 11:23 pm 
Offline
Main Coder

Joined: Fri Apr 04, 2008 10:50 pm
Posts: 169
A list of parameters that plugins can change =... means the default value
    Higher terrain = 2
    Higher terrain vision bonus=3
    tileSize


Top
 Profile  
 
 Post subject: Re: What parameters can a plugin change?
PostPosted: Thu Mar 26, 2009 3:18 am 
Offline
User avatar

Joined: Fri May 04, 2007 3:18 am
Posts: 520
You mean, like a full list.

Terrain:
ID Type (road, forest, shoal, sea, etc...)
Defense Stars
Terrain Height (Mountains are higher... if applicable)
TileRange
canHide (for FOW)
Movement Cost[type] (each unitID type)

City (and/or Inventions):
ID Type (city, HQ, factory, Talon Gun, Balck Cannon, etc...)
HP (if applicable)
Vision (if applicable)
changeVision[type] (Inf/Mech on mountains)
TileSize (in pixels)?
TileRange (1x1, 2x2, etc...)
Daily Funds (if applicable)...
Capture Points (if applicable)... [no points/ can't capture]
canBuildUnits[type] (if applicable)
canDestroy (if applicable)
canLaunch
canSupply
canHeal
dayTrigger (How many days must pass before it triggers an event)
unitRestrictions (if applicable)
canLaunch[type] (Silo units in AWDS)
FireRange[type] (For Talon Gun, BlackCannon)

Unit:
ID Type: (inf, mech, bike[tireA], tread, air, etc...)
TerrainType: (land, sea, air, etc...)
Specialist Type: (transport, pipe, vehicle, recon, copter, plane, stealth, carrier, hover, oozium, bomb, warship, etc...)
Unit Height: (For Airplanes... if applicable)
COZone range (if applicable)
Vision
Fuel
maxFuel
HP
maxHP
movementRange
maxMovementRange
movementType (Regular, Perfect, Ghost, Teleport, etc...)
AttackType (Direct, Indirect, Ballistic(Battleship in AWDoR)...)
counterAttackType(Direct, Indirect, Ballistic (indirect counter) )
Weapon 1 Type (Rockets, Missiles, Cannon, etc...)
W1Ammo
W1maxAmmo
Weapon 2 Type (Maching Gun, AAGun, etc...)
material
maxMaterial
maxfireRange
minFireRange
maxLoad (if 0, can't load units)
canCapture
canBuildBuildings[type] (Rigs in AWDoR)
canBuildUnits[type] (Carriers in AWDoR)
canHide (for FOW/abilities)
detectValue (for Stealth/Subs Hide/Dive & Spyplane's Detectable Ability)
canDestroy (Oozium Units)
canExplode (BlackBomb Units)
canSupply
canHeal (BlackBoat Units)
canLaunch (No units do this yet)

----------------------
I can't think of anymore things that can change. If you want items a map should be able to change, that is a new page altogether :)

-JSR


Top
 Profile  
 
 Post subject: Re: What parameters can a plugin change?
PostPosted: Sat Apr 25, 2009 7:59 am 
Offline
Main Coder

Joined: Fri Apr 04, 2008 10:50 pm
Posts: 169
Can you explain the following in more detail?

Terrain
tileRange?

City
counterAttackType(Direct, Indirect, Ballistic (indirect counter))
atm the logic if a unit can counter attack is as following:
canFire on the attacker ArmyBranch didn't die from the attack and
is Defender Adjacent Of CounterAttacker and counterAttacker.getMinAttackRange() == 1

I though that you can only counter attack when adjacent? ie a rocket is fired from 5 tiles away to an infantry. Theres no way they can counter attack... or can a battleship counter attack from a distance?

unitRestrictions (if applicable) ?

Unit
Specialist Type: (transport, pipe, vehicle, recon, copter, plane, stealth, carrier, hover, oozium, bomb, warship, etc...)
These units have different abilities but they have no special behavior right?
A Carrier is just a unit that can transport, what is a bomb?
material?

Skipped:
dayTrigger (How many days must pass before it triggers an event) this is separated from the model -> trigger system

Not yet included:
city.canLaunch true/false
canBuildBuildings[type] (Rigs in AWDoR) List
canBuildUnits[type] (Carriers in AWDoR) List


Top
 Profile  
 
 Post subject: Re: What parameters can a plugin change?
PostPosted: Wed Apr 29, 2009 3:51 am 
Offline
User avatar

Joined: Fri May 04, 2007 3:18 am
Posts: 520
Quote:
Terrain
tileRange?


Well, I can't use size... as of now we are using size for pixels (32x32 pixels)
So instead, I used range for tileSize... (2x2 tiles) (4x4 tiles)
Useful for inventions... and other objects bigger than 1 tile. (Unless they are cities.)

Quote:
counterAttackType(Direct, Indirect, Ballistic (indirect counter))
atm the logic if a unit can counter attack is as following:
canFire on the attacker ArmyBranch didn't die from the attack and
is Defender Adjacent Of CounterAttacker and counterAttacker.getMinAttackRange() == 1

I though that you can only counter attack when adjacent? ie a rocket is fired from 5 tiles away to an infantry. Theres no way they can counter attack... or can a battleship counter attack from a distance?


Ballistic is ranged counterattack. I remember in the past you asked me to handle this, so I think it still applies to me. Sooner or later we are going to have to deal with ranged counterattacks. In my case, I really hope it is later.

Quote:
unitRestrictions (if applicable) ?


The unit Restrictions happen if someone bans a unit from play. It prevents a particular unit from being built at a particular location. There is a lot of ways to handle this, which is why this is in italics. Something to think about at most...

Quote:
Specialist Type: (transport, pipe, vehicle, recon, copter, plane, stealth, carrier, hover, oozium, bomb, warship, etc...)
These units have different abilities but they have no special behavior right?
A Carrier is just a unit that can transport, what is a bomb?
material?


Yeah, these units have different abilities but no special behavior. I think these tags will help when it comes to CO powers... but that is about all. I guess it gives units a lot more personality if we have more ways to describe them. Other than that, these tags are somewhat useless.

A bomb is a tag used to describe the BlackBomb... (which is useless since it is the only one of its type.)

Material: This comes specifically from AWDoR. Materials were used to build seaplanes and temporary buildings. There is a limited number of them within each unit that can build. Unlike fuel and ammo, it could not be replenished by sitting on a property. The only CO who dealt with and could replenish materials was Greyfield/Sigismundo...)

JSR...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 9:30 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Blue Moon by Trent © 2007
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group