Register for free, and make this box disappear!

Welcome to the BF Forums! Register Now, It's Free!


Welcome to the BF Forums; your source for the latest video game news, strategies, discussions, and resources. Join over 66,000 like-minded gamers to chat about your interests in our community.

You are currently viewing the forums as a guest user, which limits your access to certain content, contests, downloads, and more. By joining our free community, you will be able to respond in discussions/articles, contact members privately (PM), participate in regular-scheduled contests, see less advertisements, and have access to many other features. Registration is quick, easy, and completely free. Whatever your game interest may be, you'll find information here where people realize that games are more than just poker online.


Have your questions answered. Share your thoughts about a topic. Take 2 minutes, Register Now!
BattleForums.com Blizzard Gaming Forums > Warcraft > Warcraft General > Warcraft Maps and Modifications

We're Half-Way There!! - BF Lotto: $50 Ebay or Amazon Gift Card - A Single Click is All It Takes...

Reply
 
Thread Tools Display Modes
Old 12-30-2004, 11:56 AM   #1 (permalink)
BattleForums Newbie
 
peoncaptain's Avatar
 
Join Date: Apr 2004
Location: Croatia
Age: 19
Posts: 19
Multiboard help

I need help with multiboard.I got this:

multiboard
Events
Time - Elapsed game time is 0.50 seconds
Conditions
Actions
Multiboard - Create a multiboard with 4 columns and 13 rows, titled Player status
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Name
Multiboard - Set the width for (Last created multiboard) item in column 1, row 0 to 10.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
Multiboard - Set the width for (Last created multiboard) item in column 3, row 0 to 5.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to STATUS
Multiboard - Set the width for (Last created multiboard) item in column 2, row 0 to 7.00% of the total screen width
Multiboard - Set the text for (Last created multiboard) item in column 1, row 2 to (Name of Player 1 (Red))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 3 to (Name of Player 2 (Blue))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 4 to (Name of Player 3 (Teal))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 5 to (Name of Player 4 (Purple))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 6 to (Name of Player 5 (Yellow))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 7 to (Name of Player 6 (Orange))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 8 to (Name of Player 7 (Green))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 9 to (Name of Player 8 (Pink))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 10 to (Name of Player 9 (Gray))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 11 to (Name of Player 10 (Light Blue))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 12 to (Name of Player 11 (Dark Green))
Multiboard - Set the text for (Last created multiboard) item in column 1, row 13 to (Name of Player 12 (Brown))
Multiboard - Set the display style for (Last created multiboard) item in column 0, row 0 to Show text and Hide icons
What I need is I need to apply hero kills and make alive/dead/quit trigger unde status and score trigger(how to apply this to a multiboard?):
Hero kills
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) is an ally of (Owner of (Dying unit))) Equal to False
(Owner of (Triggering unit)) Not equal to (Owner of (Killing unit))
((Dying unit) is A Hero) Equal to True
Actions
Set Hero_kills[(Integer A)] = (Kills[(Player number of (Owner of (Killing unit)))] + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(Hero_kills[(Integer A)]))
And what should I place on that integer a thing?
__________________
peoncaptain is offline   Reply With Quote
Beitrag Sponsored Links

__________________
Ads suck! Take 2 minutes to register for your free account, and GET RID OF THESE ADS!
Old 01-01-2005, 07:28 PM   #2 (permalink)
BattleForums Newbie
 
peoncaptain's Avatar
 
Join Date: Apr 2004
Location: Croatia
Age: 19
Posts: 19
Can someone pls unprotect battleships(you can download it from myforge.net) and give me the multiboard trigger in it?
__________________
peoncaptain is offline   Reply With Quote
Old 01-11-2005, 08:02 PM   #3 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,127
2 things, one
NO DOUBLE POSTING, edit was invented for a reason.

Second, could you clarify the problem ON THE BOTTOM of the screen 2 lines apart from your trigger code. I can't read it!
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now   Reply With Quote
Old 01-12-2005, 04:21 AM   #4 (permalink)
BattleForums Junior Member
 
JesusFreak's Avatar
 
Join Date: Apr 2004
Location: In a Box, on the side of the street
Posts: 124
first off don't use intergerA, unless you have only 1 person, make an integer
__________________
Current WC3 projects (Updated March 08, 05):
---Resident Evil (i have a team working on it)
---Halo 2 Zombies (I have a team working on it)
Progress of RE:
Terrain ----- ||||||||||
Unit's -------- |||||||||||
Spell's/Ablities- |||||||||||
Trigger's ------|||||||||||
Item's----------|||||||||||
Progress of Halo 2:
Terrain ----- ||||||||||
Unit's -------- |||||||||||
Spell's/Ablities- |||||||||||
Trigger's ------|||||||||||
Item's----------|||||||||||
Red = went down
Blue = went up
Green = same
JesusFreak is offline   Reply With Quote
Old 01-12-2005, 10:40 PM   #5 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,127
You mean array controlled by an integer? To control it, use seperate variables for the player numbers. Just like in C, its possible
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36

Last edited by Chris; 01-12-2005 at 10:44 PM.
Chris is online now   Reply With Quote
Old 01-14-2005, 08:30 PM   #6 (permalink)
BattleForums Newbie
 
peoncaptain's Avatar
 
Join Date: Apr 2004
Location: Croatia
Age: 19
Posts: 19
Can u tell how to get kills(score)to multiboard?(i dont get this integer a,b,c.... :scary
__________________
peoncaptain is offline   Reply With Quote
Old 01-14-2005, 09:49 PM   #7 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,127
Do you know how to create variables? There is a function within Multiboard, it will set a value to a certain field. To make things easier, make an array so all elements can be stored into the multiboard without having to make a variable for each element.

Whats an array you ask? Well its a variable that hold multiple values eg:

In C:
int num[6]="24, 35, 100, 7, 0, 8";

In Warcraft III you would create an Integer variable, enable Array and put the number of elements to whatever the maximum fields there are. Next make 10 variables collecting the player number.

You only use 10 elements if you are planning on sorting the multiboard, which is not a good idea!!!
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36

Last edited by Chris; 01-14-2005 at 09:53 PM.
Chris is online now   Reply With Quote
Old 01-15-2005, 07:24 AM   #8 (permalink)
BattleForums Newbie
 
peoncaptain's Avatar
 
Join Date: Apr 2004
Location: Croatia
Age: 19
Posts: 19
That is my problem,I know how to get score to a leaderboard,but dont know how the heck should I get the score to multiboard...And If I do integers I need to make kill trigger for every player?
EDIT:I dont need any sorting on multiboard.What should I do with integers' Should I make a trigger for every player and integer for every player?
__________________

Last edited by peoncaptain; 01-15-2005 at 02:51 PM.
peoncaptain is offline   Reply With Quote
Old 01-16-2005, 04:35 AM   #9 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,127
I think you can make player's score = integer and update it with another trigger every 2-3 seconds!

You can slap it in one trigger, and store all integers into a 10 element array.. Index should be associated with player number
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now   Reply With Quote
Old 01-16-2005, 06:48 AM   #10 (permalink)
BattleForums Junior Member
 
JesusFreak's Avatar
 
Join Date: Apr 2004
Location: In a Box, on the side of the street
Posts: 124
umm you could do one big one

if a generic unit dies
unit is owned by player x
then
(if then else statement)
(if owner of attacking unit = player 1
then set Player1(the name of the integer) = player1 + 1
else
(leave blank))
and repeat for all players

at the end here put the multiboard updater stats or put them in with each player, so i only updates when a specific player kills, not updating all players
__________________
Current WC3 projects (Updated March 08, 05):
---Resident Evil (i have a team working on it)
---Halo 2 Zombies (I have a team working on it)
Progress of RE:
Terrain ----- ||||||||||
Unit's -------- |||||||||||
Spell's/Ablities- |||||||||||
Trigger's ------|||||||||||
Item's----------|||||||||||
Progress of Halo 2:
Terrain ----- ||||||||||
Unit's -------- |||||||||||
Spell's/Ablities- |||||||||||
Trigger's ------|||||||||||
Item's----------|||||||||||
Red = went down
Blue = went up
Green = same
JesusFreak is offline   Reply With Quote
Old 01-17-2005, 07:36 AM   #11 (permalink)
BattleForums Newbie
 
peoncaptain's Avatar
 
Join Date: Apr 2004
Location: Croatia
Age: 19
Posts: 19
I made this but it doesnt seem to work

Hero kills
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) is an ally of (Owner of (Dying unit))) Equal to False
(Owner of (Triggering unit)) Not equal to (Owner of (Killing unit))
((Dying unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Then - Actions
Set player1_kills = (player1_kills + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(player1_kills))
Else - Actions
Do nothing

I made player1_kills integer without array(what doest array do?)
__________________
peoncaptain is offline   Reply With Quote
Old 01-17-2005, 06:15 PM   #12 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,127
I just explained that.

An array is a series of values stored into one variable called upon using indexes.

Variablename[index] is the look

First you declare its type (integer, real, string, boolean etc.)
Then enable array
Then set the elements, note that 0 is an existing element

So if you want 10 elements, you need to set the element count to 9.

If I were to store values into

eg: a[9] = 14, 23, 45, 100, 7, 16, 19, 220, 154.

And i wanted to call upon 100, then I would use a[3], because 0 is an existing index and I wanted to called the 4th one. Why is this helpful, consider this:

If it was hero line wars and I wanted to store all incomes into variables i can do this

income[11]

raither than

income1
income2
...
income11

saved 10 slots of variables on one array. There is a function I beleive that accepts player numbers so you can store that into the indexes

If your confused, think of the array as a file cabinet. An index is what file set you want to take. There you go, if you still have problems. Then you'd better PM me

Quote:
If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Then - Actions
Set player1_kills = (player1_kills + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(player1_kills))
Why is string there, and triggering unit only works if you have a specific unit.
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36

Last edited by Chris; 01-17-2005 at 06:20 PM.
Chris is online now   Reply With Quote
Old 01-17-2005, 06:54 PM   #13 (permalink)
BattleForums Newbie
 
peoncaptain's Avatar
 
Join Date: Apr 2004
Location: Croatia
Age: 19
Posts: 19
Dont know,but it actually seems to work ,but I got one mile long trigger...(for every player),I still seem not to fully understand array,(probably my bad english :/)But it works ,now how should i make leave/playing trigger?
__________________
peoncaptain is offline   Reply With Quote
Old 01-17-2005, 10:23 PM   #14 (permalink)
BattleForums Junior Member
 
JesusFreak's Avatar
 
Join Date: Apr 2004
Location: In a Box, on the side of the street
Posts: 124
Quote:
Hero kills
Events
Unit - A unit Dies
Conditions
((Owner of (Killing unit)) is an ally of (Owner of (Dying unit))) Equal to False
(Owner of (Triggering unit)) Not equal to (Owner of (Killing unit))
((Dying unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)
Then - Actions
Set player1_kills = (player1_kills + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(player1_kills))
Else - Actions
Do nothing
I made player1_kills integer without array(what doest array do?)
that can be done easier:

Hero kills
Events
Unit - A unit Dies // this is good

Conditions
plater comparison - (owner of (dying unit)) equat to player ## // replace ## with who ever is the bad guy liek 11 or 12 or what ever the player is

Actions

If - Conditions
(Owner of (Triggering unit)) Equal to Player 1 (Red)

Then - Actions
Set player1_kills = (player1_kills + 1)
Multiboard - Set the text for (Last created multiboard) item in column 3, row 2 to (String(player1_kills))

Else - Actions
// leave this blank, it will automatically do nothing, and i think it takes up more memory to add the "do nothing" tag to the else

ok and for the array, it works kinda like this:

when you set an integer to be an array it just makes many integers into one integer list, kinda like he said:

Playerkills (array of 12) is like this:
0
0
0
0
0
0
0
0
0
0
0
0

it is the same as doing
playerkills1
playerkills2
playerkills3
playerkills4
playerkills5
playerkills6
playerkills7
playerkills8
playerkills9
playerkills10
playerkills11
playerkills12

but takes up less memory (i think), and makes it less cluttered
if u wanted to use an array, it is ok to foget about 0, a just make it an arry of 12, the 0 can be quite confusing, so player 1 can be playerkill(1) slot one, you don't have to make it slot 0

for all you guys out there, 0 was used a long time ago to save memory, but now'a'days, you don't need to use it as we have tons of memory, and it is insignificant.
__________________
Current WC3 projects (Updated March 08, 05):
---Resident Evil (i have a team working on it)
---Halo 2 Zombies (I have a team working on it)
Progress of RE:
Terrain ----- ||||||||||
Unit's -------- |||||||||||
Spell's/Ablities- |||||||||||
Trigger's ------|||||||||||
Item's----------|||||||||||
Progress of Halo 2:
Terrain ----- ||||||||||
Unit's -------- |||||||||||
Spell's/Ablities- |||||||||||
Trigger's ------|||||||||||
Item's----------|||||||||||
Red = went down
Blue = went up
Green = same
JesusFreak is offline   Reply With Quote
Old 01-18-2005, 04:23 AM   #15 (permalink)
BattleForums Addict
 
Darimus's Avatar
 
Join Date: Oct 2003
Posts: 681
Making an array will not take up less memory. Integers are always 4 bytes, and an array of them takes the same amount as seperate Integers.

You would also use an array of 13 integers to do 12 players, if you wanted to start at 1 and go to 12... but in the case of warcraft III it does not matter since it will not crash when you try to assign a value to an array that's higher than the size (They either use vectors[C++... so I doubt it] or just create a new array to resize it[Not specific to C++])
Darimus is offline   Reply With Quote
Old 01-18-2005, 05:45 AM   #16 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,127
All making an array does is to avoid confusion. As I said you're better off with income[11] then having 12 different incomes (YES, 0 is an index).
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now   Reply With Quote
Old 01-18-2005, 11:37 PM   #17 (permalink)
BattleForums Addict
 
Darimus's Avatar
 
Join Date: Oct 2003
Posts: 681
Not only does it avoid potential confusion [I've never used them because of this..], but they save alot of time, which is the main reason I use them.
Darimus is offline   Reply With Quote
Old 01-19-2005, 02:04 AM   #18 (permalink)
BattleForums Junior Member
 
Paella's Avatar
 
Join Date: Jan 2005
Age: 21
Posts: 46
JesusFreak I would just use an array and have it use the player number function to do the deaths count thing, actually that is how I did it in my Stalingrad map. Here is the code for kill count

Multiboard - Set the text for (Last created multiboard) item in column 3, row 3 to (String((Player 1 (Red) Heroes Killed)))
__________________
Resident Evil (With JesusFreak)
Paella is offline   Reply With Quote
Old 01-19-2005, 02:06 AM   #19 (permalink)
BattleForums Addict
 
Darimus's Avatar
 
Join Date: Oct 2003
Posts: 681
I don't see an array being used there o_O
Darimus is offline   Reply With Quote
Old 01-19-2005, 08:57 PM   #20 (permalink)
 
Chris's Avatar
 
Join Date: May 2003
Location: Temple Prime, Sarajevo
Age: 22
Posts: 16,127
Niether do I bro, neither do I
__________________



One Vision. One Purpose.
Through leadership in Kane, we seek a new Tiberium future.
Our stealth and advanced weaponry will bring swift death to any who oppose us.
PEACE THRU POWER!


Warlock-Rauteus - Zy-el Necromancer - Level 143 of 10000

My Personal Blog Page - Updated every Friday
Join the Phantasy Star Online sensation - ChrisH36
Chris is online now   Reply With Quote
 
Reply

Get rid of all these ads! Take 30 seconds to register.

« victory trigger help!!?? | color program »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off


All times are GMT +1. The time now is 06:33 AM.



Powered by vBulletin® Version 3.7.2 | Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0