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

Status
Not open for further replies.
Level 7
Joined
Jul 1, 2012
Messages
188
I'm currently developing http://www.hiveworkshop.com/forums/map-development-202/world-azeroth-218724-post2177296/#post2177296
and there is currently a problem I have with a certain script that I've made.

It's that I can't really complete it since I can't find out how.

  • [B]Conditions[/B]
  • Current research level of magi kingdom for (triggering player)) Equal to 0) and ((Current reserach level of Holy Kingdom for (Triggering player)) Equal to 0)
This only checks for that the current research of certain upgrades aren't there, it doesn't check for another key building for this upgrade and it's Keep.
How do I make it so it must be a keep else the Condition Fails.
 
Level 5
Joined
Jun 24, 2012
Messages
112
I'm currently developing http://www.hiveworkshop.com/forums/map-development-202/world-azeroth-218724-post2177296/#post2177296
and there is currently a problem I have with a certain script that I've made.

It's that I can't really complete it since I can't find out how.

  • [B]Conditions[/B]
  • Current research level of magi kingdom for (triggering player)) Equal to 0) and ((Current reserach level of Holy Kingdom for (Triggering player)) Equal to 0)
This only checks for that the current research of certain upgrades aren't there, it doesn't check for another key building for this upgrade and it's Keep.
How do I make it so it must be a keep else the Condition Fails.

At work right now, but you could use Pick Every Units of Type - Keep under "Unit Group"
 
Level 4
Joined
Jul 14, 2012
Messages
100
As far as I know, the "check research level" doesnt work too well with basic researches, I've tried it before. I just made separate triggers for the research itself. Just have a trigger where
Event- a unit finishes research
Conditions- techtype of research is [whatever]
Actions- Set research[player number of owner of researching unit] = 1

The action is setting an integer equal to one. Then instead of using your condition of research tech type, just use

research[player number of triggering player] =1

EDIT: OH lol i read your topic wrong.

Just do an integer condition, counting number of alive units of type(which in your case, is Keep) owned by triggering player.
 
Status
Not open for further replies.
Top