News:

And we're back!

Main Menu

Why won't this event work?

Started by jimmy olsen, May 06, 2009, 06:55:08 PM

Previous topic - Next topic

jimmy olsen

It says the line with the name has an error but it looks fine to me. :mad:

#########################################################################
#  Lizard Jet Shot Down
########################################################################
event = {
   id = 300114
   random = yes
   
   trigger = { atwar = U00 } }

       name = "Lizard Jet Shot Down!"
       desc = "A Lizard jet was shot down. Our   
       scientists have found it relatively intact, and
       gleaned many secrets from it."
       style = 0

   date = { day = 0 month = january year = 1936 }
   offset = 1
   deathdate = { day = 30 month = december year = 1953 }
   
   action_a = {
      name = "Lizard jet reverse engineered"

   command = { type = gain_tech which = 5570 }

   }
}
It is far better for the truth to tear my flesh to pieces, then for my soul to wander through darkness in eternal damnation.

Jet: So what kind of woman is she? What's Julia like?
Faye: Ordinary. The kind of beautiful, dangerous ordinary that you just can't leave alone.
Jet: I see.
Faye: Like an angel from the underworld. Or a devil from Paradise.
--------------------------------------------
1 Karma Chameleon point

Darth Wagtaros

I think the main problem is that series went to suck.
PDH!

Caliga

try it without the exclamation point.
0 Ed Anger Disapproval Points

ulmont

Quote from: jimmy olsen on May 06, 2009, 06:55:08 PM
   trigger = { atwar = U00 } }

This is your problem.  Take out the second }, so it looks like

   trigger = { atwar = U00 }

You = fail.

jimmy olsen

Quote from: ulmont on May 06, 2009, 07:11:33 PM
Quote from: jimmy olsen on May 06, 2009, 06:55:08 PM
   trigger = { atwar = U00 } }

This is your problem.  Take out the second }, so it looks like

   trigger = { atwar = U00 }

You = fail.
It seems you're right, thanks. But I don't get it, the last two I wrote needed that to work.  :huh:
It is far better for the truth to tear my flesh to pieces, then for my soul to wander through darkness in eternal damnation.

Jet: So what kind of woman is she? What's Julia like?
Faye: Ordinary. The kind of beautiful, dangerous ordinary that you just can't leave alone.
Jet: I see.
Faye: Like an angel from the underworld. Or a devil from Paradise.
--------------------------------------------
1 Karma Chameleon point

ulmont

Quote from: jimmy olsen on May 06, 2009, 07:16:35 PM
It seems you're right, thanks. But I don't get it, the last two I wrote needed that to work.  :huh:

No they didn't.  The { } have to be balanced.  In your broken example, you opened one after the event, then another when you start the trigger, and then closed both of them after the atwar test, which ended the event.  Then the game sees the name line and doesn't know what to do with it since the game isn't in the middle of reading an event.

Your other events might have had something like

   trigger = { NOT = { InCabinet = 21117 } }

Here, there are 2 left and 2 right braces, which is the way your trigger should be.

Neil

Insufficient dreadnoughts.

And BTW:  :bleeding:
I do not hate you, nor do I love you, but you are made out of atoms which I can use for something else.

ulmont

Quote from: Neil on May 06, 2009, 07:21:21 PM
And BTW:  :bleeding:

Yes.  :bleeding:  I feel kinda bad for helping fix that particular event.

Galrion

 :huh:

Is there a mod for that series?

jimmy olsen

Quote from: Galrion on May 06, 2009, 08:54:30 PM
:huh:

Is there a mod for that series?
A dead beta that I've been fiddling with.
It is far better for the truth to tear my flesh to pieces, then for my soul to wander through darkness in eternal damnation.

Jet: So what kind of woman is she? What's Julia like?
Faye: Ordinary. The kind of beautiful, dangerous ordinary that you just can't leave alone.
Jet: I see.
Faye: Like an angel from the underworld. Or a devil from Paradise.
--------------------------------------------
1 Karma Chameleon point

PDH

Jesus Christ...I wish I had mod powers so I could ban you for this thread.
I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth.
-Umberto Eco

-------
"I'm pretty sure my level of depression has nothing to do with how much of a fucking asshole you are."

-CdM

katmai

Quote from: PDH on May 06, 2009, 10:42:02 PM
Jesus Christ...I wish I had mod powers so I could ban you for this thread.

:whistle:
Fat, drunk and stupid is no way to go through life, son

Viking

First Maxim - "There are only two amounts, too few and enough."
First Corollary - "You cannot have too many soldiers, only too few supplies."
Second Maxim - "Be willing to exchange a bad idea for a good one."
Second Corollary - "You can only be wrong or agree with me."

A terrorist which starts a slaughter quoting Locke, Burke and Mill has completely missed the point.
The fact remains that the only person or group to applaud the Norway massacre are random Islamists.

Alatriste

Lizard Jets? I don't know which game the event belongs to, but the event needs Lizard Sharks for balance...

Darth Wagtaros

Well Tim, maybe if you had helped me make a hard decision in the D&D thread I'd be of more help in this one.
PDH!