Hello and welcome, Altarim!
First, I invite you to read the editor's manual to know how to create a hero gate (and not portal) that can be collapsed or not.
Next, to make the "Trigger single hero invasion" and "Trigger continual hero invasion", you simply have to do the followings:
For "Trigger single invasion":
1. Right-click on "Player" Keeper in the script tree
2. Select "Add trigger"
3. Click on the "GUI" tab
4. Select "Button Pressed" for the first dropdown list, "Misc Button" for the second one and "MPD Single Invasion" for the third, then click OK
5. Right-click on the new trigger you added
6. Select "Add action"
7. Click on the "Party" tab
8. Select the Hero Party you want to add and which action point, then be sure to check "Invasion Party". If you want random heroes, check "Random Creature Types" also, which is recommended for a MPD level. Click OK when you're done
If you want the game to zoom at the hero gate, do the next steps:
9. Repeat step 5 and 6
10. Click on the "AP" tab
11. Select "Zoom to Action Point" in the dropdown list and select the same action point you used for the hero gate, then click OK
You're done!
You should get this in your script tree:
For "Trigger continual invasion":Code:When Button [ Misc Button - MPD Single Invasion ] Clicked ├ Create Invasion Party x At AP y[IP - Random ] (x and y being numbers) └ Zoom to AP y
1. Repeat steps 1, 2 and 3 above
2. Select "Button Pressed" for the first dropdown list, "Misc Button" for the second one and "MPD Continual Invasion" for the third, then click OK
3. Right-click on the new trigger you added
4. Select "Add action"
5. Click on the "Flag" tab
6. Set an unused flag to be equal to 0. For example, select "Flag 1", "Equal" and "0", then click OK
7. Repeat step 3
8. Select "Add trigger"
9. Click on the "Flag" tab
10. Here, you have to use another flag for when it is equal to 0. For example, select "Flag 2", "Equal to" and "0", then click OK
11. Right-click on that new trigger
12. Select "Add action"
13. Click on the "Flag" tab
14. Set "Flag 1" to be equal to 1, then create another action to set the "Flag 2" to be equal to 1.
15. Repeat steps 7, 8 and 9 (for step 7 that points to step 3, you must right-click on the first trigger, the one that tells when the button is clicked)
16. Do the same as step 10, but for "Flag 1"
17. Right-click on that new trigger then do the same once again, but for "Flag 2" and when the value is equal to 1.
18. Add an action to that trigger that sets the Flag 2 to 0.
19. Finally, right-click on "Player" Keeper
20. Select "Add trigger"
21. Click the "Flag" tab
22. Select "Flag 2", "Equal to" and "1", then click OK
23. Right-click on that trigger
24. Select "Add action"
25. Click on the "Party" tab
26. Do the same thing as if you wanted to created a hero invasion like I explained earlier
You're done!
You should get this in your script tree:
Hope that helps!Code:When Button [ Misc Button - MPD Continual Invasion ] Clicked ├ Flag 1 = 0 ├ When Flag 2 = 0 │ ├ Flag 1 = 1 │ └ Flag 2 = 1 └ When Flag 1 = 0 └ When Flag 2 = 1 └ Flag 2 = 0 When Flag 2 = 1 └ Create Invasion Party x at AP y[IP - Random ] (again, x and y being numbers)![]()




Reply With Quote


