<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.spherecommunity.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Taro</id>
		<title>SphereWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.spherecommunity.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Taro"/>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Special:Contributions/Taro"/>
		<updated>2026-04-17T08:32:08Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=De:How_Combat_Works&amp;diff=733</id>
		<title>De:How Combat Works</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=De:How_Combat_Works&amp;diff=733"/>
				<updated>2010-11-28T12:14:07Z</updated>
		
		<summary type="html">&lt;p&gt;Taro: Created page with '{{Languages|How_Combat_Works}}  Das folgende Diagramm zeigt in welcher reinfolge die Trigger ausgelöst werden. Sehe auf die jeweiligen Trigger-Seiten für weitere einzelne  ...'&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Languages|How_Combat_Works}}&lt;br /&gt;
&lt;br /&gt;
Das folgende Diagramm zeigt in welcher reinfolge die [[Trigger]] ausgelöst werden. Sehe auf die jeweiligen Trigger-Seiten für weitere einzelne  Informationen für das Auslösen.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;@HitTry (Angreifer)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;/&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;\&amp;lt;br /&amp;gt;&lt;br /&gt;
@Hit (Angreifer)&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;@HitMiss (Angreifer)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
@Damage (Waffe)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
@GetHit (Opfer)&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;|&amp;lt;br /&amp;gt;&lt;br /&gt;
@Damage (Rüstung)&amp;lt;br /&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Dank für dieses Posting Moe.&lt;br /&gt;
&lt;br /&gt;
[[Category:Articles]]&lt;/div&gt;</summary>
		<author><name>Taro</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=514</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Main_Page&amp;diff=514"/>
				<updated>2009-08-04T19:49:29Z</updated>
		
		<summary type="html">&lt;p&gt;Taro: /* External Links */  Bad Link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Welcome to the retake of Taran's famous &amp;quot;[http://www.cs.rit.edu/~djr7581/ Sphere Scripting for Dummies tutorials]&amp;quot; and information. His tutorial was made for Sphere 55i, but now that Sphere 56b is about to be released we have decided to rewrite his tutorials and update the information to reflect the latest changes and additions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Where should I start?'''&lt;br /&gt;
&lt;br /&gt;
If you want to learn to script for Sphere 56b you should start by first reading the [[#Setting Up Sphere|Setting Up Sphere]] section. It will teach you how to set up a basic empty world to start your path. After that you should try reading the [[#Tutorials|Tutorials]], go slow, don't try to go through everything in one day as it takes time to read and fully understand everything.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''I learned how to script! And now?'''&lt;br /&gt;
&lt;br /&gt;
If you have finished the 10 chapters then we encourage you to read the tutortials and other articles below. They may not be as important as the others but they are still quite useful and contain lots of useful information. Try making your own scripts and share with others at the [http://www.sphereserver.net/index.php SphereServer Forums]. You can also ask for help if you can't resolve something by yourself. Remember to use the [[#Reference Compendium|Reference Compendium]] below as it is really useful.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''I want to contribute!'''&lt;br /&gt;
&lt;br /&gt;
Maintaining the information on this site involves a huge amount of work and not many of us have the time to do it. If you wish to help out then please feel free to do so! All you need to do to get started is [[Special:UserLogin|create an account]] if you haven't done so already. You can then edit any page by using the &amp;quot;Edit&amp;quot; link in the rop right corner. Before you go do this, you may want to start by reading the [[Contribution Guide]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Special thanks to:'''&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Ben, Cloud_Br, Ellessar, Jdog, Lord Zerofiz, Mordaunt, Nazghul-ll, RanXerox, Rattlehead, Sandman, Sharlenwar, ShiryuX, thelegbra, Maximus and WarAngel]], for helping to add content.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Daleth]], for writing the Sphere Reference Project, and [[WhoIsWho|Mordaunt]] for converting it to .chm format.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Tracker]], for writing the Sphere 56 Tracking Changes in Sphereserver.net&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Taran]], for writing the original and now famous Sphere Scripting for Dummies tutorials, and [[WhoIsWho|MrSugarCube]] for bringing it up-to-date directly from source.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Furio, Radiant, Vjaka, Nazghul-ll, Ellessar, Torfo, Shadow Dragon and MrSugarCube]] for continuing to develop Sphere into a powerful and very customizable Ultima Online emulator.&lt;br /&gt;
&lt;br /&gt;
[[WhoIsWho|Crius]], for providing hosting for the original SphereWiki, and [[WhoIsWho|Torfo]] for providing the current hosting.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Setting up Sphere==&lt;br /&gt;
&lt;br /&gt;
* [[Where to get Sphere]]&lt;br /&gt;
* [[Installing Sphere]]&lt;br /&gt;
* [[Configuring Sphere.ini]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Tutorials==&lt;br /&gt;
&lt;br /&gt;
Here are the chapters of Taran's original compendium, updated for Sphere56b:&lt;br /&gt;
&lt;br /&gt;
* [[Chapter 1]] ''(Numbers, DEFNAME, ITEMDEF, CHARDEF)''&lt;br /&gt;
* [[Chapter 2]] ''(Sphere files explained)''&lt;br /&gt;
* [[Chapter 3]] ''(Scripting NPC's and items, Cool commands)''&lt;br /&gt;
* [[Chapter 4]] ''(Objects, operators, speech)''&lt;br /&gt;
* [[Chapter 5]] ''(Tags, Vars, Locals, Functions)''&lt;br /&gt;
* [[Chapter 6]] ''(LINKs, TIMERs, TARGETs)''&lt;br /&gt;
* [[Chapter 7]] ''(Loops and powerful functions)''&lt;br /&gt;
* [[Chapter 8]] ''(SKILLMENUs, MENUs, Gumps)''&lt;br /&gt;
* [[Chapter 9]] ''(Events)''&lt;br /&gt;
* [[Chapter 10]] ''(String Handling)''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to these there are some more advanced tutorials that have been contributed by other members. Once you have read the above 10 tutorials you may wish to read these to learn more:&lt;br /&gt;
&lt;br /&gt;
* [[Common Mistakes|Common Mistakes Explained]] ''(A revision of Maximus's tutorial on the forums, and continuation of Taran's Misconceptions tutorial)''&lt;br /&gt;
* [[Internet and Sphere]] ''(And how to make the right use of them)''&lt;br /&gt;
* [[Languages Tutorial]] ''(How to script your own language system)''&lt;br /&gt;
* [[Making your own Skills]] ''(How to make and customize your skill)''&lt;br /&gt;
* [[Mul Patching Tutorial|Nazghul's Mul Patching Tutorial]] [http://sorea.profitux.cz/patching/ external link] ''(A document about mul patching and customizing your server)''&lt;br /&gt;
* [[Overriding Hardcoded Commands]] ''(How to override hardcoded commands and functions)''&lt;br /&gt;
* [[Scheduled Reboot]] ''(How to schedule system reboots)''&lt;br /&gt;
* [[Using MySQL]] ''(How to use MySQL)''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Reference Compendium==&lt;br /&gt;
&lt;br /&gt;
* [[:Category:Definitions|Definitions]]&lt;br /&gt;
** [[CHARDEF|Characters]]&lt;br /&gt;
** [[DIALOG|Dialogs]]&lt;br /&gt;
** [[EVENTS|Events]]&lt;br /&gt;
** [[ITEMDEF|Items]]&lt;br /&gt;
** [[MENU|Menus]]&lt;br /&gt;
** [[REGIONRESOURCE|Region Resources]]&lt;br /&gt;
** [[REGIONTYPE|Region Types]]&lt;br /&gt;
** [[AREADEF|Regions]]&lt;br /&gt;
** [[ROOMDEF|Rooms]]&lt;br /&gt;
** [[SKILLCLASS|Skill Classes]]&lt;br /&gt;
** [[SKILLMENU|Skill Menus]]&lt;br /&gt;
** [[SKILL|Skills]]&lt;br /&gt;
** [[SPELL|Spells]]&lt;br /&gt;
** [[TYPEDEF|Types]]&lt;br /&gt;
* [[:Category:Objects|Objects]]&lt;br /&gt;
** [[Accounts]]&lt;br /&gt;
** [[Characters]]&lt;br /&gt;
** [[Database]]&lt;br /&gt;
** [[Files]]&lt;br /&gt;
** [[GM Pages]]&lt;br /&gt;
** [[Items]]&lt;br /&gt;
*** [[Special Items]]&lt;br /&gt;
** [[Map Points]]&lt;br /&gt;
** [[Parties]]&lt;br /&gt;
** [[Regions]]&lt;br /&gt;
** [[Rooms]]&lt;br /&gt;
** [[Sectors]]&lt;br /&gt;
** [[Server]]&lt;br /&gt;
* [[:Category:Scripts|Scripts]]&lt;br /&gt;
** [[:Category:Functions|Functions and Triggers]]&lt;br /&gt;
** [[:Category:Variables|General Functions, Properties and References]]&lt;br /&gt;
** [[Intrinsic Functions]]&lt;br /&gt;
** [[:Category:Statements|Statements]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Other Articles==&lt;br /&gt;
&lt;br /&gt;
* [[Armor Calculation]]&lt;br /&gt;
* [[Client Changes]]&lt;br /&gt;
* [[Common Scripting Misconceptions]]&lt;br /&gt;
* [[Custom Object Properties]]&lt;br /&gt;
* [[Error Codes]]&lt;br /&gt;
* [[Experience System]]&lt;br /&gt;
* [[How Combat Works]]&lt;br /&gt;
* [[Occam's Razor]]&lt;br /&gt;
* [[Optimization|Optimization Theory]]&lt;br /&gt;
* [[Override TAGs]]&lt;br /&gt;
* [[Revisions Changelog]]&lt;br /&gt;
* [[Sendpacket]]&lt;br /&gt;
* [[Skill Gain Theory]]&lt;br /&gt;
* [[The Process of Scripting]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
&lt;br /&gt;
* [http://www.sphereserver.net/ Official SphereServer Website]&lt;br /&gt;
* [http://prerelease.sphereserver.net/ Official Sphere 56b Downloads]&lt;br /&gt;
* [http://scriptsharing.dv-team.de/ ScriptSharing]&lt;br /&gt;
* [http://www.cs.rit.edu/~djr7581/ Taran's Scripting for Dummies (Sphere 55i)]&lt;br /&gt;
* [http://uo.torfo.org/packetguide/ Jerrith's UO Packet Guide]&lt;br /&gt;
* [http://uo.torfo.org/packetguideKR/ Wyatt&amp;amp;Kons's UOKR Packet Guide]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category: Navigation]]&lt;/div&gt;</summary>
		<author><name>Taro</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=DIALOG&amp;diff=513</id>
		<title>DIALOG</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=DIALOG&amp;diff=513"/>
				<updated>2009-08-04T05:34:59Z</updated>
		
		<summary type="html">&lt;p&gt;Taro: Edit: dhtmlgump prefixes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__FORCETOC__&lt;br /&gt;
Dialogs are a more advanced form of user interface whose layout can be completely customised.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
The definition of a dialog consists of ''three'' different blocks of script; a layout, a list of text strings used in the dialog and a buttons section which handles button responses from the client.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Layout===&lt;br /&gt;
The layout section of the dialog defines how the dialog will look to clients.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
[DIALOG ''defname'']&amp;lt;br /&amp;gt;&lt;br /&gt;
''x, y''&amp;lt;br/ &amp;gt;&lt;br /&gt;
''script''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| ''defname'' || The dialog's defname.&lt;br /&gt;
|-&lt;br /&gt;
| ''x, y'' || The screen coordinates to display the dialog at.&lt;br /&gt;
|-&lt;br /&gt;
| ''script'' || The dialog's layout script.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The script text can be a complete script that is executed in the same way as a function or trigger script, and can even contain conditional statements to display different layouts to different clients if desired. The default object is the [[Characters|character]] or [[Items|item]] that the dialog has been called upon, and [[SRC]] is the [[Characters#Clients|client]] who is viewing the dialog. If the dialog ends with a &amp;quot;RETURN 1&amp;quot; then Sphere will cancel displaying the dialog.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition to the usual functions, properties and references you would have access to in a normal script, there are also functions that place elements on to the dialog. The following table lists all elements that can be used:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[button]] ''x y gump_down gump_up is_pressable page id'' || Places a button on to the page&lt;br /&gt;
|-&lt;br /&gt;
| [[buttontileart]] ''x y gump_down gump_up is_pressable page id tile_id tile_hue tile_x tile_Y'' || Places a button on to the page, with an item image placed over the top as part of the button.&lt;br /&gt;
|-&lt;br /&gt;
| [[checkbox]] ''x y gump_check gump_uncheck initial_state id'' || Places a checkbox on to the page.&lt;br /&gt;
|-&lt;br /&gt;
| [[checkertrans]] ''x y width height'' || Adds a transparent area of the dialog.&lt;br /&gt;
|-&lt;br /&gt;
| [[croppedtext]] ''x y width height colour text_index'' || Places some text on to the page that wraps to specified boundaries.&lt;br /&gt;
|-&lt;br /&gt;
| [[dcroppedtext]] ''x y width height colour text || Places some text on to the page that wraps to specified boundaries. Accepts dynamic coordinates relative to [[dorigin]] using '''-''', '''+''', '''*''' prefixes.&lt;br /&gt;
|-&lt;br /&gt;
| [[dorigin]] ''x y'' || Sets the origin coordinates for dynamically positioned elements.&lt;br /&gt;
|-&lt;br /&gt;
| [[dhtmlgump]] ''x y width height has_background has_scrollbar text'' || Places some HTML text on to the page. Accepts dynamic coordinates relative to [[dorigin]] using '''-''', '''+''', '''*''' prefixes.&lt;br /&gt;
|-&lt;br /&gt;
| [[dtext]] ''x y colour text'' || Places some text on to the page. Accepts dynamic coordinates relative to [[dorigin]] using '''-''', '''+''', '''*''' prefixes.&lt;br /&gt;
|-&lt;br /&gt;
| [[dtextentry]] ''x y width height colour id text'' || Places a text entry field on to the page where the client can enter text. Accepts dynamic coordinates relative to [[dorigin]] using '''-''', '''+''', '''*''' prefixes.&lt;br /&gt;
|-&lt;br /&gt;
| [[dtextentrylimited]] ''x y width height colour id limit text'' || Places a text entry field on to the page where the client can enter a limited amount of text. Accepts dynamic coordinates relative to [[dorigin]] using '''-''', '''+''', '''*''' prefixes.&lt;br /&gt;
|-&lt;br /&gt;
| [[group]] ''id'' || Defines a new group ID, for grouping sets of radio buttons.&lt;br /&gt;
|-&lt;br /&gt;
| [[gumppic]] ''x y gump hue'' || Places a gump on to the page.&lt;br /&gt;
|-&lt;br /&gt;
| [[gumppictiled]] ''x y width height gump'' || Tiles a gump over an area of the page.&lt;br /&gt;
|-&lt;br /&gt;
| [[htmlgump]] ''x y width height text_index has_background has_scrollbar'' || Places some HTML text on to the page.&lt;br /&gt;
|-&lt;br /&gt;
| [[noclose]] || Prevents the dialog from being closed when right-clicked.&lt;br /&gt;
|-&lt;br /&gt;
| [[nodispose]] || Prevents the dialog from being closed by the &amp;quot;Close Dialogs&amp;quot; macro.&lt;br /&gt;
|-&lt;br /&gt;
| [[nomove]] || Prevents the dialog from being moved around the screen.&lt;br /&gt;
|-&lt;br /&gt;
| [[page]] ''num'' || Begins defining page ''num'' of the dialog. (page 0 content is shown on all pages)&lt;br /&gt;
|-&lt;br /&gt;
| [[radio]] ''x y gump_check gump_uncheck initial_state id'' || Places a radio button on to the page.&lt;br /&gt;
|-&lt;br /&gt;
| [[resizepic]] ''x y gump width height'' || Places a multi-part ''gump'' on to the page, often used for dialog backgrounds.&lt;br /&gt;
|-&lt;br /&gt;
| [[text]] ''x y colour text_index'' || Places some text on to the page.&lt;br /&gt;
|-&lt;br /&gt;
| [[textentry]] ''x y width height colour id text_index'' || Places a text entry field on to the page where the client can enter text.&lt;br /&gt;
|-&lt;br /&gt;
| [[textentrylimited]] ''x y width height colour id text_index limit'' || Places a text entry field on to the page where the client can enter a limited amount of text.&lt;br /&gt;
|-&lt;br /&gt;
| [[tilepic]] ''x y item_id'' || Places an item image on to the page.&lt;br /&gt;
|-&lt;br /&gt;
| [[tilepichue]] ''x y item_id hue'' || Places a coloured item image on to the page.&lt;br /&gt;
|-&lt;br /&gt;
| [[tooltip]] ''cliloc_id'' || Places a tooltip on to the page.&lt;br /&gt;
|-&lt;br /&gt;
| [[xmfhtmlgump]] ''x y width height clilod_id has_background has_scrollbar'' || Places some localised HTML text on to the page.&lt;br /&gt;
|-&lt;br /&gt;
| [[xmfhtmlgumpcolor]] ''x y width height cliloc_id has_background has_scrollbar colour'' || Places some localised HTML text on to the page with the specified colour.&lt;br /&gt;
|-&lt;br /&gt;
| [[xmfhtmltok]] ''x y width height has_background has_scrollbar colour cliloc_id @args@'' || Places some localised HTML text on to the page, with arguments to the cliloc (multiple arguments separated by @).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Text===&lt;br /&gt;
The text section of the dialog simply lists the different text strings used in the dialog's layout. When using dialog elements that represent text, such as ''text'' or ''htmlgump'', an index into the TEXT block will be specified so that the client knows which text to actually display on that dialog element. This dialog section is optional, and may be omitted if there are no text elements on the dialog or if the newer dialog text elements, such as ''dtext'' or ''dhtmlgump'', are used because their text string is specified in the layout and Sphere will automatically populate the TEXT block for you.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
[DIALOG ''defname'' TEXT]&amp;lt;br /&amp;gt;&lt;br /&gt;
''string1''&amp;lt;br /&amp;gt;&lt;br /&gt;
''string2''&amp;lt;br /&amp;gt;&lt;br /&gt;
''string3''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Buttons===&lt;br /&gt;
This section contains button triggers that fires when the client presses a certain button on the dialog. There are two ways that a button press can be handled, the syntaxc for both is shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
[DIALOG ''defname'' BUTTON]&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=''button_id''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;''script''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
ON=''button_id_start'' ''button_id_end''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;''script''&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The first &amp;quot;&amp;lt;tt&amp;gt;ON=''button_id''&amp;lt;/tt&amp;gt;&amp;quot; will handle the button press for the button with the matching ID, the second will handle any button press where the ID is between ''button_id_start'' and ''button_id_end''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Note:''' If the client cancels the dialog by right clicking it, the trigger for button 0 will be fired.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Inside the button triggers there are some arguments passed in that aren't available in normal functions and triggers. The following table describes each argument passed in to dialog button triggers:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Name''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGCHK]] || Returns the number of selected checkboxes/radio buttons.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGCHK]][''id''] || Returns 1 if the checkbox/radio button with a specified ID was pressed down.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGCHKID]] || The ID of the first selected checkbox/radio button, or -1 if none were selected.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGN1]] || The ID of the button pressed.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGTXT]] || Returns the number of text fields submitted.&lt;br /&gt;
|-&lt;br /&gt;
| [[ARGTXT]][''id'']] || Returns the submitted text for the text field with the specified ID.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;spherescript&amp;gt;&lt;br /&gt;
//&lt;br /&gt;
// Simple travel dialog from default script pack.&lt;br /&gt;
//&lt;br /&gt;
[DIALOG d_TravelTown]&lt;br /&gt;
0, 0&lt;br /&gt;
resizepic 0 0 3600 215 200&lt;br /&gt;
page 0&lt;br /&gt;
text 40 17 0 0&lt;br /&gt;
text 40 37 1152 1&lt;br /&gt;
text 40 57 1152 2&lt;br /&gt;
text 40 77 1152 3&lt;br /&gt;
text 40 97 1152 4&lt;br /&gt;
text 40 117 1152 5   &lt;br /&gt;
text 40 137 1152 6&lt;br /&gt;
text 40 157 0 7&lt;br /&gt;
button 20 40 1209 1210 1 0 1&lt;br /&gt;
button 20 60 1209 1210 1 0 2&lt;br /&gt;
button 20 80 1209 1210 1 0 3&lt;br /&gt;
button 20 100 1209 1210 1 0 4&lt;br /&gt;
button 20 120 1209 1210 1 0 5&lt;br /&gt;
button 20 140 1209 1210 1 0 6&lt;br /&gt;
&lt;br /&gt;
[DIALOG d_TravelTown TEXT]&lt;br /&gt;
Which Town?&lt;br /&gt;
Britain&lt;br /&gt;
Serpent's Hold&lt;br /&gt;
Cove&lt;br /&gt;
Vesper&lt;br /&gt;
Bucaneer's Den&lt;br /&gt;
Papua&lt;br /&gt;
&lt;br /&gt;
[DIALOG d_TravelTown BUTTON]&lt;br /&gt;
&lt;br /&gt;
ON=0&lt;br /&gt;
	SYSMESSAGE Menu Aborted&lt;br /&gt;
&lt;br /&gt;
ON=1 //BRITAIN&lt;br /&gt;
	SRC.GO 1427,1697,0&lt;br /&gt;
&lt;br /&gt;
ON=2 //SERPENTS HOLD&lt;br /&gt;
	SRC.GO 3009,3363,15&lt;br /&gt;
&lt;br /&gt;
ON=3 //COVE&lt;br /&gt;
	SRC.GO 2264,1202,0&lt;br /&gt;
&lt;br /&gt;
ON=4 //VESPER&lt;br /&gt;
	SRC.GO 2892,686,0&lt;br /&gt;
&lt;br /&gt;
ON=5 //BUCANEER'S DEN&lt;br /&gt;
	SRC.GO 2733,2160,0&lt;br /&gt;
&lt;br /&gt;
ON=6 //PAPUA&lt;br /&gt;
	SRC.GO=5726,3205,-3&lt;br /&gt;
&amp;lt;/spherescript&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Definitions]]&lt;/div&gt;</summary>
		<author><name>Taro</name></author>	</entry>

	<entry>
		<id>https://wiki.spherecommunity.net/index.php?title=Category:Statements&amp;diff=504</id>
		<title>Category:Statements</title>
		<link rel="alternate" type="text/html" href="https://wiki.spherecommunity.net/index.php?title=Category:Statements&amp;diff=504"/>
				<updated>2009-07-11T09:14:40Z</updated>
		
		<summary type="html">&lt;p&gt;Taro: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;4&amp;quot; cellpadding=&amp;quot;4&amp;quot;&lt;br /&gt;
| '''Statement''' || '''End Statement''' || '''Description'''&lt;br /&gt;
|-&lt;br /&gt;
| [[BEGIN]] || END || Groups a set of lines together, for use with [[DORAND]] and [[DOSWITCH]] statements.&lt;br /&gt;
|-&lt;br /&gt;
| [[DORAND]] ''line_count'' || ENDDO || Executes a random line of code within the block.&lt;br /&gt;
|-&lt;br /&gt;
| [[DOSWITCH]] ''line_number'' || ENDDO || Executes the specified line of code within the block.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOR]] ''start end'' || ENDFOR || Loops through the block of code&lt;br /&gt;
|-&lt;br /&gt;
| [[FORCHARLAYER]] ''layer_id'' || ENDFOR || Loops through all items that a character has equipped on a specified layer.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORCHARMEMORYTYPE]] ''memory_flags'' || ENDFOR || Loops through all memory items on a character that have one of the specified flags.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORCHARS]] ''distance'' || ENDFOR || Loops through all characters within ''distance'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORCLIENTS]] ''distance'' || ENDFOR || Loops through all connected clients within ''distance'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORCONT]] ''container_uid, max_subcontainers'' || ENDFOR || Loops through all items inside a container.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORCONTID]] ''item_id, max_subcontainers'''' || ENDFOR || Loops through all items inside a container with a specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[FORCONTTYPE]] ''type, max_subcontainers'' || ENDFOR || Loops through all items inside a container with a specified [[TYPE]]&lt;br /&gt;
|-&lt;br /&gt;
| [[FORINSTANCES]] ''defname'' || ENDFOR || Loops through all instances of characters or items with the specified [[BASEID]]&lt;br /&gt;
|-&lt;br /&gt;
| [[FORITEMS]] ''distance'' || ENDFOR || Loops through all items within ''distance'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[FOROBJS]] ''distance'' || ENDFOR || Loops through all items and players within ''distance'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[FORPLAYERS]] ''distance'' || ENDFOR || Loops through all players (online and offline) within ''distance'' tiles.&lt;br /&gt;
|-&lt;br /&gt;
| [[IF]] ''condition''&amp;lt;br /&amp;gt;[[IF|ELIF]] ''condition'' || ENDIF || Executes the block of code if ''condition'' is true.&lt;br /&gt;
|-&lt;br /&gt;
| [[WHILE]] ''condition'' || ENDWHILE || Loops through the block of code whilst ''condition'' is true.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[Category: Reference Compendium]]&lt;br /&gt;
[[Category: Scripts]]&lt;/div&gt;</summary>
		<author><name>Taro</name></author>	</entry>

	</feed>