Jump to content

Recommended Posts

Posted (edited)

The triggers in the list (ME) can't be sorted.

If you afterwards want to add a trigger in the middle of the list, you have to add it at the end and enter all the tiggers one by one till you are at the desired position.

 

I have to add many triggers in all my missions after the patch.

Is it possible to edit the triggers in a sourcefile for a easyer handling?

Edited by =STP= Dragon
Posted

I've been tampering with *units* my Templates.bs and mission.file in a similar fashion, but I've not tested in with triggers.

I was successful at sorting the units by hand.

(I had a group of 99 units - when you template it and replace it back on a map, the sorting is messed up .. twice .. by some odd algorithm)

 

Due to the nature of the ME-functions (maybe the serializer before save) some objects are scrambled in the oddest fashion.

But by the looks of it - it's gets "randomized" in the same fashion every time ... so Im quite interestied in figuring out which order it is, and "unstack/unwind" it back to the original sort with an external function.

 

Sorry for the lenghty answer, but my answer is "yes, it may be possible" .. but I havent tested it with triggers yet :)

The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning

Posted

Ahhhh! Now I understand it!

You open the .miz with WinRAR! Then you can see a file named "mission".

This file you can open with notepad++.

 

There I can see the triggers! Yes this should be possible.

But I have to carefully. If I forget a letter the mission probably crashes.

Posted

Yes, it is just a basic archive file with a different extension. :)

You'll find all sorts of nice content when you start preparing your missions as well - meaning you may be able to copy that content from one mission to another.

Some files may require a tad of editing of course.

The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning

Posted

Nice! I took a look into the sourcecode. The triggers are at the begining and it looks like the numbers in brackets are the possition in the triggerlist (ME).

So I can copy the whole lines of the triggers to the right position and count the numbers again. (at the beginning and at the end of every trigger).

 

Right?

Posted

There's more than one section, a brief look shows there's at 3 sections tied together.

I assume section 1 or 3 decides the sort order - but also, the number (ID) attached to the trigger must be readjusted.

So you must keep all the ID's in sync.

DISCLAIMER: I'm just guessing here - let's hear it from you if you get it sorted :)

 

post-1-1249644507.jpg

The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning

Posted

In my missions it looks different:

 

triggeru.jpg

 

The flags in my triggers are different..... They are not in the brackets.

In my case I think I only have to count the numbers again.

Posted

To get the color coding / brackets and "auto-sectioning" go to the Language menu and select LUA as language.

Then you can use the "-" and "+" on the left hand side to minimize the other sections that you dont want to see. :)

The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning

Posted (edited)

Yes thx... but this is not what I mean.

Your flags are displayed in brackets:

mission.trigflag[1]=true

 

In my missions my flags are includet in the code:

then a_set_flag(\"1\")

 

So I think it is not nesessary to edit the other sections you listed.

I think I only have to count the TriggerIDs I marked red.

 

 

Edit:

 

I see... the trigrules = also have to counted....

Edited by =STP= Dragon
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...