You must be logged in to post messages.
Please login or register

Scenario Design
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: REAL Convert in Area & Convert Around Unit
posted 15 January 2007 04:42 PM EDT (US)   
Works on both AOM and AOT as Change Units in Area and Convert Units in Area Combined

I mentioned a few posts back that I had gotten into using the knowledge base functions. Anyways here's my first shot at making triggers with it.

This should fullfill BOTH the lacking Convert Units in Area in AOM and AOE3, AND the missing Change Units in Area in AOE3.

Unit Type ID - Number that is the id of the protounit or class (AbstractInfantry, Building...) you want. IT IS RECOMMENDED YOU DEFINE THIS. Otherwise the trigger will blindly loop through every unit type in the game, not knowing what to look for specifically (even if you want ALL unit types, use the CLASS ID for "All"). DOWNLOAD THE ID VIEWER EFFECT TO FIND ANY ID YOU WANT. Not defining works but it uses a LOT of memory - if you do use it, do NOT loop without a condition.

From... - Define a single player to convert from or have it convert from ALL players (not including the player being converted to obviously).

Change Unit Type - Type in the protoname of the unit you want to change them to (if any). NAME/TEXT VALUE, not number.

Notice that this trigger can change unit from and to as well - mimicking the Change Units in Area from AOM.


Install? Simply place the following in your typetest.xml (main AOM directory... trigger/ OR trigger2/ for Expansion)

Put it at the bottom of the list before < / Effects>

Trigger Code


The trigger code is not the most effecient I admit. It would save some time if the radius was defined in the kb query, but I can't seem to get it to work - so if someone else can - please share.

[This message has been edited by pftq (edited 01-22-2007 @ 07:26 PM).]

Replies:
posted 16 January 2007 01:52 AM EDT (US)     1 / 20  
You just had to beat nottud right?

Just kidding, it sounds cool and I will use it quite often


Yes, periods and smileys are the same for me
No matter what you say
posted 16 January 2007 04:16 AM EDT (US)     2 / 20  
Well would you rather me take it down?

In anycase the two triggers are uncomparable. This is actual new code.. not a mass of Change Unit in Area effects.

[This message has been edited by pftq (edited 01-16-2007 @ 04:22 AM).]

posted 16 January 2007 11:07 AM EDT (US)     3 / 20  

Quote:

You just had to beat nottud right? Just kidding...

But that's true! That is what he's doing!


MEPH
[Insert amazingly witty signature here.]

Me and Yeebaagooon's scenarios | Download The Corruptor
posted 16 January 2007 11:48 AM EDT (US)     4 / 20  
Well done!

There is now some nice SOLID proof about how much of a beginner I am!

Ok - I am soon going to be releasing a 3rd trigger pack now. Say whever or not you want it to be put on with FULL credits to you.


The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.
posted 16 January 2007 02:29 PM EDT (US)     5 / 20  
Beginner? Your almost an expert

MEPH
[Insert amazingly witty signature here.]

Me and Yeebaagooon's scenarios | Download The Corruptor
posted 16 January 2007 03:08 PM EDT (US)     6 / 20  
I am not sure though how to get your trigger working because it aint working for me at the moment.

These are only expansion ones and there also seems to be other things mixed into the list. Ignore the chink thingy but the number after it is the ID.

THIS IS FOR NON EXPANSION ONLY! I don't think the ID's are the same for expansion.

J1_b1_chunk_623: "Unit"
J1_b1_chunk_624: "Ship"
J1_b1_chunk_625: "Building"
J1_b1_chunk_626: "MilitaryBuilding"
J1_b1_chunk_627: "EconomicBuilding"
J1_b1_chunk_628: "Dropsite"
J1_b1_chunk_629: "Resource"
J1_b1_chunk_630: "HuntedResource"
J1_b1_chunk_631: "MinedResource"
J1_b1_chunk_632: "LandResource"
J1_b1_chunk_633: "WaterResource"
J1_b1_chunk_634: "Projectile"
J1_b1_chunk_635: "Nature"
J1_b1_chunk_636: "SpecialPowers"
J1_b1_chunk_637: "Unattackable"
J1_b1_chunk_638: "AbstractTemple"
J1_b1_chunk_639: "Military"
J1_b1_chunk_640: "Hero"
J1_b1_chunk_641: "Tree"
J1_b1_chunk_642: "AbstractInfantry"
J1_b1_chunk_643: "AbstractCavalry"
J1_b1_chunk_644: "AbstractArcher"
J1_b1_chunk_645: "AbstractVillager"
J1_b1_chunk_646: "AbstractFarm"
J1_b1_chunk_647: "AbstractDock"
J1_b1_chunk_648: "InventoryHolder"
J1_b1_chunk_649: "InventoryItem"
J1_b1_chunk_650: "UseableItem"
J1_b1_chunk_651: "StrengthBonus"
J1_b1_chunk_652: "TradeableTo"
J1_b1_chunk_653: "TradeableFrom"
J1_b1_chunk_654: "AbstractSiegeWeapon"
J1_b1_chunk_655: "FlyingUnit"
J1_b1_chunk_656: "MythUnit"
J1_b1_chunk_657: "Economic"
J1_b1_chunk_658: "Ranged"
J1_b1_chunk_659: "FastSpeed"
J1_b1_chunk_660: "AverageSpeed"
J1_b1_chunk_661: "SlowSpeed"
J1_b1_chunk_662: "Generic"
J1_b1_chunk_663: "UnitClass"
J1_b1_chunk_664: "BuildingClass"
J1_b1_chunk_665: "NatureClass"
J1_b1_chunk_666: "EmbellishmentClass"
J1_b1_chunk_667: "TestClass"
J1_b1_chunk_668: "E3Class"
J1_b1_chunk_669: "All"
J1_b1_chunk_670: "ActionGather"
J1_b1_chunk_671: "ActionTrain"
J1_b1_chunk_672: "ActionBuild"
J1_b1_chunk_673: "ActionAttack"
J1_b1_chunk_674: "ActionTrickle"
J1_b1_chunk_675: "Fish"
J1_b1_chunk_676: "Transport"
J1_b1_chunk_677: "AbstractWall"
J1_b1_chunk_678: "Herdable"
J1_b1_chunk_679: "AbstractSettlement"
J1_b1_chunk_680: "BuildingsThatShoot"
J1_b1_chunk_681: "MythUnitGodPower"
J1_b1_chunk_682: "Age2Building"
J1_b1_chunk_683: "Age3Building"
J1_b1_chunk_684: "Age1Temple"
J1_b1_chunk_685: "Food"
J1_b1_chunk_686: "Gold"
J1_b1_chunk_687: "Wood"
J1_b1_chunk_688: "WildCrops"
J1_b1_chunk_689: "Age1Building"
J1_b1_chunk_690: "FoodDropsite"
J1_b1_chunk_691: "WoodDropsite"
J1_b1_chunk_692: "GoldDropsite"
J1_b1_chunk_693: "HumanSoldier"
J1_b1_chunk_694: "Huntable"
J1_b1_chunk_695: "AbstractMonument"
J1_b1_chunk_696: "SettlementsThatTrainVillagers"
J1_b1_chunk_697: "Hack"
J1_b1_chunk_698: "Crush"
J1_b1_chunk_699: "Pierce"
J1_b1_chunk_700: "SharedBuilding"
J1_b1_chunk_701: "AbstractStable"
J1_b1_chunk_702: "AbstractFortress"
J1_b1_chunk_703: "AbstractBarracks"
J1_b1_chunk_704: "AbstractArcheryRange"
J1_b1_chunk_705: "EarlyWoodDropsite"
J1_b1_chunk_706: "EarlyFoodDropsite"
J1_b1_chunk_707: "EarlyGoldDropsite"
J1_b1_chunk_708: "ConvertableBuilding"
J1_b1_chunk_709: "Favor"
J1_b1_chunk_710: "AnimalPrey"
J1_b1_chunk_711: "AnimalReactive"
J1_b1_chunk_712: "AnimalPredator"
J1_b1_chunk_713: "AbstractTradeUnit"
J1_b1_chunk_714: "AbstractPharaoh"
J1_b1_chunk_715: "MythUnitInfantry"
J1_b1_chunk_716: "MythUnitCavalry"
J1_b1_chunk_717: "MythUnitArcher"
J1_b1_chunk_718: "MythUnitSiege"
J1_b1_chunk_719: "UtilityShip"
J1_b1_chunk_720: "LogicalTypeHandUnitsAttack"
J1_b1_chunk_721: "LogicalTypePredatorsAutoAttack"
J1_b1_chunk_722: "LogicalTypeMeanPredatorsAutoAttack"
J1_b1_chunk_723: "LogicalTypeHandUnitsAutoAttack"
J1_b1_chunk_724: "LogicalTypePredatorsAttack"
J1_b1_chunk_725: "LogicalTypeScoutsRespondToAttack"
J1_b1_chunk_726: "LogicalTypeBuildingsNotHouses"
J1_b1_chunk_727: "LogicalTypeRangedUnitsAttack"
J1_b1_chunk_728: "LogicalTypeRangedUnitsAutoAttack"
J1_b1_chunk_729: "LogicalTypeUnitsNotBuildings"
J1_b1_chunk_730: "LogicalTypeDangerousAnimals"
J1_b1_chunk_731: "LogicalTypeIdleCivilian"
J1_b1_chunk_732: "LogicalTypeIdleMilitary"
J1_b1_chunk_733: "LogicalTypeTornadoAttack"
J1_b1_chunk_734: "LogicalTypeNeededForVictory"
J1_b1_chunk_735: "LogicalTypeIdleHero"
J1_b1_chunk_736: "LogicalTypeValidBoltTarget"
J1_b1_chunk_737: "LogicalTypeAffectedByHealingSpring"
J1_b1_chunk_738: "LogicalTypeAffectedByRestoration"
J1_b1_chunk_739: "LogicalTypeGarrisonOnBoats"
J1_b1_chunk_740: "LogicalTypeCavalryAndScout"
J1_b1_chunk_741: "LogicalTypeNonGreekUnit"
J1_b1_chunk_742: "LogicalTypeVillagersAttack"
J1_b1_chunk_743: "LogicalTypeEarthquakeAttack"
J1_b1_chunk_744: "AbstractArmory"
J1_b1_chunk_745: "LogicalTypeSiegeAutoAttack"
J1_b1_chunk_746: "LogicalTypeCanBeHealed"
J1_b1_chunk_747: "LogicalTypeMinimapFilterEconomic"
J1_b1_chunk_748: "LogicalTypeMinimapFilterMilitary"
J1_b1_chunk_749: "ArcherShip"
J1_b1_chunk_750: "HammerShip"
J1_b1_chunk_751: "SiegeShip"
J1_b1_chunk_752: "AbstractCart"
J1_b1_chunk_753: "AbstractScout"
J1_b1_chunk_754: "LogicalTypeValidSpyTarget"
J1_b1_chunk_755: "AutoupgradedUnit"
J1_b1_chunk_756: "LogicalTypeNavalMilitary"
J1_b1_chunk_757: "LogicalTypeValidFrostTarget"
J1_b1_chunk_758: "LogicalTypeValidMeteorTarget"
J1_b1_chunk_759: "LogicalTypeSeaSerpentAttack"
J1_b1_chunk_760: "LogicalTypeFavoriteUnit"
J1_b1_chunk_761: "LogicalTypeFavoriteMythUnit"
J1_b1_chunk_762: "LogicalTypeConvertsHerds"
J1_b1_chunk_763: "LogicalTypeValidLocustSwarmTarget"
J1_b1_chunk_764: "LogicalTypeBuildingsNotWalls"
J1_b1_chunk_765: "LogicalTypeValidShiftingSandsTarget"
J1_b1_chunk_766: "LogicalTypeParticipatesInBattlecries"
J1_b1_chunk_767: "LogicalTypeBuildingsThatTrainMilitary"
J1_b1_chunk_768: "LogicalTypeRamAttack"
J1_b1_chunk_769: "TransportShip"
J1_b1_chunk_770: "LogicalTypeVillagersRespondToAttack"
J1_b1_chunk_771: "LogicalTypeFimbulWinterTCEvalType"
J1_b1_chunk_772: "LogicalTypeValidForestFireTarget"
J1_b1_chunk_773: "LogicalTypeAutoattackTargetsBuildings"
J1_b1_chunk_774: "WalkingWood"
J1_b1_chunk_775: "LogicalTypeLandMilitary"
J1_b1_chunk_776: "LogicalTypeValidSPCUnitsDeadCondition"
J1_b1_chunk_777: "LogicalTypeAffectedByTownBell"
J1_b1_chunk_778: "LogicalTypeValidFlamingWeaponsTarget"
J1_b1_chunk_779: "LogicalTypeGreekHeroes"
J1_b1_chunk_780: "LogicalTypeMilitaryUnitsAndBuildings"
J1_b1_chunk_781: "LogicalTypeOdinRegenerates"


The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.

[This message has been edited by nottud (edited 01-16-2007 @ 03:13 PM).]

posted 16 January 2007 07:32 PM EDT (US)     7 / 20  
Hi nottud - I misconverted an AOE3 function - thanks alerting me. The player selection was selecting 1 higher than specified (all other features work fine). It should work now though - please redownload.


A list of unit ids can be found on TwentyOneScore's list - again for AOM only.


Can you please tell me where you found the list to extract from? Maybe a similar thing can be done for AOT.


You can include the trigger in your pack but make sure it works first :P (make sure you redownload)

Quote:

But that's true! That is what he's doing!


I made this as a first attempt to use kb commands to see what's possible, and also because there currently isn't a true Convert Units in Area (specify unit type range, player range, point AND center unit, etc) - NOT to "beat" anyone (I myself need such a trigger for a map I'm working on).

Besides, is no one else allowed to make triggers?

Why is it bad if (I don't claim to be so) I make something that surpasses what nottud currently can do.

[This message has been edited by pftq (edited 01-16-2007 @ 08:24 PM).]

posted 17 January 2007 04:41 AM EDT (US)     8 / 20  
Hey PFTQ since your active on the forums again can you make Mythic Cops 2? PLZ! PLZ! PLZ! PLZ! PLZ! PLZ! PLZ!
posted 17 January 2007 04:44 AM EDT (US)     9 / 20  
Yeah that would be cool Mythic Cops one was amazingly funny

+|MW|BaxteR|+
[My|Projects]
[Destruction 1%]
[Gamer|Programmer|Destoyer of World's]
posted 17 January 2007 07:26 AM EDT (US)     10 / 20  
:-( This stuff is only taking minutes to make. I'm currently working on Fort Wars 3.1, UDaPrey, and another project.

[This message has been edited by pftq (edited 01-17-2007 @ 07:26 AM).]

posted 17 January 2007 11:42 AM EDT (US)     11 / 20  
PFTQ:I am using AOMED to extract a non expansion scenario. I managed to also PARTIALLY extract an expasion scenario but renaming the extension to a non expansion one then extracting. It did about 5 of the 15 text files then came across a command it didn't understand and it stopped extracting. Unfortunately, it didn't extract far enough to get the files I wanted. It contains unit ID's stuff, god power list, tech list and scenario settings text file. It also contains other files which sadly the converter does not convert to text. If it did then I could do so much but ah well.

Have you corrected your trigger then?

And, how do you know all of this!? I have to rely upon what other people have done to learn how to do something and then do one myself.


The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.

[This message has been edited by nottud (edited 01-17-2007 @ 11:48 AM).]

posted 17 January 2007 09:03 PM EDT (US)     12 / 20  
It is corrected nottud - please redownload if you haven't already.


How do I know this? I actually refered you to it several times.. :P Remember me mentioning TwentyOneScore, his command list etc...

It wasn't actually that hard - just spend about 15 min to find the code I need and 45 minutes to test it and get it right.


BTW I think I might make a Teleport Units From Area - that's something truly unique. What do you think?

posted 18 January 2007 12:30 PM EDT (US)     13 / 20  
VERY GOOD!

It converts properly unlike mine lol. I really need to learn about this.

Do you know how you could tech me?

NON EXPANSION PEOPLE CAN USE IT AS A CHANGE UNITS IN AREA SINCE IT WORKS ON NON EXPANSION!!!!!


The boy with the mad imagination
Prepare for the ultimate duel!
Learn to use all my triggers and what you can do with them. Visit here.
Find out and download the transform trigger here.
Play some minigames I have created outside AOM including some 3D games here.

[This message has been edited by nottud (edited 01-18-2007 @ 12:45 PM).]

posted 18 January 2007 07:15 PM EDT (US)     14 / 20  
Does it? That's very nice to know. ^_^ (Makes sense since I did use the commands from TOS's list, which is AOM only)


Like I said - this is my first try at using these commands and I learned these from TwentyOneScore's posts. If I can do it, so can you. Just ask questions when you don't understand something and I'll do my best to answer.


Go to the modding section and enter TwentyOneScore.

He doesn't have too many posts on this but the ones that do exist tell alot. I mainly refered to his Example Trigger on Converting Units Who Are Repairing and his Command List

posted 18 January 2007 08:09 PM EDT (US)     15 / 20  
Off-topic:

HI pftq! Why haven't you said hi in my return topic? Do you hate me? We used to be friends! *cuts himself*

Or maybe I'm exageratting a little.

What's up!?


-- Ashtoro
Current Project - Progress {Map/Trg/Eye/Cin/Test}
Nothin' really, just fooling around.
posted 18 January 2007 08:16 PM EDT (US)     16 / 20  
Hey I remember you ... sorry I haven't really been paying attention to other stuff on these forums.

I can't find your thread

[This message has been edited by pftq (edited 01-18-2007 @ 08:18 PM).]

posted 18 January 2007 08:50 PM EDT (US)     17 / 20  
It's in general discussion. It's a couple days without a reply now, though.

Say, since this question isn't worth a whole topic, is Krios from The New Atlantis the same Theocrat from Fall of the Trident? Can I assume as much for my campaign, at least?


-- Ashtoro
Current Project - Progress {Map/Trg/Eye/Cin/Test}
Nothin' really, just fooling around.
posted 18 January 2007 09:25 PM EDT (US)     18 / 20  
No idea I haven't made anything in the AOM editor for over two years now.


Question thread is your friend tho

[This message has been edited by pftq (edited 01-18-2007 @ 09:27 PM).]

posted 18 January 2007 09:44 PM EDT (US)     19 / 20  
It's not really a scenario design question, so it doesn't work.

But I looked it up in the game's history on Krios(in chapter 1 of New Atlantis), and it told me, even though I swear it didn't say so before, that it's the same guy.


-- Ashtoro
Current Project - Progress {Map/Trg/Eye/Cin/Test}
Nothin' really, just fooling around.
posted 18 January 2007 11:25 PM EDT (US)     20 / 20  
Age of Mythology Heaven » Forums » Scenario Design » REAL Convert in Area & Convert Around Unit
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Mythology Heaven | HeavenGames