Do you know where i can find the lines of actions of the pre-build action definition I tried to base it on?
As I have no clue how to do these lines. That's why I started with the campaign map, so I can learn by copy and pasting a lot.
I mean, in the function shown in the second screenshot, there is the return option right there in the function definition and so I could add it accordingly.
Can you help me writing these lines of action or is there any tutorial on action definitions so I can understand it?
Oh, ok, i'll add the actions.
First the action how it appears in the second campaign-map and then the action i changed it into:
The original: DominionAttackWaves
Conditions
* Comparison((TriggerIsEnabled((TriggerGetCurrent()))), ==, true)
Actions
* TriggerEnable((TriggerGetCurrent()), false)
* SetAttackWaveParameters()
* AIAttackWaveAddUnits4(0, 2, 4, 5, 6, "Marine")
* AIAttackWaveSend(pLAYER_02_DOMINION, (DifficultyValueInt(400, 400, 225, 180, 160)), true)
The trigger adds a different amount of units to the next attack wave for each difficulty level. But the original action using the action definition "AIAttackWaveAddUnits4" only has the option to set this amount for the pre-built difficulty-levels, not for mine.
So, I tried to add a new field to the bracket, so the action will use my custom difficulty-level I made in the data editor.
But I don't know how to do this properly.
What you can see in the screenshots is my first attempt - the action definition, adding a new integer and the function adding a new integer and a new return option. But that doesn't function the way I hoped it would.
Thanks for your reply
in order to get accustomed to the editor i started messing around with the campaign maps and I created a new difficulty level.
It worked fine and i was able to use it with most other triggers just as a pre-built difficulty.
But i have problems with attack wave triggers, as the trigger I'd like to use and that is used in the campaign is:
and edited the triggers to:
AIAttackWaveAddUnits4(0, 2, 6, 7, 8, "Marine")
AIAttackWaveSend(pLAYER_02_DOMINION, (DifficultyValueInt(400, 400, 210, 180, 160)), true),
but it doesn't work ingame as no attack waves are arriving.
I guess the problem is the first custom action definition, as the "insane count" integer is not referenced anywhere else, but i don't know how to get it to work.
0
I hoped it was :P
Do you know where i can find the lines of actions of the pre-build action definition I tried to base it on? As I have no clue how to do these lines. That's why I started with the campaign map, so I can learn by copy and pasting a lot. I mean, in the function shown in the second screenshot, there is the return option right there in the function definition and so I could add it accordingly.
Can you help me writing these lines of action or is there any tutorial on action definitions so I can understand it?
Thanks a lot :).
0
DominionAttackWaves
Events
Local Variables
Conditions
* Comparison((TriggerIsEnabled((TriggerGetCurrent()))), ==, true)
Actions
* TriggerEnable((TriggerGetCurrent()), false) * SetAttackWaveParameters() * AIAttackWaveAddUnits4(0, 2, 4, 5, "Marine") * AIAttackWaveSend(pLAYER_02_DOMINION, (DifficultyValueInt(400, 400, 225, 180)), true) The edited one:
DominionAttackWaves
Events
Local Variables
Conditions
* Comparison((TriggerIsEnabled((TriggerGetCurrent()))), ==, true)
Actions
* TriggerEnable((TriggerGetCurrent()), false) * SetAttackWaveParameters() * AIAttackWaveAddUnits4(0, 2, 4, 5, 6, "Marine") * AIAttackWaveSend(pLAYER_02_DOMINION, (DifficultyValueInt(400, 400, 225, 180, 160)), true) The trigger adds a different amount of units to the next attack wave for each difficulty level. But the original action using the action definition "AIAttackWaveAddUnits4" only has the option to set this amount for the pre-built difficulty-levels, not for mine. So, I tried to add a new field to the bracket, so the action will use my custom difficulty-level I made in the data editor. But I don't know how to do this properly. What you can see in the screenshots is my first attempt - the action definition, adding a new integer and the function adding a new integer and a new return option. But that doesn't function the way I hoped it would. Thanks for your reply
0
Hi,
in order to get accustomed to the editor i started messing around with the campaign maps and I created a new difficulty level. It worked fine and i was able to use it with most other triggers just as a pre-built difficulty.
But i have problems with attack wave triggers, as the trigger I'd like to use and that is used in the campaign is:
AIAttackWaveAddUnits4(0, 2, 6, 7, "Marine") AIAttackWaveSend(pLAYER_02_DOMINION, (DifficultyValueInt(400, 400, 210, 180)), true),
which both only have 4 values for the pre-built difficulty levels.
So, i tried to create one new action definition and one new function based one the ones used by the campaign:
http://img339.imageshack.us/i/aiwave.jpg/ http://img257.imageshack.us/i/difficultyint.jpg/
and edited the triggers to: AIAttackWaveAddUnits4(0, 2, 6, 7, 8, "Marine") AIAttackWaveSend(pLAYER_02_DOMINION, (DifficultyValueInt(400, 400, 210, 180, 160)), true), but it doesn't work ingame as no attack waves are arriving.
I guess the problem is the first custom action definition, as the "insane count" integer is not referenced anywhere else, but i don't know how to get it to work.
Thanks for your help.