• 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] Tricky Trigger

Status
Not open for further replies.
Level 36
Joined
Nov 24, 2007
Messages
4,404
Ok, as said in the above; this is going to be a tricky one, and im not sure if its possible or not. But, In y map you choose a hero in the beginning, and play that, up to 10 lvls, and now is the hard part comming, you see, i want the player to be able to choose one of two new heroes when he reach lvl 10, from a tavern. And the point is that you have to wait till he is lvl 10 and that he is that exact hero, cause, its like 8 classes, which all got their new direction, an exaple is:

You pick a "Warrior" in the start, and when he reaches lvl 10 you go to a tavern and he can choose if he wanna become a "Knight" or a "Berserker" two new heroes, starting in lvl 1 once again.

I really hope anyone can help me cause i really need this to get my map done, so PLEASE:D:D:D
 
Level 24
Joined
May 9, 2007
Messages
3,563
Oooo. Tricky.

Will see about uploading the trigger in one sec.

Three triggers.

  • Your Skill
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Hero level of (Triggering unit)) Equal to 10
    • Actions
      • Unit - Add Knight to (Triggering unit)
      • Unit - Add Berzerker to (Triggering unit)
  • Your Skill 2
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Knight
    • Actions
      • Unit - Replace (Triggering unit) with a Knight using The old unit's relative life and mana
  • Your Skill 3
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Berzerker
    • Actions
      • Unit - Replace (Triggering unit) with a Berzerker using The old unit's relative life and mana
Alternitivley you could include the ability triggers in one with if/then/else staements.
 
Level 36
Joined
Nov 24, 2007
Messages
4,404
Thanks for that one Ghost... -.- Ill remember to tell every noob that when they ask something... -_- geez... calm down, and rather tell me what i have to do, cause i dont know... and hawk, your trigger looks more like a spell than a tavarn trigger, but idk, maybe ill figure it, since its dangarous to ask questions around here, wolfs might come and bite you... -.-

Oh and btw, maybe a didnt tell the question right let me currect:

the warrior turning into a knight or a berserker, is only one hero. On the same tavern i wanna have two other advances that another hero can turne into like:
Warrior >> either knight or berserker.
Stalker >> either Assassin or Barbarian.

and how do i do it so that the assassin and barbarian are only available for the stalker and not the warrior? and the other way around? or is that too a condition? cause, sorry for me being a noob on triggers, and sorry i ever asked this at all...
 
Level 19
Joined
Sep 4, 2007
Messages
2,826
Perhaps the tavern hero selection ability shall only target a unit of a spesific "Unit Classification". Lets say it shall only target "An Ancient"
When a hero gets level 10 you add the Unit Classification "An Ancient" to the hero which now allows the hero to be selected by the tavern.

  • Make Tavern purchase available.
    • Events
      • Unit - A unit Gains a level
    • Conditions
      • (Hero level of (Triggering unit)) Equal to 10
    • Actions
      • Unit - Add classification of An Ancient to (Triggering unit)
  • Replace Bought Unit
    • Events
      • Unit - A unit Sells a unit
    • Conditions
    • Actions
      • Unit - Remove (Sold unit) from the game
      • Unit - Replace (Buying unit) with a (Unit-type of (Sold unit)) using The old unit's relative life and mana
Don't take his reply personally he always does that.
 
Level 36
Joined
Nov 24, 2007
Messages
4,404
Its nice but still dont fix the problem about how i make it so that every hero can choose their own two spesific advances from same tavern.. cause if i do it this way, i need to have a tavern for each hero, and theres like 8 classes which each is able to choose two new "ways of life" if you want, so the problem still stands, how can i prevent a warrior from being able to choose to become a "assassin" when its the stalker that can become a assassin and so on...
 
Level 19
Joined
Sep 4, 2007
Messages
2,826
What do you mean? Select Hero shall only select unit of type ancient.
attachment.php


This makes only warriors able to buy the specific heroes.

attachment.php
 

Attachments

  • 1.jpg
    1.jpg
    43 KB · Views: 209
  • 2.jpg
    2.jpg
    54.1 KB · Views: 240
Level 36
Joined
Nov 24, 2007
Messages
4,404
I dont think you get me, as this is going to be a multiplayer map, i need more than one house to be able to evolve, these houses is lined up right aside one another, so if all of them have the same coditions, anchient, then all units can buy from all houses, when it should be classified, the pictures i uploade will show e playing in one game, and being able to turn from a warrior into a assassin.

And no i did not get the techtree thing to work...
 

Attachments

  • Uten navn.jpg
    Uten navn.jpg
    128.6 KB · Views: 105
  • Uten navn 1.jpg
    Uten navn 1.jpg
    123.8 KB · Views: 82
  • Uten navn 2.jpg
    Uten navn 2.jpg
    126.3 KB · Views: 89
Level 36
Joined
Nov 24, 2007
Messages
4,404
Well, ok, everything is now on its place, i buy a hero, I got the techtree to work, and all.. But when i come to the building in lvl 10, in still says that i dont have the right hero, but i do, and therefor i cant buy a new hero, but since i have the hero i should have been able to buy it but it wont let me...

Update: Ok, since no1 knows how to fix this problem, i wanna ask if anyone know of any other possible soulution of getting a hero to being able to choose one of two new directions, im thinking of something like a leaderboard or something, where a menu pops up and gives you the ability to choose when you reach lvl 10, the problem is i have never worked with that kind of triggers before so i would need someone who can it to make it for me and ill just copy it, hope someone can help, ill give +rep! :D
 
Last edited:
Status
Not open for further replies.
Top