[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 > 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 12-29-2007, 07:09 PM   #1 (permalink)
Registered User CraZy.FroG[B]
HoP Developer
 
CraZy.FroG[B]'s Avatar
 
Join Date: Sep 2004
Posts: 183
CraZy.FroG[B] has little to show at this moment (24)CraZy.FroG[B] has little to show at this moment (24)CraZy.FroG[B] has little to show at this moment (24)
Question Game modes, like in Pudge Wars

hello, I want to make a game mode system like the one that's in Pudge Wars. In case you haven't heard or tried Pudge Wars, the game starts like this; when the game starts, a window pops up for the host with several features that can be choosed, such as 20 kills = win or 50 kills = win etc.

I'm been trying to make the system myself, but it doesn't seem to work whatsoever. can anyone fill me in on what to do? or give me an template if possiple to make life easier for me? :D

thanks in advance.
CraZy.FroG[B] is offline  
Old 12-29-2007, 07:42 PM   #2 (permalink)
Registered User GhostWolf
User
 
Join Date: Jul 2007
Posts: 3,596
GhostWolf has much of which to be proud (1005)GhostWolf has much of which to be proud (1005)GhostWolf has much of which to be proud (1005)GhostWolf has much of which to be proud (1005)GhostWolf has much of which to be proud (1005)GhostWolf has much of which to be proud (1005)
You use a integer that is the kills you need to win.
For example, you set a integer called "Win" to 50 (if 50 was chosen) and then use another integer called "Kills", and whenever a hero is killed you set Kills to (Kills + 1) then you check if "Kills = Win" and if it is, the team that "owns" Kills wins.
GhostWolf is offline  
Old 12-29-2007, 07:45 PM   #3 (permalink)
Registered User busterkomo
 
busterkomo's Avatar
 
Join Date: Jun 2007
Posts: 1,474
busterkomo is just really nice (295)busterkomo is just really nice (295)busterkomo is just really nice (295)busterkomo is just really nice (295)busterkomo is just really nice (295)
Use dialogs and then compare the clicked button, then set a var accordingly.
busterkomo is offline  
Old 12-29-2007, 07:52 PM   #4 (permalink)
Registered User Just_Spectating
Hallow Evary Bady!
 
Just_Spectating's Avatar
 
Join Date: May 2007
Posts: 7,155
Just_Spectating is a splendid one to behold (797)Just_Spectating is a splendid one to behold (797)Just_Spectating is a splendid one to behold (797)
Read This! It will Help you!

ok, in a trigger of initialization, you have to create a dialog box, and variable it, then you have to make buttons and variable them too,(you should use arrays, its easier) then, in another trigger, you can check if the player pressed a button(which is set as a variable) and make the mode set, which i will tell you later.

you will still need the trigger at the beginning like game time is 1 second, then show dialog box(set as variable) for player 1(red) or whom ever picks the game mode.



Next, you need separate triggers to determine how many kills you need to win

so each trigger you will start off with
"Unit - Generic unit dies"
the event
Triggering unit is a hero = true (in the boolean section)
and action

For this action however, you will need to set a variable(namely Kills, integer variable) and then in the actions, above
set (variable, Kills) = (variable, Kills + 1)
and after that you add an If Then Else trigger
If (variable, Kills) = (ok game mode one, so lets say, 20)
Then (make victory for all players allied to the killing player and the killing player)
Else (leave that blank)

Other gamemodes, just copy the trigger, and change If (variable, Kills) = (this number to 40, 60, etc. all the way for the number of game modes)

For every Gamemode trigger, go to the top of the trigger, not way top, but you will see 2 boxes that are checked, uncheck the one that says "initially on"


Ok Now,
In those triggers with the button pressing,(which the player presses button(variable) trigger) then in the actions, you create all the pudge(or w.e) for the players, you know yadda yadda set up the map, then add the trigger, Turn on trigger and turn on the game mode that the button is reffering to. So if this trigger is for Game mode 1(the pressed button is for game mode 1), you would turn on the Game mode 1 trigger(that is initially off) to On.



Ok, im sure that should wrap it up, if you need any questions ask.
__________________
JJAALuu!
Resurrection To Starcraft II Format
Making an RPG? Never Knows Best
eenii meenii itty bitty teenii weenii tiny microscopic minis
Just_Spectating is offline  
Old 12-29-2007, 09:07 PM   #5 (permalink)
Registered User CraZy.FroG[B]
HoP Developer
 
CraZy.FroG[B]'s Avatar
 
Join Date: Sep 2004
Posts: 183
CraZy.FroG[B] has little to show at this moment (24)CraZy.FroG[B] has little to show at this moment (24)CraZy.FroG[B] has little to show at this moment (24)
thnks for the fast response guys.

I want to point out that i've changed my decision, i'm using a in-game chat mode selection instead of a dialog.

and also, the map is a arena map, with 6 players, all vs all, meaning no allies.

now for the trigger, The only thing I need to get working is the winning condition trigger. I've set the whole thing up with variables etc. but i've tried different stuff out with ''If Player1Kills equals 15 then Game - Victory.... for Player 1 '' etc. but it doesn't seem to work.

can anyone fill me in on how to make, for example, player 1 win if he gets 15 hero kills?

PS: I'm also using a Multiboard, nothing fancy tho, it only shows Player name, hero kills and deaths.

Last edited by CraZy.FroG[B]; 07-10-2008 at 06:03 PM.
CraZy.FroG[B] 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Trigger] Vampirism modes troubles Turok-Titan Triggers & Scripts 5 04-22-2008 07:35 AM
Game Modes Red Orca Warcraft Town Hall 1 05-04-2007 11:35 AM
SWDogfight, Need someone to help me with Modes. Teldrassil Map Development 0 06-09-2006 10:57 PM
NEW MAP Hands of Sorrow Knight -AOS,Recipes,Modes,Upgrades.. tomaxko Map Development 18 04-05-2006 09:14 AM
What are cool War-game weapons for a Star Wars shooter? Joey. Map Development 4 01-05-2005 11:44 PM

All times are GMT. The time now is 07:00 AM.




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