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

Scenario Design
Moderated by Yeebaagooon, nottud

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: Trigger to equivalently set the new population limit other than 300 and infinite
posted 16 May 2010 12:19 PM EDT (US)   
   <Effect name="Decrease current population count player range">
<Param name="p1" dispName="lowest player" varType="player">1</Param>
<Param name="p2" dispName="highest player" varType="player">4</Param>
<Param name="q" dispName="amount" varType="string">200</Param>
<Param name="inv" dispName="invisible unused unit" varType="protounit">Blood Gore</Param>
<Param name="Location" dispName="" varType="area">0,0,0</Param>
<Param name="b" dispName="NOTE" varType="string">Amount to modify by must be an even number and this trigger can only be used once for each player!</Param>
<Param name="a" dispName="NOTE" varType="string">Use oar footprint if map is water instead.</Param>
<Command>trQuestVarSet("PlayerID", %p1%);</Command>
<Command>while(%p2%>=trQuestVarGet("PlayerID")) {</Command>
<Command>trArmyDispatch(""+1*trQuestVarGet("PlayerID")+",0","%inv%",2,%Location%,0,true);</Command>
<Command>trModifyProtounit("%inv%", trQuestVarGet("PlayerID"), 6, 2147483500.0);</Command>
<Command>trModifyProtounit("%inv%", trQuestVarGet("PlayerID"), 6, 127.0);</Command>
<Command>trModifyProtounit("%inv%", trQuestVarGet("PlayerID"), 6, (-0.5) * %q% + 1);</Command>
<Command>if(trQuestVarGet("zzzzlifespans"+1*trQuestVarGet("PlayerID")) != 1){</Command>
<Command>if("%inv%" == "blood gore")trModifyProtounit("%inv%", trQuestVarGet("PlayerID"), 8, -3.999);</Command>
<Command>if("%inv%" == "oar footprint")trModifyProtounit("%inv%", trQuestVarGet("PlayerID"), 8, -4.999);</Command>
<Command>trQuestVarSet("zzzzlifespans"+1*trQuestVarGet("PlayerID"), 1);}</Command>
<Command>trQuestVarSet("PlayerID", trQuestVarGet("PlayerID")+1);}</Command>
</Effect>

Use this to decrease the current population count for any player by an amount you want providing the numeber chosen is even. This allows you to start with like say -200 population instead of 0 giving you 500 population cap worth of room for units as you have all the way from -200 to 0 plus the normal 300 population! I will shortly update the superpack and trigger pack with this trigger.

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.
Replies:
posted 16 May 2010 12:25 PM EDT (US)     1 / 16  
lol?

Nottud, how can you always find what SDers want?

AoMH retired Scenario designer
Skarr: "I wish WRP_Beater would stop abusing the poor BBCode."
lostrozzacavalli: "Mezzo e un minuto." | "I'm joking ragazzo."
Dr. Newt: "You are WRP. A slightly manic Italian presence on the forums, you have improved over the years to be a fairly reliable pair of hands, either as town or scum."
posted 16 May 2010 12:26 PM EDT (US)     2 / 16  
Trigger file and superpack now updated.

@WRP_Beater

Recent thread in RMS section asking about setting it. People saying it impossible outside 0 to 300 and the couple that had remotely heard of my infintie population thread infinite. So I investigated the trick further and made it so you could set it to what you want




For trigegr scripter you mgiht be confused about why the two lines setitng the original population change amount rather than 1 plus the amount setting or combine even into one line. There appears to be issues with precision with modify protounit and values you set above a certain amount which is a little odd..

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 05-16-2010 @ 12:36 PM).]

posted 16 May 2010 12:41 PM EDT (US)     3 / 16  
Awesome as always! I'd have said it impossible...

Utilities || Map Tool 3.1 Inventory Triggers MP Triggers Comic AoM
RandomMaps || Mad Supremacy Escape Your Mates Escape
Scenarios || Bomberman Minigames Y 2.0 Convert & Fight
Games || Bullet Demo Ball Bouncer 3D
WRP_Beater: "Meglio una gallina oggi che un uovo domani."
My name has been misspelled 132 times (Last: BSU_DoLhades Best: Lostrozzabercrombie In a row: 5)
posted 16 May 2010 02:59 PM EDT (US)     4 / 16  
Good job. I did think before that this was something possible for population.

edit: I mean, I have thougth of this as an idea to solve the population issues.

Tired of unorigional, boring campaigns? Try out DEMO|Legacy - The Uprising|DEMO
Completely New Gameplay. Random Map Type Replayability. Delve into Nomadican|FEATURES|DOWNLOAD|
Want to know how to use triggers and/or create amazing factors in your scenarios? You need Combination Effects|FEATURES|DOWNLOAD|
Automaton Metals Textures, New Custom Triggers
Upcoming Projects: Legacy - The Uprising, Destiny
6/12/1997, a day that will live in infamy.

[This message has been edited by WinstonShnozwick (edited 05-16-2010 @ 03:27 PM).]

posted 16 May 2010 03:25 PM EDT (US)     5 / 16  
...thats what its for dude. Population. lmfao XD

Great find nottud!

|MEMORY|
posted 16 May 2010 06:20 PM EDT (US)     6 / 16  
I didn;t know about this traick a while back but also back then I was sturggling make the numbers work and do what I have done here - only get infinite.

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 May 2010 10:14 PM EDT (US)     7 / 16  
posted 17 May 2010 01:48 PM EDT (US)     8 / 16  
Omg

~imagines insane huge armies marching the plains~

~imagines new vesions of his old maps with infinite population~

~Thinks: Let's continue some awesome maps in the holidays!!~

Hahhaah, this is why I really like Nottud He always comes up with the things we secondary most desire! Not?
posted 17 May 2010 05:28 PM EDT (US)     9 / 16  
I also actually have time in holidays after these exams I got 3 months!

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 18 May 2010 07:06 AM EDT (US)     10 / 16  
Me too I have 3 months starting from 12/06/10

Utilities || Map Tool 3.1 Inventory Triggers MP Triggers Comic AoM
RandomMaps || Mad Supremacy Escape Your Mates Escape
Scenarios || Bomberman Minigames Y 2.0 Convert & Fight
Games || Bullet Demo Ball Bouncer 3D
WRP_Beater: "Meglio una gallina oggi che un uovo domani."
My name has been misspelled 132 times (Last: BSU_DoLhades Best: Lostrozzabercrombie In a row: 5)
posted 18 May 2010 01:07 PM EDT (US)     11 / 16  
After that I am hopefully in Oxford, time wise I think it be limited except in the holidays...

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 18 May 2010 02:58 PM EDT (US)     12 / 16  
Ooooh, what are you studying?

Please don't say maths...

______________________________________ Yeebaagooon ______________________________________
____________________ AoMH Seraph ____________________
"You can't trust yeebaagooon to lead a rebelion, He would send everyone to steal mirrors so he could bask in his own brilliance." - Out Reach
"Yeebaagooon had never seen a more handsome man in all his life. He couldn't control himself, He needed to act. Gripping the mirror in his strong arms he kissed the figure before him..." - Out Reach
AoMH: Unfinished Scenarios|Singleplayer: Codename Ripto|Multiplayer: Minigames Z|CSC 7
Ex Seraphs Dictator, Spore Heaven Seraph
posted 18 May 2010 05:15 PM EDT (US)     13 / 16  
Maths!... and computer science.

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 18 May 2010 05:43 PM EDT (US)     14 / 16  
hurray for nottud...and college...kind of...
posted 18 May 2010 06:22 PM EDT (US)     15 / 16  
I luv maths!! We have so many common aspects, Nottud

AoMH retired Scenario designer
Skarr: "I wish WRP_Beater would stop abusing the poor BBCode."
lostrozzacavalli: "Mezzo e un minuto." | "I'm joking ragazzo."
Dr. Newt: "You are WRP. A slightly manic Italian presence on the forums, you have improved over the years to be a fairly reliable pair of hands, either as town or scum."
posted 19 May 2010 02:59 AM EDT (US)     16 / 16  
Oh my...

I'm thumbing for all the numbers they don't get raped by his brain :P
Age of Mythology Heaven » Forums » Scenario Design » Trigger to equivalently set the new population limit other than 300 and infinite
Top
You must be logged in to post messages.
Please login or register
Hop to:    
Age of Mythology Heaven | HeavenGames