Adding Events (Full Version)

All Forums >> [Current Games From Matrix.] >> [World War II] >> WW2: Road to Victory >> Mods and Scenarios



Message


ebitt -> Adding Events (8/7/2008 3:22:01 PM)

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




[image]local://upfiles/21198/459ABE0F536F46E8B89E6027FA0488C5.jpg[/image]




doomtrader -> RE: Adding Events (8/7/2008 3:24:08 PM)

It has to be unique.

ATM I don't remember should it be consecutive.
For sure comrade will answer.




ebitt -> RE: Adding Events (8/7/2008 3:58:34 PM)

Impressive support!  Thanks for the quick reply.  This has been £20 well spent and I am sure that the game will get better and better.




doomtrader -> RE: Adding Events (8/7/2008 4:02:35 PM)

You know. Making games is our passion. Really!
I've also some forumitee background, so hanging around is a real pleasure, especialy when seeing such great community.




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.




ebitt -> RE: Adding Events (8/7/2008 4:55:01 PM)

No problems!  I am using the file which was included in the doc folder which shows (I think) only two methods not implemented.  Also, is the DTD on your public site still current?  The date looked suspiciously old.

METHOD
Commander.ChangeLevel
NIE ZAIMPLEMENTOWANE
===========================================================================
METHOD
Commander.SetLevel
NIE ZAIMPLEMENTOWANE




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.7666016