• 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.

Trigerrom comments and magic transformation

Status
Not open for further replies.
Level 5
Joined
Jun 4, 2016
Messages
62
I had a few problems when working in the editor.

1. I created a card for a trigger by which characters are entered in the correct zone commented on his entering into it. I got it but the characters speak their phrases every time I come into this area and, therefore, the phrase can be repeated 2-3 times and one fight in the battle because it is impossible to stand still and even if you just need to sell too much then again have to go through this zone.
I configure the triggers as follows:
The detachment is part of the zone (Zone Name).
(Random warrior controlled by the player) is (red).
Comments (name of Hero) (phrase) and (wait 20 seconds).

2. I have tried to create a transformation spell the editor of the usual monsters and textures. I took Hunter to level 6 Demons and gave him a spell, "Wolf Look" which changed only paragraph (Alternative version - Wolf) but he turned first to a simple Demon Hunter but with modified (for some strange principle) parameters. A minute later, he became the Wolf but he could not cast as when using a conventional transformation of the demon hunter. Once I passed another minute he turned (forever since left the effect of a period) in Demon Hunter 1 level with it with a different name so my first character simply disappeared after that spell. (Just out of his bag fell all subjects More before he became the Wolf.)
 
Last edited by a moderator:
Level 24
Joined
Aug 1, 2013
Messages
4,658
1, Remove the russian part.
Those that can read russian here can also read english.

1, Real
Post your triggers in [TRIGGER][/TRIGGER] tags.

2, Post your triggers if you have any.
Also upload an image of the Object Editor of your transformation spell. (You can use imgur.com if you need a good image hosting website.)
 
Level 4
Joined
Jul 26, 2016
Messages
88
@Lodnar you can either save a hashtable value or change the custom value of the unit in a way like so:

unit enters region

if custom value for triggering unit == 0
make it play its comment
set custom value for triggering unit = 1​

that way, they will only comment the first time they come into the region, as their custom value was 0, commenting makes their custom value equal to 1, so re-entering the region will fire the trigger again, but they won't pass the value check, hence, not playing their comment


For you transformation spell i'm not sure. Maybe look into the Chaos ability + triggers
 
Level 12
Joined
Jun 15, 2016
Messages
472
For the first problem you can remove the region with a custom script after use. If you need it for multiple uses just create a Boolean variable and set it to true as a condition to stop the comment.
 
Level 5
Joined
Jun 4, 2016
Messages
62
1, Remove the russian part.
Those that can read russian here can also read english.

1, Real
Post your triggers in [TRIGGER][/TRIGGER] tags.

2, Post your triggers if you have any.
Also upload an image of the Object Editor of your transformation spell. (You can use imgur.com if you need a good image hosting website.)
For the first problem you can remove the region with a custom script after use. If you need it for multiple uses just create a Boolean variable and set it to true as a condition to stop the comment.

@Lodnar you can either save a hashtable value or change the custom value of the unit in a way like so:

unit enters region

if custom value for triggering unit == 0
make it play its comment
set custom value for triggering unit = 1​

that way, they will only comment the first time they come into the region, as their custom value was 0, commenting makes their custom value equal to 1, so re-entering the region will fire the trigger again, but they won't pass the value check, hence, not playing their comment


For you transformation spell i'm not sure. Maybe look into the Chaos ability + triggers
Not quite sure where it is but I'll try to set up so if another process does not happen.
For the first problem you can remove the region with a custom script after use. If you need it for multiple uses just create a Boolean variable and set it to true as a condition to stop the comment.
I assumed that this could be done. I'll try to configure. Thank you.
 
Level 5
Joined
Jun 4, 2016
Messages
62
Areas can try for a week to get the meantime I will do magic on.

One problem reshena.Posle attempts to create a transformation from a spell Kibergolbin, Elixir rage and Pervraschenie Demon Hunter yamne got the idea to do the conversion is not a call for a substitution based on three elements. I replaced the 3 pandas at the wolf. Experience in this form dial up but you can make a couple of spells available only in the image. And the items out of the bag does not jump. ._.
 
Level 5
Joined
Jun 4, 2016
Messages
62
For the first problem you can remove the region with a custom script after use. If you need it for multiple uses just create a Boolean variable and set it to true as a condition to stop the comment.
Do not tell me the name of the trigger to disable or destroy areas. I could not find this is not the name searched.
 
Level 5
Joined
Jun 4, 2016
Messages
62
Yeah if you want to destroy the region you need to write a custom script to destroy the location (or rect)

It should look like this
  • Custom script: call RemoveRect (udg_your location goes here)
In parentheses is necessary to write the name of the field? The custom scripts need somewhere to specify the name of the field or it will destroy / disable indication of the region in events that entered the characters?
 
Level 12
Joined
Jun 15, 2016
Messages
472
Inside the parentheses after udg_ write the name of the region you want to destroy. Let's say I want to destroy a region called "example123", the script wil look like this:

  • Custom script: call RemoveRect (udg_example123)
 
Level 5
Joined
Jun 4, 2016
Messages
62
Did you try assigning that region to a variable then using the custom script?
As these variables work, and where and how to configure \ create?

Now trigger looks like this:
The detachment included in the zone - the zone name.

A random player of the controlled person is red.

Transfer all the players from the casual player is under the control of man, switching unit. By Name - Name, Show in IM message that I wrote.

Personal script: call RemoveRect (udg_Vxod) [offline due to an error]
 
Level 8
Joined
Jan 28, 2016
Messages
486
Pretty sure this isn't working because the custom script is to remove rects and you're using GUI regions.

Rect =/= region in Jass. Try this instead:
native RemoveRegion takes region whichRegion returns nothing

Edit:
  • Custom Trigger
    • Events
    • Conditions
    • Actions
      • Custom script: call RemoveRegion( udg_Log )
 
Last edited:
Level 5
Joined
Jun 4, 2016
Messages
62
Pretty sure this isn't working because the custom script is to remove rects and you're using GUI regions.

Rect =/= region in Jass. Try this instead:
native RemoveRegion takes region whichRegion returns nothing

Edit:
  • Custom Trigger
    • Events
    • Conditions
    • Actions
      • Custom script: call RemoveRegion( udg_Log )
I'll try if I can find. Tomorrow internet disconnect and then if that will try to copy someone else's maps with a trigger and peredalat under his if it does not understand.
 
Status
Not open for further replies.
Top