<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=GameEvents.TeamTechResearched_%28Civ5_API%29</id>
	<title>GameEvents.TeamTechResearched (Civ5 API) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://modiki.civfanatics.com/index.php?action=history&amp;feed=atom&amp;title=GameEvents.TeamTechResearched_%28Civ5_API%29"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=GameEvents.TeamTechResearched_(Civ5_API)&amp;action=history"/>
	<updated>2026-04-10T18:19:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=GameEvents.TeamTechResearched_(Civ5_API)&amp;diff=11349&amp;oldid=prev</id>
		<title>DonQuich: Bot update</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=GameEvents.TeamTechResearched_(Civ5_API)&amp;diff=11349&amp;oldid=prev"/>
		<updated>2012-09-19T20:28:51Z</updated>

		<summary type="html">&lt;p&gt;Bot update&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Civ5 API Beta Banner}}&lt;br /&gt;
&amp;#039;&amp;#039;This page is a part of the [[Lua and UI Reference (Civ5)]].&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TypeInfos5|Function.png|This function is a member of {{Type5|GameEvents}}.&amp;lt;br/&amp;gt;&lt;br /&gt;
This is a static method, invoke it with a dot.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Triggered when a team researches a tech.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Usage=&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;#039;&amp;#039;&amp;#039;void&amp;#039;&amp;#039;&amp;#039; GameEvents.TeamTechResearched&amp;lt;b&amp;gt;(&amp;lt;/b&amp;gt;{{Type5|TeamID}} team, {{Type5|TechType}} tech, &amp;#039;&amp;#039;&amp;#039;int&amp;#039;&amp;#039;&amp;#039; change&amp;lt;b&amp;gt;)&amp;lt;/b&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Event Type&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:Unknown&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Parameters&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:{|&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|team:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;The ID of the team that has researched.&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|tech:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;The ID of the tech that has been researched (presumably).&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|valign=&amp;quot;top&amp;quot; style=&amp;quot;padding-right:6px;&amp;quot;|change:&lt;br /&gt;
|valign=&amp;quot;top&amp;quot;| &amp;#039;&amp;#039;No idea.&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Source code samples=&lt;br /&gt;
{{PseudoH4|TurnsRemaining.lua - DLC_02 DLC}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0518}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;GameEvents.TeamTechResearched.Add(OnTechResearched);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PseudoH4|TurnsRemaining.lua (G&amp;amp;K)}}&lt;br /&gt;
:&amp;lt;code&amp;gt;DLC/Expansion/Scenarios/SteampunkScenario/TurnsRemaining.lua&amp;lt;/code&amp;gt;&lt;br /&gt;
:{{CodeBegin5}}&lt;br /&gt;
{{CodeLine5|0522}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;GameEvents.TeamTechResearched.Add(function(iTeam, iTech, iChange)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0523}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;local kCultureBonus = GetCultureFromLastTech();&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeBreak5}}&lt;br /&gt;
{{CodeLine5|0525}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;if (iTech == GameInfo.Technologies[&amp;quot;TECH_THE_GRAND_IDEA&amp;quot;].ID) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0526}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;for iPlayer = 0, GameDefines.MAX_MAJOR_CIVS - 1, 1 do&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0527}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;   if (Players[iPlayer] ~= nil) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0528}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;   if (Players[iPlayer]:GetTeam() == iTeam) then&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0529}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;   Players[iPlayer]:ChangeJONSCulture(kCultureBonus);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0530}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;   end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0531}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;   end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0532}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;   end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0533}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;   end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeLine5|0534}}&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;   end);&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{CodeEnd5}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Civ5 API Footer}}&lt;br /&gt;
[[Category:Civ5 Methods and Functions|TeamTechResearched]]&lt;br /&gt;
[[Category:Civ5 Science API|TeamTechResearched]]&lt;br /&gt;
[[Category:Civ5 Diplomacy API|TeamTechResearched]]&lt;/div&gt;</summary>
		<author><name>DonQuich</name></author>
	</entry>
</feed>