Hi, everyone. While I managed to get some coop triggers working, there're still some which I can't seem to figure out. What I'm trying to do now is to have Dehaka as a heroic unit in an extension mod (not even called "Dehaka") and I can't get him to have his veterancy behaviour, which makes him get bigger and bigger, get stronger and spend skill points.
I don't need the whole essence stuff, only him getting exp when he kills (which I know I have to change myself), but I'd like to keep everything else from the already made coop triggers.
I'm still fairly new to the editor and to triggers especially, and a little bit of help from you guys would be really, really appreciated :)
Dear Camilaa45334! The task is actually average, but there are a lot of features. Depending on where you plan to develop the topic. I hope the translator will convey my idea well, because I am a native speaker of another language.
You need to track in Events: Any Unit dies In Actions, make a check through If: the one who kills the unit is equal to Dehaka, Then
- !be sure to record the number of kills in a variable in order to process it later.
- you can directly make changes from the trigger to the data of the unit (immediately change the life), but I did it through my functions, since I needed to change the lives of any unit on the map. You can do without it (functions). This is also why I have a unit race index, since I did not take into account a specific unit, but any.
- I have comments in Russian, unfortunately
You may also need: - change the size of the unit (there is an example, do not forget that the unit has 3 parameters - width, length, height, and you need to divide the indicator by 0.3333) - change the radius of the unit (this is important, since the unit can become very large) - change its movement speed (it will seem that a large unit moves slowly, in fact, this animation adjusts to the size of the unit) (similar to life) - attack power, including for different types of unit (there is an example, you will need a benavior in Date) - attack speed (there is an example) - armor (there is an example) - amount of maximum energy (similar to life) - the amount of maximum life (there is an example) - attack range if needed - either add any types of attack and so on
Wow, thanks¡. Really appreciate that. I've also joined the discord, so thank you for that too. I was thinking this place seemed a bit dead too xd. Don't worry, your idea was conveyed properly :)
I'm so new with triggers so all of this seems quite strange for me, but I'll look at your attachment. And I suppose I can create a veterancy behaviour in data and make it so that the triggers activate it at the same time they make Dehaka bigger and stronger...?
Hello my friend, thanks for sharing it with us. I was searching for it for so long and I am so happy I found your post. When I was looking for it on google search, I also found https://www.grabmyessay.com/assignment-writing-services website where I found a lot of assignment writing services and now I won't take a lot of time to submit my assignments.
I am glad if the example helped to understand. For the first time the example is complicated, but if you analyze it in detail, you will learn how to use functions, global and local variables, how to use message debugging, how to change unit data in the Date and how to use attributes (Mod - Game Attributes).
The example shows the changes to any unit (including a building) that killed an enemy. If you need to somehow restrict the change of a specific unit, you can use the "if - then" check, including saving a specific unit from the Date to a local variable for check. You can also make a change by events: - at the end of time (timer) - for a constant period of time (periodic timer), - upon the appearance of a certain unit or upgrade from the enemy, - by the appearance of a unit in a certain region, etc.
Yep, You can change: - unit size. Since the size changes along the X Y Z axes, it is necessary to subtract the root of three (this is shown in the "getSizeUnit"). It would also be nice to change the radius of the unit slightly in "getRadiusUnit", - maximum life, shields, unit energy, - the speed of restoration of life, shields and energy of the unit, - armor for life and shields, - movement speed, - you can even add some points or resources if your unit kills the enemy. It will be necessary to check: the event unit died on the map, if it was killed by a unit such and such, then give resources. - in the future, you will be able to upgrade the unit with abilities and effects, having previously created them ("getBehavior").
You will succeed. Dare!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi, everyone. While I managed to get some coop triggers working, there're still some which I can't seem to figure out. What I'm trying to do now is to have Dehaka as a heroic unit in an extension mod (not even called "Dehaka") and I can't get him to have his veterancy behaviour, which makes him get bigger and bigger, get stronger and spend skill points.
I don't need the whole essence stuff, only him getting exp when he kills (which I know I have to change myself), but I'd like to keep everything else from the already made coop triggers.
I'm still fairly new to the editor and to triggers especially, and a little bit of help from you guys would be really, really appreciated :)
Dear Camilaa45334!
The task is actually average, but there are a lot of features. Depending on where you plan to develop the topic.
I hope the translator will convey my idea well, because I am a native speaker of another language.
You need to track in Events: Any Unit dies
In Actions, make a check through If: the one who kills the unit is equal to Dehaka, Then
- !be sure to record the number of kills in a variable in order to process it later.
- you can directly make changes from the trigger to the data of the unit (immediately change the life), but I did it through my functions, since I needed to change the lives of any unit on the map. You can do without it (functions). This is also why I have a unit race index, since I did not take into account a specific unit, but any.
- I have comments in Russian, unfortunately
You may also need:
- change the size of the unit (there is an example, do not forget that the unit has 3 parameters - width, length, height, and you need to divide the indicator by 0.3333)
- change the radius of the unit (this is important, since the unit can become very large)
- change its movement speed (it will seem that a large unit moves slowly, in fact, this animation adjusts to the size of the unit) (similar to life)
- attack power, including for different types of unit (there is an example, you will need a benavior in Date)
- attack speed (there is an example)
- armor (there is an example)
- amount of maximum energy (similar to life)
- the amount of maximum life (there is an example)
- attack range if needed
- either add any types of attack and so on
I sent you an example file. You will have to parse it in detail and translate the comments. https://drive.google.com/file/d/1u5J0DEGEJWrNEOOfZFqizcvvjkf_mt5u/view?usp=sharing
Also, this site is a little empty xD
True, the site has an excellent database of topics. Now most people sit in Discord https://discord.gg/6bJEUN6P from this site. You can find me there too.
Although I mostly belong to another Discord server (Russian).
I hope this example will help you understand your question a little!
Wow, thanks¡. Really appreciate that. I've also joined the discord, so thank you for that too. I was thinking this place seemed a bit dead too xd. Don't worry, your idea was conveyed properly :)
I'm so new with triggers so all of this seems quite strange for me, but I'll look at your attachment. And I suppose I can create a veterancy behaviour in data and make it so that the triggers activate it at the same time they make Dehaka bigger and stronger...?
Hello my friend, thanks for sharing it with us. I was searching for it for so long and I am so happy I found your post. When I was looking for it on google search, I also found https://www.grabmyessay.com/assignment-writing-services website where I found a lot of assignment writing services and now I won't take a lot of time to submit my assignments.
In reply to altonnugen:
I am glad if the example helped to understand.
For the first time the example is complicated, but if you analyze it in detail, you will learn how to use functions, global and local variables, how to use message debugging, how to change unit data in the Date and how to use attributes (Mod - Game Attributes).
The example shows the changes to any unit (including a building) that killed an enemy. If you need to somehow restrict the change of a specific unit, you can use the "if - then" check, including saving a specific unit from the Date to a local variable for check.
You can also make a change by events:
- at the end of time (timer)
- for a constant period of time (periodic timer),
- upon the appearance of a certain unit or upgrade from the enemy,
- by the appearance of a unit in a certain region, etc.
Yep, You can change:
- unit size. Since the size changes along the X Y Z axes, it is necessary to subtract the root of three (this is shown in the "getSizeUnit"). It would also be nice to change the radius of the unit slightly in "getRadiusUnit",
- maximum life, shields, unit energy,
- the speed of restoration of life, shields and energy of the unit,
- armor for life and shields,
- movement speed,
- you can even add some points or resources if your unit kills the enemy. It will be necessary to check: the event unit died on the map, if it was killed by a unit such and such, then give resources.
- in the future, you will be able to upgrade the unit with abilities and effects, having previously created them ("getBehavior").
You will succeed. Dare!