comrade -> RE: Adding Events (8/7/2008 4:31:10 PM)
|
quote:
ORIGINAL: ebitt The XML structure shows events as repeating. Each event has a unique ID number in the body of the event, so is it possible to add a new event to an existing structure? Does the event ID have to be predefined in the game engine or does it just have to be unique? Thanks Yes, you can add as many <event> </event> blocks as you wish, just keep the IDs unique. Adding events is should be quite easy with good XML editor, supporting xsd validation. What you may be missing is documentation regarding 'methods' used in <expression> and <effect> blocks. Without it it's bit difficult to know how many parameters are required for a method and what they mean. I dont know if the txt file documenting these methods was included in the game, if not - I will attach it here (and also try to squeeze it into 1.20 official release). If you want to write your own events, start by looking at the existing ones. When designing this I tried to keep the event syntax as simple and intuitive as possible.
|
|
|
|