… | |
… | |
322 | <entry value="45" name="disease" /> |
322 | <entry value="45" name="disease" /> |
323 | <entry value="46" name="aura" /> |
323 | <entry value="46" name="aura" /> |
324 | <entry value="47" name="town portal" /> |
324 | <entry value="47" name="town portal" /> |
325 | </list> |
325 | </list> |
326 | |
326 | |
|
|
327 | <list name="event_type"> |
|
|
328 | <entry value="0" name="none" /> |
|
|
329 | <entry value="1" name="apply" /> |
|
|
330 | <entry value="2" name="attack" /> |
|
|
331 | <entry value="3" name="death" /> |
|
|
332 | <entry value="4" name="drop" /> |
|
|
333 | <entry value="5" name="pickup" /> |
|
|
334 | <entry value="6" name="say" /> |
|
|
335 | <entry value="7" name="stop" /> |
|
|
336 | <entry value="8" name="time" /> |
|
|
337 | <entry value="9" name="throw" /> |
|
|
338 | <entry value="10" name="trigger" /> |
|
|
339 | <entry value="11" name="close" /> |
|
|
340 | <entry value="12" name="timer" /> |
|
|
341 | <entry value="28" name="move" /> |
|
|
342 | </list> |
|
|
343 | |
327 | <!--###################### default attributes ######################--> |
344 | <!--###################### default attributes ######################--> |
328 | |
345 | |
329 | <!-- |
346 | <!-- |
330 | The attributes of the default_type get added to all other types by default. |
347 | The attributes of the default_type get added to all other types by default. |
331 | Every type can have an 'ignore' element however, which is used to specify |
348 | Every type can have an 'ignore' element however, which is used to specify |
… | |
… | |
5356 | This text describes the weapons's "story". Every decent artifact weapon |
5373 | This text describes the weapons's "story". Every decent artifact weapon |
5357 | should have such a description. |
5374 | should have such a description. |
5358 | </attribute> |
5375 | </attribute> |
5359 | </type> |
5376 | </type> |
5360 | |
5377 | |
|
|
5378 | <type number="116" name="Event Connector"> |
|
|
5379 | <description><![CDATA[ |
|
|
5380 | Event connectors link specific events that happen to objects to |
|
|
5381 | a crossfire plug-in. ]]> |
|
|
5382 | </description> |
|
|
5383 | <attribute arch="subtype" editor="event type" type="list_event_type"> |
|
|
5384 | The type of event that triggers a notify to the plug-in. |
|
|
5385 | </attribute> |
|
|
5386 | <attribute arch="title" editor="plug-in" type="text"> |
|
|
5387 | The name of the plug-in that should be notified of the event, e.g. "cfpython" |
|
|
5388 | for python and "perl" for the Crossfire-Perl plug-in. |
|
|
5389 | </attribute> |
|
|
5390 | <attribute arch="slaying" editor="extension" type="text"> |
|
|
5391 | The name of the extension to invoke (for python, this is the path to a script, |
|
|
5392 | for perl this is the name of a extension package without the ".ext" extension. |
|
|
5393 | </attribute> |
|
|
5394 | <attribute arch="name" editor="options" type="text"> |
|
|
5395 | A string that is passed unaltered to the extension above. Often used to pass |
|
|
5396 | options to the extension that alter its behaviour. |
|
|
5397 | </attribute> |
|
|
5398 | </type> |
|
|
5399 | |
5361 | </types> |
5400 | </types> |