[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > Triggers & Scripts


Triggers & Scripts In this forum you may ask for help on fixing a trigger or script. But if you need help getting started with a trigger, this is not the right place — use the World Editor Help Zone.

Closed Thread
 
Thread Tools
Old 07-27-2012, 06:11 PM   #1 (permalink)
Registered User Linkinblade
Dedicated Map Maker
 
Linkinblade's Avatar
 
Join Date: Jul 2012
Posts: 156
Linkinblade has disabled reputation
Upgrade Trigger

I'm currently developing http://www.hiveworkshop.com/forums/m...6/#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.
Linkinblade is offline  
Old 07-27-2012, 07:48 PM   #2 (permalink)
Registered User SupremeGrandRuler
Ascended Dark Lord
 
SupremeGrandRuler's Avatar
 
Join Date: Jun 2012
Posts: 112
SupremeGrandRuler has disabled reputation
Quote:
Originally Posted by Linkinblade View Post
I'm currently developing http://www.hiveworkshop.com/forums/m...6/#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"
SupremeGrandRuler is offline  
Old 07-27-2012, 08:17 PM   #3 (permalink)
Registered User Linkinblade
Dedicated Map Maker
 
Linkinblade's Avatar
 
Join Date: Jul 2012
Posts: 156
Linkinblade has disabled reputation
Quote:
Originally Posted by SupremeGrandRuler View Post
At work right now, but you could use Pick Every Units of Type - Keep under "Unit Group"
I've heard it couses major lags with Unit Groups.
Linkinblade is offline  
Old 07-27-2012, 08:22 PM   #4 (permalink)
Registered User Lysho
User
 
Join Date: Jul 2012
Posts: 85
Lysho has little to show at this moment (7)
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.
Lysho is offline  
Old 07-27-2012, 08:44 PM   #5 (permalink)
Registered User Linkinblade
Dedicated Map Maker
 
Linkinblade's Avatar
 
Join Date: Jul 2012
Posts: 156
Linkinblade has disabled reputation
Thank you Lysho, rep+.
Linkinblade is offline  
Old 07-28-2012, 01:52 AM   #6 (permalink)
Registered User SupremeGrandRuler
Ascended Dark Lord
 
SupremeGrandRuler's Avatar
 
Join Date: Jun 2012
Posts: 112
SupremeGrandRuler has disabled reputation
No it doesn't cause any lag at all, but you can also do what lycho said.
SupremeGrandRuler is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 12:17 AM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle