Basically, here's my problem. I want to make a behavior sort of like the Psi-Destruptors range that affects units that enter it. I'ved used the Psi-Disruptor's behavior to test things out.
Now, I have the range down, but what I want to have happen, is the range actually increasing and decreasing throughout the duration of the game, but I'm unaware of how to do this, as all the range properties needed are located in the Data editor and I haven't been able to find a trigger that allows you to change the Search Area of an effect. Does this exist somewhere? Any help would be greatly appreciated, as it's an important aspect of a mission I am in process of making.
Rollback Post to RevisionRollBack
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
No, there is no trigger within the triggers window that can change the range of a search area effect, or change a search area effect directly. However! you may be able to do so indirectly by issuing an order between two abilities, one that that add buffs that increase the range of the search area, and the other to remove those buffs thus decreasing your range. This is the method I would be more likely to use.
If you want to achieve this through mostly triggers, then you can use the distance between a unit within some massive region and the distance of that unit from the center of that region, or just a point for that matter, it depends upon the event that you choose. Within the comparison between the unit in question, and the center of the region, you can then modify a variable that can set the range of your ability to expand and contract. Then add those units within a certain distance to be effected by the ability, and then remove it when they are further than the current range of the ability.
Either way works, but data in my experience is just more reliable and more optimized once you have something working.
Are you certain that a "Catalog Field Value Set" trigger would not work?
Ofcourse it would affect all Psi Disrupters for the given player, if it works at all.
All the Psi-Disrupters are owned by the same player anyway, so that's completely fine.
I'll try to take a look at the Catalog Field Value Set, and see if I can do something abou this too.
Rollback Post to RevisionRollBack
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
No, there is no trigger within the triggers window that can change the range of a search area effect, or change a search area effect directly.
The catalog natives allow you to directly change the area of search effects with triggers. The following line of GUI changes the area of the High Templar Psionic Storm to 50.
Catalog - Set value of Effects PsiStormSearch AreaArray[0].Radius for player (Triggering player) to "50"
It really is that simple. The catalog natives allow you read access to every field in the data editor but only "upgradeable" fields (fields that can be modified with upgrades) support writing to with the set native.
It should be noted that the field parameter does not default to the entry type of the entry field. As such you manually need to select Search for it so that the right fields are choose-able. Alternatively you can write the field path as a custom script string using XML view in the data editor to find the field structure.
Thanks for all the help so far. The Psi-Disrupter range works now.
Now, one final touch I want to add is for the player to actually be able to see the current range on the minimap. Sort of like a sensor tower, and thus is the reason why I have now added the sensor tower radar as a behavior to the Psi-Disrupter.
Now, I tried using the same method to changing the range with what I have learned from the previous Catalogs. It didn't work though, and the radar doesn't update. These are the two triggers I have added.
Catalog - Set value of Actors SensorTowerRadar Range for player 0 to "12"
Catalog - Set value of Behaviors SensorTowerRadar Modification.Radar for player 0 to "12".
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Rather random but nevertheless important info: Some catalog fields are read only and can not be modified by catalog field value set.
Yes that cannot be stressed enough. Which is why I also mentioned it earlier!
Quote:
It really is that simple. The catalog natives allow you read access to every field in the data editor but only "upgradeable" fields (fields that can be modified with upgrades) support writing to with the set native.
If you can make an upgrade for it then a catalog can modify it. Certainly a huge improvement over WC3 which did not support anything like it.
Basically, here's my problem. I want to make a behavior sort of like the Psi-Destruptors range that affects units that enter it. I'ved used the Psi-Disruptor's behavior to test things out.
Now, I have the range down, but what I want to have happen, is the range actually increasing and decreasing throughout the duration of the game, but I'm unaware of how to do this, as all the range properties needed are located in the Data editor and I haven't been able to find a trigger that allows you to change the Search Area of an effect. Does this exist somewhere? Any help would be greatly appreciated, as it's an important aspect of a mission I am in process of making.
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Starcraft II: A War Story Campaign - A multi-act campaign with custom factions. Follow my discord for updates: https://discord.gg/Ztu44gZ
If you want to see a list of other awesome campaigns, go to: Custom Campaign Initiative
@DudkiSC2: Go
No, there is no trigger within the triggers window that can change the range of a search area effect, or change a search area effect directly. However! you may be able to do so indirectly by issuing an order between two abilities, one that that add buffs that increase the range of the search area, and the other to remove those buffs thus decreasing your range. This is the method I would be more likely to use.
If you want to achieve this through mostly triggers, then you can use the distance between a unit within some massive region and the distance of that unit from the center of that region, or just a point for that matter, it depends upon the event that you choose. Within the comparison between the unit in question, and the center of the region, you can then modify a variable that can set the range of your ability to expand and contract. Then add those units within a certain distance to be effected by the ability, and then remove it when they are further than the current range of the ability.
Either way works, but data in my experience is just more reliable and more optimized once you have something working.
Hope that helps! :)
@joecab: Go
Are you certain that a "Catalog Field Value Set" trigger would not work?
Ofcourse it would affect all Psi Disrupters for the given player, if it works at all.
@joecab: Go
The first method seems to be a little simpler. I want to try it out, but how exactly should I accomplish this? Unfortunately, the data editor is not really my forté so I don't know exactly how I need to get this working. Should I add a new behavior that increases its range, and how do I set it up so it actually connects to the Psi-Disrupter's Search Area etc.
All the Psi-Disrupters are owned by the same player anyway, so that's completely fine. I'll try to take a look at the Catalog Field Value Set, and see if I can do something abou this too.
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Starcraft II: A War Story Campaign - A multi-act campaign with custom factions. Follow my discord for updates: https://discord.gg/Ztu44gZ
If you want to see a list of other awesome campaigns, go to: Custom Campaign Initiative
The catalog natives allow you to directly change the area of search effects with triggers. The following line of GUI changes the area of the High Templar Psionic Storm to 50.
Catalog - Set value of Effects PsiStormSearch AreaArray[0].Radius for player (Triggering player) to "50"
It really is that simple. The catalog natives allow you read access to every field in the data editor but only "upgradeable" fields (fields that can be modified with upgrades) support writing to with the set native.
It should be noted that the field parameter does not default to the entry type of the entry field. As such you manually need to select Search for it so that the right fields are choose-able. Alternatively you can write the field path as a custom script string using XML view in the data editor to find the field structure.
Made a small test map to check this out and it seem to work.
Write 10 in game and the Psi Disrupter radius changes to 10, 20 to get radius 20 and 40 to radius 40
The trigger changes both the effect and the range of actor (the white circle)
Hope this is what you were looking for.
Thanks for all the help so far. The Psi-Disrupter range works now.
Now, one final touch I want to add is for the player to actually be able to see the current range on the minimap. Sort of like a sensor tower, and thus is the reason why I have now added the sensor tower radar as a behavior to the Psi-Disrupter.
Now, I tried using the same method to changing the range with what I have learned from the previous Catalogs. It didn't work though, and the radar doesn't update. These are the two triggers I have added.
Catalog - Set value of Actors SensorTowerRadar Range for player 0 to "12"
Catalog - Set value of Behaviors SensorTowerRadar Modification.Radar for player 0 to "12".
What am I doing wrong here?
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Starcraft II: A War Story Campaign - A multi-act campaign with custom factions. Follow my discord for updates: https://discord.gg/Ztu44gZ
If you want to see a list of other awesome campaigns, go to: Custom Campaign Initiative
Player 0 is not a human player. It is a neutral player. Player 1 is the first human player. I am not sure why they did that.
@ImperialGood: Go
Ah, that worked! Thank you :D
I found it pretty odd though, since the Psi-Disrupter range did end even though I chose player 0, but heck, as long as it works now, I'm pleased.
StarCraft II: Annihilation Campaign - A 24 mission single-player campaign featuring unique heroes, custom tracks, boss battles, a varied set of mission scenarios and three intersecting storylines.
Starcraft II: A War Story Campaign - A multi-act campaign with custom factions. Follow my discord for updates: https://discord.gg/Ztu44gZ
If you want to see a list of other awesome campaigns, go to: Custom Campaign Initiative
Rather random but nevertheless important info: Some catalog fields are read only and can not be modified by catalog field value set.
Yes that cannot be stressed enough. Which is why I also mentioned it earlier!
If you can make an upgrade for it then a catalog can modify it. Certainly a huge improvement over WC3 which did not support anything like it.