• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Trying to switch trigger

Status
Not open for further replies.
Level 2
Joined
May 15, 2019
Messages
14
Hi everyone!

Last week I started to edit a well known map Burbenog TD 2.32c editors edition. Just to let you know, my knowledge in this is really basic at the moment.


So I tried to create the blitz mode (double the creeps) from 2.34e legends and right now I am very close to do it.

I kind of made a vote system (not tested yet) that if the majority vote for blitz mode it start the blitz trigger.

There is how it looks (my WE is in french) :

Egal = Equal
Joueur = Player
Partie = Game (or Match)
Declencheur = Trigger
5b5f04_90b45b72b325458bafec332bd32a6e5e~mv2.png
5b5f04_2e4a0864ae61491a9f058a69e4c01c19~mv2.png
5b5f04_abf958cf6fd44e5f88466c9896f15fdc~mv2.png
5b5f04_c0cc5a3074fd4440bc4533d381172c24~mv2.png

5b5f04_ec5ee3a0d59c46b69a0d57b9e13423be~mv2.png


So now when I vote for blitz mode it doubles the creeps but the text (20 per corner) won't change to (40 per corner).

Could someone help me understand how I can make it works?
 
Level 5
Joined
Jul 27, 2017
Messages
73
I don't have the map at the moment but have you looked where this text is printed? Maybe the 20 is just fixed in the text and does not use this variable?
Something like
Display text to force (All Players): Wave [Number of wave]: [Unittype] (20 per corner)
where [Nomber of wave] and [Unittype] represent variables
 
Level 8
Joined
May 21, 2019
Messages
435
First off, just a quick word on how you could have spent a fraction of the time that you did to make this:

What I would do, is run a trigger that loops through Number[] and sets the value of each index to itself times 2.
You can also work this into the names by using concenated strings.
That way, you can make the entire "blitz mode" effect in a 3 line trigger instead of changing the number and name of every single wave 1 by 1.
You also wouldn't have to create an entire second set of "Array Setup" triggers, you could just overwrite them with the blitz mode trigger.

Now, as for the "AttackersName" thing. Where is the names of the units actually set? You don't seem to have included that part. The problem is almost certainly the way in which the names of the units are set. It's very possible that the trigger that renames the units is run before your blitz mode, and that the number of units is loaded when the wave is sent. This way, you are changing the array after it's being used.

It also strikes me as odd that you are enabling/disabling the setups. Does this mean that the main event trigger is trying to run all setups, and you determine which one it should use by virtue of it being unable to run the disabled ones?

Could you try to post the trigger that renames the units? Alternatively, upload your map somewhere, and I will have a look.
 
Status
Not open for further replies.
Top