- Joined
- May 31, 2019
- Messages
- 150
In an effort to optimize the core systems of My Zerg Campaign and make them easier to maintain, I'm playing around with the idea of using a modified Blizzard.j, rather than have a huge amount of gui triggers needing to be duplicated for each map.
I started by studying how Project Revolution did their Blizzard.j modification, so as to have an idea of where the modifications should be inserted. They basically create a bunch of triggers in globals, and then in the InitBlizzard function, they call a function that add events and actions to their triggers, which serve as a method of calling the various system functions they made.
Now of course, Project Revolution was made for War3 1.21, and I'm working with 1.28 here. So I'm basing my modifications off of 1.28.5's Scripts\Blizzard.j found in War3x.MPQ (since it doesn't use a War3Patch.mpq. Then I plan to include this file in the ZergCampaign's War3Mod.mpq.
I wanted to start with a very simple modification, so I've followed ProjectRevolution's approach and created a trigger, assigned the 'EVENT_PLAYER_UNIT_SPELL_EFFECT' event to it, and added an action that should display a text message to Player(0) if the GetSpellAbilityId() is Wind Walk.
But when I try to start the game with my modified Blizzard.j, it says 'Could not load the map data'.
I assume there's some issue somewhere, but I cant figure out what it might be. Anyone have an idea?
I've attached my script (pies.blizzard.j) and ProjectRevolution's (PR.Blizzard.j) for comparison.
I started by studying how Project Revolution did their Blizzard.j modification, so as to have an idea of where the modifications should be inserted. They basically create a bunch of triggers in globals, and then in the InitBlizzard function, they call a function that add events and actions to their triggers, which serve as a method of calling the various system functions they made.
Now of course, Project Revolution was made for War3 1.21, and I'm working with 1.28 here. So I'm basing my modifications off of 1.28.5's Scripts\Blizzard.j found in War3x.MPQ (since it doesn't use a War3Patch.mpq. Then I plan to include this file in the ZergCampaign's War3Mod.mpq.
I wanted to start with a very simple modification, so I've followed ProjectRevolution's approach and created a trigger, assigned the 'EVENT_PLAYER_UNIT_SPELL_EFFECT' event to it, and added an action that should display a text message to Player(0) if the GetSpellAbilityId() is Wind Walk.
But when I try to start the game with my modified Blizzard.j, it says 'Could not load the map data'.
I assume there's some issue somewhere, but I cant figure out what it might be. Anyone have an idea?
I've attached my script (pies.blizzard.j) and ProjectRevolution's (PR.Blizzard.j) for comparison.