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

Trigger and Ability help

Status
Not open for further replies.
Level 12
Joined
Dec 13, 2008
Messages
1,049
I need help with when a specific hero (such as a necromancer) enters a certain region, he will learn a new spell (i figured most of it out, but the conditions are confusing me). In addition, I am making an ability based off of Storm Crow. Pretty much, a hero will morph into a another hero. From this, I want new abilities to be able to be learned (and the old ones to stay with the original hero). However, when the morph happens, the old abilities stay and the new abilities dont come up as an option to research :cry: Thanks to any1 who can help.
 
Level 9
Joined
Nov 28, 2008
Messages
704
That Stormcrow will not allow that, youll ned a transform or trigger type system.

As for your thing.. try this out.

  • Untitled Trigger 001
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Necromancer
    • Actions
      • Unit - Add Devour to (Triggering unit)
Is that what you want? More information, please.
 
Level 19
Joined
Oct 1, 2008
Messages
1,667
There is probably a better way, but for the morph thing, try making a custom trigger spell that replaces the hero with the other hero who will start the game in a small, out of the way area and will be owned by Neutral Passive.
This spell will
- Move the hero to the area
- Move the hero that was originally in the area to the position of the casting unit
- Change ownership of both heroes

Tell me if you want this in GUI
 
I need help with when a specific hero (such as a necromancer) enters a certain region, he will learn a new spell (i figured most of it out, but the conditions are confusing me). In addition, I am making an ability based off of Storm Crow. Pretty much, a hero will morph into a another hero. From this, I want new abilities to be able to be learned (and the old ones to stay with the original hero). However, when the morph happens, the old abilities stay and the new abilities dont come up as an option to research Thanks to any1 who can help.
Why try people such stupid things?

1st: Use the Alchemist Chemics
2nd: Save the spells into variables
3rd: Save the spelllevels into variables

3b: Load the spells of the new hero
3c: Set the spells of the new hero

4th: Wait for the chemics being finished, then

4b: Save the spells of the new hero
4c: Save the spell levels of the new hero

5th: Load old spells and add to the hero
6th: Set the levels for the hero.

I hope you understand it.
 
Level 12
Joined
Dec 13, 2008
Messages
1,049
That Stormcrow will not allow that, youll ned a transform or trigger type system.

As for your thing.. try this out.

  • Untitled Trigger 001
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Necromancer
    • Actions
      • Unit - Add Devour to (Triggering unit)
Is that what you want? More information, please.

Ok, this is what I have so far. However, it isnt working :confused: As you probably guessed, a hero (necromancer) will enter the Necromancer Trainer Region. When he does this, he will learn a new spell (i chose a random custom spell i made). I think the Action part is what is messed up. Also, I want this to work for ANY necromancer, not just one.

  • Necromancer Training
    • Events
      • Unit - A unit enters Necromancer Trainer <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Necromancer
    • Actions
      • Hero - Learn skill for Necromancer 0047 <gen>: Forceful Jab
 
Level 9
Joined
Nov 28, 2008
Messages
704
Yes, do what Anachron said. Trigger Unit instead of Necormancer 0047.

And by doing it his way.. Im pretty sure he means your morph spell.. do it with Chemical Rage.
 
Level 12
Joined
Dec 13, 2008
Messages
1,049
Yes, do what Anachron said. Trigger Unit instead of Necormancer 0047.

And by doing it his way.. Im pretty sure he means your morph spell.. do it with Chemical Rage.

If I use chemical rage however, that means that I can only have 1 morph spell for each hero right (that i want to have a morph spell), or else it will glitch with more than 1 abilities on the same hero based off of chemical rage. And also, i am still confused by what Anachron said above.
 
Level 13
Joined
May 11, 2008
Messages
1,198
i think wereguy2's idea is best for the morphing. i think i could do that myself...i just would need a map to use it on...well i guess you would use this for something like a pokemon duel. or maybe a final fantasy rpg where you can only have maybe 3 party members out of 6 or 9 or something like that.
 
Level 12
Joined
Dec 13, 2008
Messages
1,049
Ok, well, which one of your ideas would glitch? because i do not want glitches to occur, as that would SUCK. If you want a copy of my map so far, I could send it to you.

Edit: I worded that wrong. What I meant to say is that I wanna know if either of your guys' ideas might glitch. The reason for this is because I have been in different RPGs where different spells glitch, and sometimes those glitches kill you :/ and i want to limit this (or eliminate it) as much as possible. So get back to me on this. Also, if one of you would like to do the trigger for me (I am currently leaning towards wereguy2's idea atm), i will send you my map to do it for me. I would give rep and credits as well.
 
Last edited:
Level 19
Joined
Oct 1, 2008
Messages
1,667
I use a spell similar to mine in a map and it works fine (instead of a morph, it is a possession spell with the hero appearing when the possessed unit dies.)
This spell is used on a single unit though (it only appears once) so this one will be more complex...
 
Level 12
Joined
Dec 13, 2008
Messages
1,049
i will give you some time to think about it, and if you want, i can send u the map so you can do the trigger. I would also give more details about the heroes that would do it.
 
Level 12
Joined
Dec 13, 2008
Messages
1,049
Im currently making a full on spell of it :p
Nearly done...

o wow! awesome! if you want, ill send you my map with the additional info of which heroes need the morph spell, and what they will turn into (and also the spells that the morphed heroes will have). i will need to complete that stuff tho if u want me to send the map to ya so u can make the spell on it.
 
Level 13
Joined
May 11, 2008
Messages
1,198
Why try people such stupid things?

1st: Use the Alchemist Chemics
2nd: Save the spells into variables
3rd: Save the spelllevels into variables

3b: Load the spells of the new hero
3c: Set the spells of the new hero

4th: Wait for the chemics being finished, then

4b: Save the spells of the new hero
4c: Save the spell levels of the new hero

5th: Load old spells and add to the hero
6th: Set the levels for the hero.

I hope you understand it.

could you please show how to do these things...as for me, i don't know how to save and load these spells...please explain. the other guy's solution doesn't work very well and honestly i can't figure out how to make a much better version of that. so how do you do this saving and loading?
 
could you please show how to do these things...as for me, i don't know how to save and load these spells...please explain. the other guy's solution doesn't work very well and honestly i can't figure out how to make a much better version of that. so how do you do this saving and loading?

Well about saving and loading:

make 8 variables, while half is named SPELLS_OLD_1-4 and the others are named SPELLS_NEW_1-4. All are arrayed and have an amount of 12 array index.

While triggering chemical rage you save the current spells into that slots, by checking if a unit has that spell.

Just set it like that set SPELLS_NEW_1[Player[GetOwningPlayer(GetTriggerUnit)]] = SPELL 1.

If you finished the spell you only need to remove the OLD spells, and add the NEW ones which have been saved again. don't forget to also save the old ones :p Argh ... Just try it. Its not that hard.
 
Level 12
Joined
Dec 13, 2008
Messages
1,049
Well about saving and loading:

make 8 variables, while half is named SPELLS_OLD_1-4 and the others are named SPELLS_NEW_1-4. All are arrayed and have an amount of 12 array index.

While triggering chemical rage you save the current spells into that slots, by checking if a unit has that spell.

Just set it like that set SPELLS_NEW_1[Player[GetOwningPlayer(GetTriggerUnit)]] = SPELL 1.

If you finished the spell you only need to remove the OLD spells, and add the NEW ones which have been saved again. don't forget to also save the old ones :p Argh ... Just try it. Its not that hard.

is this a trigger? if it is, can u show me how to do it....i am not very good with triggers
 
Status
Not open for further replies.
Top