Full Version : Complete list explication?
xmlspawner >>XMLSpawner - Attachments >>Complete list explication?
<< Prev | Next >>
Foruno- 02-07-2007
Hello, abaut de atachment dont see the explication a complete list of constructors of a list [availatt
The explication of all this where is?
mmmm
for exemple i wont
xmlquestatachment -> this using in... etc...
no only with this atach i need all for studin create a spanish tutorial of atachments and use atachs in my server. Thx
ArteGordon- 02-07-2007
the attachment constructor list in [availatt is automatically created by searching through all attachment classes for constructors flagged as [Attachable]
So if you script your own custom attachment, the constructors will automatically show up on the list.
To figure out the details of each constructor and their arguments requires looking in the actual scripts.
Foruno- 02-07-2007
mmm oks, i think what the problem is what i dont understand a total concept of the atachments, i think this ocurred beacouse dont understand inglis very good. i use tranlators of internet and google translator to write the spanish tutorial but in this moment i explote all the resources. Cant understand any concept becouse i understand all concept posibles of my kognement of the lenguage. I search in forums of runuo, this web, and use too google, and all documents i trobe in searchers i read and translate and dont undestand any more...
For this reason i need a especial help for you face (or any member of the comunity) in this cuestion, i need write me a special mini tuto with first steps with atachments. is probably what at generate new documentation whit another words, the software translators can take to me more information. For my face i write the suport of xmlspawner for the spanish comunity users and i think posibiliti to create a xmlspain.com with a permision of arte gordon, true.
Oks thx.
ArteGordon- 02-08-2007
I'm sure that your efforts are appreciated by the community and you are welcome to create a spanish xmlspawner support site.
As for attachments, the easiest way to think about them is that they provide a way of adding additional data that you want to associate with an object without having to actually add that data to the scripts for that object.
Since they handle the serialization/deserialization of their data independently from the object, you dont have to worry about modifying or customizing object scripts to do this.
But in addition to holding data, the attachments have functions that can be activated when the parent object (the thing that the attachment is associated with) does something, so they can add new functionality to that object without having to modify the scripts for that object.
So for example, the XmlLightning, XmlFire, and XmlMinionStrike attachments give new attacks to a mobile by adding damage, casting spells, or spawning creatures when that mobile strikes another creature.
The XmlDialog attachment detects nearby speech and responds to it. When it is attached to an item or mobile, it allows those objects to interact with players.
The XmlUse attachment detects doubleclicks or other attempts to use an object and allows you to specify custom actions that are taken, again with no modification of the scripts for those objects.
In the end, this is a way of creating custom items/mobiles without having to script them, or adding custom systems without having to modify the scripts of the items/mobiles that they work with.
This is very useful as a GM tool since custom content can be added ingame without having to rely on scripting.
Because the attachments are all independent, you dont have to worry about conflicts between them and so adding multiple systems or customizations can be done without having to make sure that everything is compatible.
Foruno- 02-08-2007
All right, i supose what the atacchment. link any item or mob at the specific scrpt in xmlatachment folder and this scripts run a specific functionality. Is true? thx