https://www.perfecttower2.com/wiki/api.php?action=feedcontributions&user=Itsyaboikeef&feedformat=atomThe Perfect Tower II - User contributions [en]2024-03-29T08:34:08ZUser contributionsMediaWiki 1.33.1https://www.perfecttower2.com/wiki/index.php?title=Town&diff=548Town2020-09-17T04:43:24Z<p>Itsyaboikeef: Small description about what the town does.</p>
<hr />
<div>The town is the main hub area in the game. While in the town, the player can access buildings and even start a [[New Round|new round]].<br />
<br />
== Citizens ==<br />
While in the town, citizens can be seen roaming around. However, they serve no functionality and are purely cosmetic.<br />
<br />
The amount of citizens roaming around will increase by 3 per level, capping out at 100 citizens.<br />
<br />
== Town Assets ==<br />
The player can place down town assets to customize their town. Each asset placed will increase white [[Resources|resource]] gain by 1%.<br />
<br />
The player has limited asset slots. Slots can be purchased using white [[resources]].<br />
<br />
== Trivia ==<br />
<br />
* Hovering over a citizen while in the town will show their name. Names include supporters of the [https://www.patreon.com/fireswordstudios patreon], or early access players.<br />
<br />
* While upgrading a building using the [[Construction Firm]], construction can visibly be seen in the town view.<br />
{{Navbox<br />
| name = PerfectNavigation<br />
| title = The Perfect Tower II<br />
| listclass = hlist<br />
<br />
| group1 = Core Game<br />
| list1 = {{Navbox|child<br />
| group1 = Mechanics<br />
| list1 =<br />
* [[New Round]]<br />
* [[Elements]]<br />
* [[Modules]]<br />
* [[Skills]]<br />
* [[Tower Customization]]<br />
<br />
| group2 = [[Regions]]<br />
| list2 =<br />
* [[Forest]]<br />
* [[Desert]]<br />
* [[Winter]]<br />
* [[Underground]]<br />
* [[Volcano]]<br />
* [[High Mountain]]<br />
* [[Jungle]]<br />
* [[Metallic Ruins]]<br />
* [[Beach]]<br />
* [[Ocean]]<br />
* [[Neutral]]<br />
* [[Dark Realm]]<br />
* [[Heaven]]<br />
* [[Universe]]<br />
* [[Chaos]]<br />
}}<br />
| group2 = [[Town]]<br />
| list2 = {{Navbox|child<br />
| group1 = Buildings<br />
| list1 =<br />
* [[Power Plant]]<br />
* [[Mine]]<br />
* [[Factory]]<br />
* [[Headquaters]]<br />
* [[Arcade]]<br />
* [[Laboratory]]<br />
* [[Shipyard]]<br />
* [[Trading Post]]<br />
* [[Workshop]]<br />
* [[Museum]]<br />
* [[Construction Firm]]<br />
* [[Statue of Cubos]]<br />
| group2 = Prestige<br />
| list2 = [[Headquaters#Military|Military]] <br />
}}<br />
<br />
<br />
}}</div>Itsyaboikeefhttps://www.perfecttower2.com/wiki/index.php?title=AI&diff=547AI2020-09-17T04:21:14Z<p>Itsyaboikeef: Added PerfectNavigation</p>
<hr />
<div>The AI is a very powerful tool that can be used to automate nearly anything. To use the AI you have to create AI scripts in the headquarters.<br />
<br />
==AI scripts==<br />
An AI script contains three sections that control its behaviour:<br />
<br />
*Impulses<br />
*Conditions<br />
*Actions<br />
<br />
===Impulse===<br />
An impulse or trigger is a certain event that activates an AI script. A script can contain zero, one or more impulses and will react to all of them equally. It is possible that a script can trigger multiple times before it has finished execution. In this case multiple instances of this script can run in parallel.<br />
<br />
===Condition===<br />
A condition is a requirement that has to be fulfilled in order for the script to start executing. If any of the specified conditions is not met then the whole script will not be executed once it is triggered by an impulse. During the execution the specified conditions have no effect.<br />
<br />
===Action===<br />
An action is something that the AI does when the script becomes active. The order of all actions is important where the action at the top is executed first and then all following actions are executed one by one. There is no way to execute multiple actions at the same time inside a single active script.<br />
[[File:AI-Script-Editor.png|alt=AI-Script-Editor (Ingame)|none|thumb|362x362px|AI-Script-Editor (Ingame)]]<br />
<br />
==Datatypes==<br />
There are various types for data objects, placeholders or function arguments with each representing a different format of information.<br />
{| class="wikitable"<br />
!Type<br />
!Human readable description<br />
!Example Values<br />
!Default Value<br />
!Notes<br />
|-<br />
|double<br />
|A number with decimal places. Can be positive or negative<br />
|3.2, 0.29, -10.2, 7.9999993<br />
|0.0<br />
|<br />
|-<br />
|int<br />
|A number without decimal places. Can be positive or negative.<br />
|20, 69, 420, -1029, 0<br />
|0<br />
|<br />
|-<br />
|string<br />
|A chain of characters, basically any form of text.<br />
|"meow", "hello", " ", "I am a text"<br />
|""<br />
|The quotes in the examples are not included in the actual string value.<br />
|-<br />
|bool<br />
|A binary value that can either be true or false.<br />
|true, false<br />
|false<br />
|<br />
|-<br />
|Vector2<br />
|A container type that contains two double values called x and y.<br />
|(-30.0, 0.0), (28.38, 13)<br />
|(0.0, 0.0)<br />
|<br />
|}<br />
Some datetypes can be converted to others by using a function. Check the table below to see which datatypes are currently interchangeable.<br />
{| class="wikitable"<br />
!Source / Target<br />
!double<br />
!int<br />
!string<br />
!bool<br />
!Vector2<br />
|-<br />
!double<br />
|<nowiki>-</nowiki><br />
|Yes<br />
|Yes<br />
|No<br />
|Partially<br />
|-<br />
!int<br />
|Yes<br />
| -<br />
|Yes<br />
|No<br />
|No<br />
|-<br />
!string<br />
|No<br />
|No<br />
| -<br />
|No<br />
|No<br />
|-<br />
!bool<br />
|No<br />
|No<br />
|No<br />
| -<br />
|No<br />
|-<br />
!Vector2<br />
|Partially<br />
|No<br />
|No<br />
|No<br />
| -<br />
|}<br />
(The table will be updated as soon as more AI features are available.)<br />
<br />
==Functions==<br />
Any line in an AI script (apart from impulses) represents a function.<br />
<br />
There are two major types of functions:<br />
<br />
*Without a return value (= Actions)<br />
*With a return value<br />
<br />
Functions without a return value appear as actions in the sidebar of the AI-script editor. In general these functions do something specific but require some sort of input. <br />
<br />
The various inputs to a function are called '''arguments'''. Each argument of a function has a specific datatype and accepts either a constant value or a function with a return value of the same type.<br />
<br />
{{PerfectNavigation}}<br />
<br />
<br /></div>Itsyaboikeefhttps://www.perfecttower2.com/wiki/index.php?title=Desert&diff=546Desert2020-09-17T04:16:50Z<p>Itsyaboikeef: Added a small description.</p>
<hr />
<div>The second region in the game, unlocked after completing wave 100 on [[Forest|Forest.]]<br />
<br />
The Desert features a sandy wasteland filled with fossils and cacti. The region consists of 6 lanes that enemies may spawn from.<br />
<br />
==Enemies==<br />
The base enemy structure consists of:<br />
<br />
*Neutral enemies<br />
*Light enemies<br />
*Fire enemies<br />
*Earth enemies<br />
<br />
== Environmental Effects ==<br />
This area has no environmental effects.<br />
<br />
== Modules ==<br />
<br />
=== RNG Modules: ===<br />
Placeholder Text<br />
<br />
=== Scripted Modules: ===<br />
Placeholder Text<br />
<br />
== Town Assets ==<br />
After completing wave 100, you unlock:<br />
<br />
* Cactus<br />
* Fossil<br />
* Sand Rocks<br />
{{Navbox<br />
| name = PerfectNavigation<br />
| title = The Perfect Tower II<br />
| listclass = hlist<br />
<br />
| group1 = Core Game<br />
| list1 = {{Navbox|child<br />
| group1 = Mechanics<br />
| list1 =<br />
* [[New Round]]<br />
* [[Elements]]<br />
* [[Modules]]<br />
* [[Skills]]<br />
* [[Tower Customization]]<br />
<br />
| group2 = [[Regions]]<br />
| list2 =<br />
* [[Forest]]<br />
* [[Desert]]<br />
* [[Winter]]<br />
* [[Underground]]<br />
* [[Volcano]]<br />
* [[High Mountain]]<br />
* [[Jungle]]<br />
* [[Metallic Ruins]]<br />
* [[Beach]]<br />
* [[Ocean]]<br />
* [[Neutral]]<br />
* [[Dark Realm]]<br />
* [[Heaven]]<br />
* [[Universe]]<br />
* [[Chaos]]<br />
}}<br />
| group2 = [[Town]]<br />
| list2 = {{Navbox|child<br />
| group1 = Buildings<br />
| list1 =<br />
* [[Power Plant]]<br />
* [[Mine]]<br />
* [[Factory]]<br />
* [[Headquaters]]<br />
* [[Arcade]]<br />
* [[Laboratory]]<br />
* [[Shipyard]]<br />
* [[Trading Post]]<br />
* [[Workshop]]<br />
* [[Museum]]<br />
* [[Construction Firm]]<br />
* [[Statue of Cubos]]<br />
| group2 = Prestige<br />
| list2 = [[Headquaters#Military|Military]] <br />
}}<br />
<br />
<br />
}}<br />
[[Category:Regions]]</div>Itsyaboikeef