LucasForums

LucasForums (http://www.lucasforums.com/index.php)
-   Modding forum (http://www.lucasforums.com/forumdisplay.php?f=644)
-   -   Events (http://www.lucasforums.com/showthread.php?t=199912)

TigerAce 08-17-2009 08:20 PM

Events
 
I'm trying to get started scripting my actual mission, but I can't seem to get any events working so I must be doing something wrong.

First I have a "Campaigns_Singleplayer.xml" which loads the events:

Code:

<Rebel_Story_Name>Story_Plots_LOB.xml</Rebel_Story_Name>
In the Plots file I have my active plot:

Code:

<Active_Plot>Story_Campaign_Alliance_1</Active_Plot>
And here is the active plot .XML file which holds the event:

Code:

<Event Name="Universal_Story_Start">
        <Event_Type>STORY_ELAPSED</Event_Type>
        <Event_Param1>0</Event_Param1>
        <Story_Dialog>Dialog_A</Story_Dialog>
        <Story_Chapter>0</Story_Chapter>
        <Story_Tag>Intro_Tag</Story_Tag>
</Event>

Note that I kept standard .XML out of it just for the sake of this post.

This event is not working, it's supposed to trigger after 0 seconds (copied it from a source file) then show "Dialog_A" which is my custom dialog.
I tried other events like revealing planets but none of them worked - so basically I don't even know if the script is read at all.

What am I doing wrong? I checked source files over and over again but I don't see a problem.

http://img140.imageshack.us/img140/5924/123ywr.jpg

edit:

When i'm scripting C-style games I always have to call a thread (Event) before it will run, are these events automatically run when the file is read (unless you have prereqs)?
This could be why nothing is working, then again I haven't found any source files which show that individual events/threads have to be called.


All times are GMT -4. The time now is 05:37 PM.

Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.