Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Adding Events

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [World War II] >> WW2: Road to Victory >> Mods and Scenarios >> Adding Events Page: [1]
Login
Message << Older Topic   Newer Topic >>
Adding Events - 8/7/2008 3:22:01 PM   
ebitt


Posts: 11
Joined: 6/22/2006
From: Weston Turville, UK
Status: offline
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







Attachment (1)

_____________________________

Ed
Post #: 1
RE: Adding Events - 8/7/2008 3:24:08 PM   
doomtrader


Posts: 5321
Joined: 7/22/2008
From: Poland
Status: offline
It has to be unique.

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

_____________________________


(in reply to ebitt)
Post #: 2
RE: Adding Events - 8/7/2008 3:58:34 PM   
ebitt


Posts: 11
Joined: 6/22/2006
From: Weston Turville, UK
Status: offline
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.

_____________________________

Ed

(in reply to doomtrader)
Post #: 3
RE: Adding Events - 8/7/2008 4:02:35 PM   
doomtrader


Posts: 5321
Joined: 7/22/2008
From: Poland
Status: offline
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.

_____________________________


(in reply to ebitt)
Post #: 4
RE: Adding Events - 8/7/2008 4:31:10 PM   
comrade

 

Posts: 167
Joined: 6/7/2006
Status: offline

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.

_____________________________


(in reply to ebitt)
Post #: 5
RE: Adding Events - 8/7/2008 4:55:01 PM   
ebitt


Posts: 11
Joined: 6/22/2006
From: Weston Turville, UK
Status: offline
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

_____________________________

Ed

(in reply to comrade)
Post #: 6
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [World War II] >> WW2: Road to Victory >> Mods and Scenarios >> Adding Events Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

3.813