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

Triggers & Scripts Discussions regarding GUI triggers & JASS/AI scripts may be found here. Please review the » JASS Tutorials » Trigger Tutorials

Closed Thread
 
LinkBack Thread Tools
Old 08-27-2008, 02:47 PM   #1 (permalink)
Registered User ReDbEaN87
Just a weed smoker
 
ReDbEaN87's Avatar
 
Join Date: Jan 2008
Posts: 296
ReDbEaN87 has disabled reputation
Phantom!!

PROBLEM SOLVED

--TRIGGERS--

Anyone ever played Phantom in Starcraft?

If u have, then u know what I will talk about:

U know in begining when a random player becomes a Phantom, that is what Im after in this thread.

I know I have to create 2 groups, 1 for regular players & 1 for the phantom.
BUT, how do I create the triggers that make either Phantom win or the players win? (No buildings left)

Maaan, I have been thinking for hours and hours now, but just cant figure this one out, how will I be able to make this trigger..?
Its pretty advanced..

Need some tips for Phantom map overall, my brain is boiling to much to think alone..

------------------------------

Example:

Group 1 = Slayers - All players in begining, but after 30 seconds, 1 player goes to Phantom-group.
Group 2 = Phantom - 1 Random Player choosen after 30 seconds.

Phantom gets a lot of extra resources through whole game. (8 gold & 2 wood each second)
Slayers mission is to figure out who's the phantom and kill that person.
Short said: You never know through whole game who's the phantom til' he's dead.

------------------------------
__________________
http://www.weebls-stuff.com/toons/Amazing+Horse/

Last edited by ReDbEaN87; 08-29-2008 at 10:01 AM.
ReDbEaN87 is offline  
Old 08-27-2008, 03:38 PM   #2 (permalink)
Registered User HorizonTal
Pa-parapaa zum zum!
 
HorizonTal's Avatar
 
Join Date: Apr 2008
Posts: 438
HorizonTal has little to show at this moment (55)
Ok, First of all, go to the Trigger Editor, Press Ctrl+B, and create 2 variables.
Call the first Phantom and set the variable-type to Player.
Call the second Others and set the variable type to Player Group.
Now create a Trigger:

Start
Events
Time - Elapsed game time is 30.00 Seconds
Conditions
Actions
Set Phantom = (Random player from (All players matching (((Matching Player) slot status) Equal to In Game)))
Set Others = (All players matching ((Matching player) Different from Phantom))

Now add this
Victory of the Phantom
Events
Player - Phantom leaves the game with a victory
Conditions
Actions
Unit Group - Pick every unit in Others and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!!
And this
Resources
Events
Time - Every 1.00 seconds of Game-Time
Conditions
Actions
Player - Set Phantom Actual Gold to ((Phantom Actual gold) + 8)
Player - Set Phantom Actual Lumber to ((Phantom Actual gold) + 2)
And this
Victory of the Others
Events
Player - Player (Red) leaves the game with a victory
Player - Player 2 (Blue) leaves the game with a victory
Player - Player 3 (Teal) leaves the game with a victory
Player - Player 4 (Purple) leaves the game with a victory
Player - Player 5 (Yellow) leaves the game with a victory
Player - Player 6 (Orange) leaves the game with a victory
Player - Player 7 (Green) leaves the game with a victory
Player - Player 8 (Pink) leaves the game with a victory
Player - Player 9 (Gray) leaves the game with a victory
Player - Player 10 (Light Blue) leaves the game with a victory
Player - Player 11 (Dark Green) leaves the game with a victory
Player - Player 12 (Brown) leaves the game with a victory
Conditions
Actions
Unit Group - Pick every unit in Others and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogues, Show scores)
Game - Defeat Phantom with the message: Defeat!!
__________________
Map currently complete, but needs a lot of balancing. http://www.hiveworkshop.com/forums/m...Dlist%26r%3D20
HorizonTal is offline  
Old 08-27-2008, 04:14 PM   #3 (permalink)
Registered User ReDbEaN87
Just a weed smoker
 
ReDbEaN87's Avatar
 
Join Date: Jan 2008
Posts: 296
ReDbEaN87 has disabled reputation
Quote:
Originally Posted by HorizonTal View Post
Ok, First of all, go to the Trigger Editor, Press Ctrl+B, and create 2 variables.
Call the first Phantom and set the variable-type to Player.
Call the second Others and set the variable type to Player Group.
Now create a Trigger:

Start
Events
Time - Elapsed game time is 30.00 Seconds
Conditions
Actions
Set Phantom = (Random player from (All players matching (((Matching Player) slot status) Equal to In Game)))
Set Others = (All players matching ((Matching player) Different from Phantom))

Now add this
Victory of the Phantom
Events
Player - Phantom leaves the game with a victory
Conditions
Actions
Unit Group - Pick every unit in Others and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!!
And this
Resources
Events
Time - Every 1.00 seconds of Game-Time
Conditions
Actions
Player - Set Phantom Actual Gold to ((Phantom Actual gold) + 8)
Player - Set Phantom Actual Lumber to ((Phantom Actual gold) + 2)
And this
Victory of the Others
Events
Player - Player (Red) leaves the game with a victory
Player - Player 2 (Blue) leaves the game with a victory
Player - Player 3 (Teal) leaves the game with a victory
Player - Player 4 (Purple) leaves the game with a victory
Player - Player 5 (Yellow) leaves the game with a victory
Player - Player 6 (Orange) leaves the game with a victory
Player - Player 7 (Green) leaves the game with a victory
Player - Player 8 (Pink) leaves the game with a victory
Player - Player 9 (Gray) leaves the game with a victory
Player - Player 10 (Light Blue) leaves the game with a victory
Player - Player 11 (Dark Green) leaves the game with a victory
Player - Player 12 (Brown) leaves the game with a victory
Conditions
Actions
Unit Group - Pick every unit in Others and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogues, Show scores)
Game - Defeat Phantom with the message: Defeat!!

"Set Others = (All players matching ((Matching player) DIFFERENT from Phantom))"


Wich sub-trigger is that?

1. Set Variable
2. All Players matching condition
3. ???
__________________
http://www.weebls-stuff.com/toons/Amazing+Horse/
ReDbEaN87 is offline  
Old 08-27-2008, 04:19 PM   #4 (permalink)
Registered User HorizonTal
Pa-parapaa zum zum!
 
HorizonTal's Avatar
 
Join Date: Apr 2008
Posts: 438
HorizonTal has little to show at this moment (55)
"Player Comparison"
__________________
Map currently complete, but needs a lot of balancing. http://www.hiveworkshop.com/forums/m...Dlist%26r%3D20
HorizonTal is offline  
Old 08-27-2008, 04:24 PM   #5 (permalink)
Registered User ReDbEaN87
Just a weed smoker
 
ReDbEaN87's Avatar
 
Join Date: Jan 2008
Posts: 296
ReDbEaN87 has disabled reputation
Quote:
Originally Posted by HorizonTal View Post
"Player Comparison"
I cant find different..

AND you cant select the variable-groups in Player Comparison

Should I do "Array" on both Variable Groups?

EDIT: NO WAIT, Im just an idiot.. figured it out! xD
Thx m8! +rep!
__________________
http://www.weebls-stuff.com/toons/Amazing+Horse/
ReDbEaN87 is offline  
Old 08-27-2008, 04:33 PM   #6 (permalink)
Registered User HorizonTal
Pa-parapaa zum zum!
 
HorizonTal's Avatar
 
Join Date: Apr 2008
Posts: 438
HorizonTal has little to show at this moment (55)
Another problem solved! The world is now safe! and now... To the sky!
__________________
Map currently complete, but needs a lot of balancing. http://www.hiveworkshop.com/forums/m...Dlist%26r%3D20
HorizonTal is offline  
Old 08-27-2008, 04:37 PM   #7 (permalink)
Registered User ReDbEaN87
Just a weed smoker
 
ReDbEaN87's Avatar
 
Join Date: Jan 2008
Posts: 296
ReDbEaN87 has disabled reputation
Quote:
Originally Posted by HorizonTal View Post
Another problem solved! The world is now safe! and now... To the sky!
And when we all saw the light more problems appeared ^^

More problems. EDIT 2:

You can not take:
Player leaves the game with a victory = A variable leaves the game

- A player leaves the game = Player 1 up to player 12 leaves the game, but to use the variable, seems impossible :S

Works >> Player 1 (Red) leaves the game with a victory
Does not work >> Variable: Phantom leaves the game with a victory
__________________
http://www.weebls-stuff.com/toons/Amazing+Horse/
ReDbEaN87 is offline  
Old 08-27-2008, 04:42 PM   #8 (permalink)
Registered User HorizonTal
Pa-parapaa zum zum!
 
HorizonTal's Avatar
 
Join Date: Apr 2008
Posts: 438
HorizonTal has little to show at this moment (55)
You ruined my heroic exit! Replace the second trigger with this
Victory of the Phantom
Events
Player - Player (Red) leaves the game with a victory
Player - Player 2 (Blue) leaves the game with a victory
Player - Player 3 (Teal) leaves the game with a victory
Player - Player 4 (Purple) leaves the game with a victory
Player - Player 5 (Yellow) leaves the game with a victory
Player - Player 6 (Orange) leaves the game with a victory
Player - Player 7 (Green) leaves the game with a victory
Player - Player 8 (Pink) leaves the game with a victory
Player - Player 9 (Gray) leaves the game with a victory
Player - Player 10 (Light Blue) leaves the game with a victory
Player - Player 11 (Dark Green) leaves the game with a victory
Player - Player 12 (Brown) leaves the game with a victory
Conditions
(Triggering player) Equal to Phantom
Actions
Unit Group - Pick every unit in Others and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!!
__________________
Map currently complete, but needs a lot of balancing. http://www.hiveworkshop.com/forums/m...Dlist%26r%3D20
HorizonTal is offline  
Old 08-27-2008, 09:12 PM   #9 (permalink)
Registered User ReDbEaN87
Just a weed smoker
 
ReDbEaN87's Avatar
 
Join Date: Jan 2008
Posts: 296
ReDbEaN87 has disabled reputation
Im sorry! xD

But I have actually been sitting with this Phantom triggers the whole day, and it finally seems to work, didnt use yours tho, but you gave me good inspiration for those triggers I know use, Thx again! ^^

NOW you can make your Heroic exit!! :D
__________________
http://www.weebls-stuff.com/toons/Amazing+Horse/
ReDbEaN87 is offline  
Old 08-27-2008, 09:17 PM   #10 (permalink)
Registered User HorizonTal
Pa-parapaa zum zum!
 
HorizonTal's Avatar
 
Join Date: Apr 2008
Posts: 438
HorizonTal has little to show at this moment (55)
HorizonTal flies away, confused but pleased. The evil Doctor Variable has been beaten.
__________________
Map currently complete, but needs a lot of balancing. http://www.hiveworkshop.com/forums/m...Dlist%26r%3D20
HorizonTal is offline  
Old 08-28-2008, 06:51 PM   #11 (permalink)
Registered User ReDbEaN87
Just a weed smoker
 
ReDbEaN87's Avatar
 
Join Date: Jan 2008
Posts: 296
ReDbEaN87 has disabled reputation
This is Still fucked up..
Need some proffessional help with these triggers!

TRIGGER 1:
1. I have two teams: "Team 1" & "Team 2"
- Team 1 contains 7 players
- Team 2 contains 1 player

2. If ALL players in Team 1 has left the game OR dont have any buldings left, Team 2 wins!
If the player in Team 2 has left the game OR dont have any buildings left, Team 1 wins!

TRIGGER 2:
1. If a player dont have any structures left OR leaves the game, Defeat him & remove all his units.
2. When I maked this trigger, the text: "ReDbEaN has been defeated" was going on forever each 10 second.. -.-

So trigger 1 & trigger 2 should be compatible with eachother!
__________________
http://www.weebls-stuff.com/toons/Amazing+Horse/
ReDbEaN87 is offline  
Old 09-02-2008, 12:06 AM   #12 (permalink)
Registered User HorizonTal
Pa-parapaa zum zum!
 
HorizonTal's Avatar
 
Join Date: Apr 2008
Posts: 438
HorizonTal has little to show at this moment (55)
I haven't been answering for a while. Now I'm back. This should be the only trigger you need.
Gwrzwahhlla
Events
Unit - A unit Is dead
Conditions
((Units owned by (Owner of (dying unit)) matching (((Matching Unit) is a structure) Equal to TRUE) is empty)
Actions
Unit Group - Pick every unit in (Units owned by (Owner of (Dying unit))) and do (Actions)
Actions - Loop
Remove Picked unit from the game
Game - Display to (All players) the text: ((Name of (Owner of (Dying Unit)) + is dead
If (All conditions are True) then do (Then actions) else do (Else Actions)
If - Conditions
(Number of players in (All players matching (((Matching player) slot status) equal to In game) and (((Matching player) is in (PLAYERGROUP) Equal to TRUE))) Equal to 0
Then - Actions
Player Group - Pick every player in (PLAYERGROUP) and do (Actions)
Game - Defeat (Picked player) with the message: DEFEAT!!!
Else - Actions
If (All conditions are True) then do (Then actions) else do (Else Actions)
If - Conditions
(Number of players in (All players matching (((Matching player) slot status) equal to In game) and (((Matching player) is in (PLAYERGROUP2) Equal to TRUE))) Equal to 0
Then - Actions
Player Group - Pick every player in (PLAYERGROUP2) and do (Actions)
Game - Defeat (Picked player) with the message: DEFEAT!!!

I don't remember when you added that big red text: "PROBLEM SOLVED" so maybe you won't need my help.
__________________
Map currently complete, but needs a lot of balancing. http://www.hiveworkshop.com/forums/m...Dlist%26r%3D20

Last edited by HorizonTal; 09-02-2008 at 12:33 AM.
HorizonTal 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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
WIP Pumpkin Phantom Thrikodius Modeling & Animation 8 09-10-2008 09:29 AM
Zelda the phantom hourglass Supermj Console Games 22 12-02-2007 03:51 PM
Phantom Lancer twitch_tweak Modeling & Animation 0 06-30-2006 08:36 PM
PHANTOM LANCER chaostoderm Triggers & Scripts 2 05-07-2006 09:45 PM

All times are GMT. The time now is 04:31 AM.






Hosting by SliceHost 
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1
Copyright©Ralle