[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 > World Editor Help Zone


World Editor Help Zone Ask general questions about World Editor features and use in this forum. If you need help fixing a trigger, please post it in Triggers & Scripts. Please review the forum rules before posting.

Closed Thread
 
Thread Tools
Old 06-09-2012, 09:21 PM   #1 (permalink)
Registered User RiotZ
DΣӅТḤ
 
RiotZ's Avatar
 
Join Date: Jul 2009
Posts: 2,640
RiotZ is just really nice (338)RiotZ is just really nice (338)RiotZ is just really nice (338)
Upgrades

Is there any way to make an upgrade unavailable after you purchase another.

For example purchase of X locks Y, and vice versa.

GUI has a function for max research level but it doesn't seem to work.

Here it is...


Tech Restrictions
Events
Unit - A unit Finishes an upgrade
Conditions
(Unit-type of (Triggering unit)) Equal to Chaos Shrine
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Mark of Nurgle
Then - Actions
Player - Set the max research level of Mark of Slaanesh to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Tzeentch to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Khorne to 0 for (Owner of (Triggering unit))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Mark of Khorne
Then - Actions
Player - Set the max research level of Mark of Slaanesh to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Tzeentch to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Nurgle to 0 for (Owner of (Triggering unit))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Mark of Tzeentch
Then - Actions
Player - Set the max research level of Mark of Slaanesh to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Khorne to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Nurgle to 0 for (Owner of (Triggering unit))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Mark of Slaanesh
Then - Actions
Player - Set the max research level of Mark of Tzeentch to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Khorne to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Nurgle to 0 for (Owner of (Triggering unit))
Else - Actions
__________________

Last edited by RiotZ; 06-09-2012 at 10:27 PM.
RiotZ is offline  
Old 06-10-2012, 07:59 AM   #2 (permalink)
Registered User WaterKnight
User
 
Join Date: Aug 2009
Posts: 1,950
WaterKnight is a name known to all (603)
Finishes an upgrade --> Finishes a research
WaterKnight is offline  
Old 06-10-2012, 10:25 AM   #3 (permalink)
Registered User Fire Eagle
Aries Tween
 
Fire Eagle's Avatar
 
Join Date: Jun 2012
Posts: 217
Fire Eagle has little to show at this moment (39)Fire Eagle has little to show at this moment (39)Fire Eagle has little to show at this moment (39)Fire Eagle has little to show at this moment (39)
Quote:
Originally Posted by WaterKnight View Post
Finishes an upgrade --> Finishes a research
You're right. He made it all correct except for the event.
Quote:
Originally Posted by RiotZ View Post
Is there any way to make an upgrade unavailable after you purchase another.

For example purchase of X locks Y, and vice versa.

GUI has a function for max research level but it doesn't seem to work.

Here it is...


Tech Restrictions
Events
Unit - A unit Finishes an upgrade
Conditions
(Unit-type of (Triggering unit)) Equal to Chaos Shrine
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Mark of Nurgle
Then - Actions
Player - Set the max research level of Mark of Slaanesh to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Tzeentch to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Khorne to 0 for (Owner of (Triggering unit))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Mark of Khorne
Then - Actions
Player - Set the max research level of Mark of Slaanesh to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Tzeentch to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Nurgle to 0 for (Owner of (Triggering unit))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Mark of Tzeentch
Then - Actions
Player - Set the max research level of Mark of Slaanesh to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Khorne to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Nurgle to 0 for (Owner of (Triggering unit))
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Researched tech-type) Equal to Mark of Slaanesh
Then - Actions
Player - Set the max research level of Mark of Tzeentch to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Khorne to 0 for (Owner of (Triggering unit))
Player - Set the max research level of Mark of Nurgle to 0 for (Owner of (Triggering unit))
Else - Actions
Good idea, You only had one mistake.
Fire Eagle is offline  
Old 06-10-2012, 02:40 PM   #4 (permalink)
Registered User RiotZ
DΣӅТḤ
 
RiotZ's Avatar
 
Join Date: Jul 2009
Posts: 2,640
RiotZ is just really nice (338)RiotZ is just really nice (338)RiotZ is just really nice (338)
Quote:
Originally Posted by Fire Eagle View Post
You're right. He made it all correct except for the event. Good idea, You only had one mistake.
Okay let me try that.

I think it's the same function though guys. :|
__________________
RiotZ is offline  
Old 06-10-2012, 03:25 PM   #5 (permalink)
Registered User defskull
ϟƘƦƖ|ןΣ✘
 
defskull's Avatar
 
Join Date: Mar 2008
Posts: 7,533
defskull has a brilliant future (1282)defskull has a brilliant future (1282)defskull has a brilliant future (1282)defskull has a brilliant future (1282)
Zephyr Contest #9 - Winner: Stringed Shuriken: An assassin is always working like a trickster. This entry proves the theory, as defskull managed to integrate the fictional lore of the human legacy into a single, virtual ability. Strike fast, die instantly! 
Quote:
Originally Posted by RiotZ View Post
Okay let me try that.

I think it's the same function though guys. :|
It's different, I tested it.

By changing it to Research rather than Upgrade, will fire that event and action.

Just 1 more thing to optimize the trigger, use (Triggering player) instead (Owner of (Triggering unit)) which calls 2 functions instead 1.
defskull is online now  
Old 06-10-2012, 03:49 PM   #6 (permalink)
Registered User RiotZ
DΣӅТḤ
 
RiotZ's Avatar
 
Join Date: Jul 2009
Posts: 2,640
RiotZ is just really nice (338)RiotZ is just really nice (338)RiotZ is just really nice (338)
Quote:
Originally Posted by defskull View Post
It's different, I tested it.

By changing it to Research rather than Upgrade, will fire that event and action.

Just 1 more thing to optimize the trigger, use (Triggering player) instead (Owner of (Triggering unit)) which calls 2 functions instead 1.
Okay everything worked, but I can still queue the upgrades... When the other one is researching I mean, solution?
__________________
RiotZ is offline  
Old 06-10-2012, 03:54 PM   #7 (permalink)
Registered User defskull
ϟƘƦƖ|ןΣ✘
 
defskull's Avatar
 
Join Date: Mar 2008
Posts: 7,533
defskull has a brilliant future (1282)defskull has a brilliant future (1282)defskull has a brilliant future (1282)defskull has a brilliant future (1282)
Zephyr Contest #9 - Winner: Stringed Shuriken: An assassin is always working like a trickster. This entry proves the theory, as defskull managed to integrate the fictional lore of the human legacy into a single, virtual ability. Strike fast, die instantly! 
Create another trigger;
Cancel Research
Events
Unit - A unit Cancels research
Conditions
Actions
Player - Set the max research level of Research1 to 1 for (Triggering player)
Player - Set the max research level of Research2 to 1 for (Triggering player)
Player - Set the max research level of Research3 to 1 for (Triggering player)
Player - Set the max research level of Research4 to 1 for (Triggering player)

Change your first trigger from Finishes a research to Begins a research

So there's gonna be 2 triggers.

So when the unit Begins Research1, all other Research will be disabled, and when Research1 is Canceled, all other research is set back to enable to be researched.
defskull is online now  
Old 06-10-2012, 03:55 PM   #8 (permalink)
Registered User RiotZ
DΣӅТḤ
 
RiotZ's Avatar
 
Join Date: Jul 2009
Posts: 2,640
RiotZ is just really nice (338)RiotZ is just really nice (338)RiotZ is just really nice (338)
Quote:
Originally Posted by defskull View Post
Create another trigger;
Cancel Research
Events
Unit - A unit Cancels research
Conditions
Actions
Player - Set the max research level of Research1 to 1 for (Triggering player)
Player - Set the max research level of Research2 to 1 for (Triggering player)
Player - Set the max research level of Research3 to 1 for (Triggering player)
Player - Set the max research level of Research4 to 1 for (Triggering player)

Change your trigger from Finishes an upgrade to Begins an upgrade

So there's gonna be 2 triggers.
Thanks.
__________________
RiotZ is offline  
Old 06-10-2012, 04:00 PM   #9 (permalink)
Registered User defskull
ϟƘƦƖ|ןΣ✘
 
defskull's Avatar
 
Join Date: Mar 2008
Posts: 7,533
defskull has a brilliant future (1282)defskull has a brilliant future (1282)defskull has a brilliant future (1282)defskull has a brilliant future (1282)
Zephyr Contest #9 - Winner: Stringed Shuriken: An assassin is always working like a trickster. This entry proves the theory, as defskull managed to integrate the fictional lore of the human legacy into a single, virtual ability. Strike fast, die instantly! 
The post is edited, check again.
defskull is online now  
Old 06-10-2012, 04:08 PM   #10 (permalink)
Registered User RiotZ
DΣӅТḤ
 
RiotZ's Avatar
 
Join Date: Jul 2009
Posts: 2,640
RiotZ is just really nice (338)RiotZ is just really nice (338)RiotZ is just really nice (338)
Quote:
Originally Posted by defskull View Post
The post is edited, check again.
I understood how it worked before the edit. :P

Thanks again.
__________________
RiotZ 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 03:07 AM.





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