• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

unmerged(243731)

Recruit
1 Badges
Dec 29, 2010
3
0
  • Majesty 2
After playing Majesty 2, I decided that I would like to make my own maps. I got the guide that Hapuga made, and everything worked in the beginning. Then I got to the part where you have the wolves attack your castle. The basic attack worked (the non-looped one) but when I got to the advanced attack part, and edited the trigger the way the guide instructed to, it caused my editor to freeze when I tested the trigger in simulation mode. I've gone back and edited the trigger any way I could think of, but I always got the same result. Any comments on what I might have done wrong would be greatly appreciated. :)
 
First, this is the manual for 1.3 and higher versions. The error may occur when using an earlier version of the game (1.0).

If you are using 1.3, let us go step by step.

You have the simple attack working. This means that modifying the looped one is not a difficult task.

Create a while action, and do as it is said in the manual: while the castle exists. This means Castle =>1, completely built. you may add a zone, but it is not mandatory.
Now, copy and paste your attack to that condition.
Do the same for the delay function.

I hope now it is more clear. You have probably left the other fields empty in the "building exist". I am sorry, for that is probably my mistake, I thought that it is common sense. Well, as we know, common sense is not really common, is it =)

If that does not help and you still crash, the best solution would be to pack the map in the rar archive and attach it so I could look into it and help you out.
 
Thank you for your reply :)
The version of my editor is 1.4.354.0 so we should be good there.
Okay, I have done all of that already. I created the while action, and tried filling in all the other fields. I even changed the 'operation' field, which is what I think you were talking about when you said "Castle =>1" and the editor still crashed. After testing around a bit more, I came to the conclusion that maybe my original "assault" command was the problem, so I deleted it and did it again as the guide instructed, which was a huge mistake because now my simple assault won't even function properly. It doesn't cause the editor to freeze, it just simply doesn't work. :(
If you could look into it, it would help a lot, for I have no idea what the issue is :/ Hope I did this right, first time I've used winrar. I had to download it just so I could do this. View attachment test.rar
 
I see =)

The problem was that your delay action was separated from the while function. It should be hanged under the wile function in the same manner as the attack command. Here how it works.

What you now have is 3 separate commands:
1. Wait 2 days
2. While castle player 1 exists fully built, launch attack on it by wolves
3. Wait 5 seconds

The problem here is that While command (and I think I wrote about it in the manual) is a repetitive function that cannot be switched off. When "While" executes the action tree (all actions that are connected to it) it starts all over again, if the condition is true. This is why While function needs some terminal time frames that would logically tell it for how long the process will last. Do action, wait, do action again. If you do not include time limits, the program will execute the actions repeatedly at the speed of light, eventually crashing.

So u need 2 separate commands only.

1. Wait 2 days
2. While castle player 1 exists fully built, launch attack on it by wolves AND wait 5 seconds

Simply ctrl+x on the delay action and ctrl+v on the while function again. Your action will connect to the branch and all should be fine.

Regards,

Hapuga
 
I can't believe I missed that. Thank you for helping! The good news is, the trigger doesn't crash my editor. The bad news, the trigger doesn't seem to work. After waiting 4 days after the trigger was supposed to have sent the wolves at me and after getting no wolves, I investigated and found that 3 were wandering around the den. One made it half way to the castle, but I think that was just pure wandering. Was there anything else you saw wrong with my trigger when you looked at it?
Edit: Nevermind, I got it all working now, just played around with the trigger some more until I finally got it. Thanks once again for helping an editing noob. :)
 
Last edited: