






Age of Wonders II
is a turn-based strategy game developed by
Triumph Studios

![]() |
![]() |
Scenario Design
Scripting Basics by Talon-Thorn Part V: Using Units and Structures in ScriptsSome scripts, such as the Unit in Area condition and the Rebuild Structure trigger, allow the designer to build custom scripts that respond to a specific unit or structure in the game. The unit or structure is entered into the script by using it's unique id.
The unit or structure must be placed on the map for an ID to be assigned to it. Once added to the map, the designer can use the unit or structure in a script simply by typing its ID into the ID field. Press "enter" or click in another field to get the name of the unit or structure to show up (this helps in verifying that you typed in the correct ID).
Finding A Unit or StructureWhen editing a scenario or viewing someone else's scenario, there is an easy trick to use to locate a unit or structure used in a script. First, select the script that has the unit or structure, then highlight/select the unit/structure ID. Now, to center the map on the selected unit or structure, simply right-click on the ID. The map will center on the unit/structure and show the following animation to indicate the unit/structure selected: ![]() This concludes the user's guide to the scripting tools of the scenario editor. Hopefully, you now know all you need to know to start making custom events for your map. Good luck and by all means have fun! If you are looking for more information about scripts, check out the Appendix. Author's Note: I have made my best effort in making sure that the information here is correct. I have tested each component before writing about it to ensure that it works as I say. However, it is possible that I could still have missed something or didn't write something clearly or correctly. Please feel free to let me know the correction so that everyone can benefit from the correct information. Talon-Thorn (Editing and screenshots by BCH; additional editing and updated screenshots by Talon-Thorn) |
Headlines » AoW1 Summer 2008 Mapmaking Tournament » A new PBEM Singles Champion is crowned - Swolte!! Poll Age of Wonders Looking for info about the original AoW? HeavenGames Sites » Caesar 3 » Caesar 4 » Pharaoh » Zeus |
|||
Age of Wonders II™ is a game by Triumph Studios and published by Gathering of Developers. Age of Wonders II Heaven Copyright © 1997-2004 HeavenGames LLC. All Rights Reserved. Written permission is required if you want to use any materials published on this website for use on your own website, in its original form, or translated into other languages. |