• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

capture the flag/score board

Status
Not open for further replies.
Level 3
Joined
Jan 7, 2013
Messages
16
hi im busy creating a map and ran into another problem i cant find how to add capture the flag to my map

heres what i wanna do i want to add 7 flags on my map that must be picked up by the hero when a flag is picked up 1 point must be added and when the flag is dropped by the hero dying 1 point must be subtracted and the flag must return to its original position on the map ( secondary problem being i dont know how to make a score board ) the first person to 7 points wins

can anyone explain to me how to do this please will be greatly appreciated
 
Last edited:
Level 17
Joined
Nov 13, 2006
Messages
1,814
have i guess a easy way:
have a bit more efficient way but i tell what is most easy

1)
-create 7 region (if 7 flag for 7 player in ur map), for each region create a event like:
-Event: unit enter to Red region
-Action: if it is player 1 (so red play, or if yellow region then yellow player so etc) then check if he got the one from other 6 (six because player red cant bring there his own flag) flag in inventory (hero carried item type) then increase the player variable array (flag=integer variable array, and increase like this: flag[1] = flag[1] + 1, index is 1 because we talked about red player but if blue then index is 2, etc)

2) create 7 flag item (set to true in object editor when carried hero die then drop it and change to item model to a imported flag model or just use wc3 human/orc flag model so if when item on ground then its look like flag)
so again that 7 flag must be created in center of 7 region (each player 1 flag item to region center)

3) bring pack the item to base
Event: when unit aquired a item
Condition: for player 1 the red flag item, for player 2 the blue flag item etc or use array
Action: remove item from hero and create 1 to his region center

4)if a hero die then drop all 7 flag type



for score board use multiboard, u can see few easy multiboard in spell section
 
Level 3
Joined
Jan 7, 2013
Messages
16
have i guess a easy way:
have a bit more efficient way but i tell what is most easy

1)
-create 7 region (if 7 flag for 7 player in ur map), for each region create a event like:
-Event: unit enter to Red region
-Action: if it is player 1 (so red play, or if yellow region then yellow player so etc) then check if he got the one from other 6 (six because player red cant bring there his own flag) flag in inventory (hero carried item type) then increase the player variable array (flag=integer variable array, and increase like this: flag[1] = flag[1] + 1, index is 1 because we talked about red player but if blue then index is 2, etc)

2) create 7 flag item (set to true in object editor when carried hero die then drop it and change to item model to a imported flag model or just use wc3 human/orc flag model so if when item on ground then its look like flag)
so again that 7 flag must be created in center of 7 region (each player 1 flag item to region center)

3) bring pack the item to base
Event: when unit aquired a item
Condition: for player 1 the red flag item, for player 2 the blue flag item etc or use array
Action: remove item from hero and create 1 to his region center

4)if a hero die then drop all 7 flag type



for score board use multiboard, u can see few easy multiboard in spell section

thanks:goblin_good_job::goblin_good_job: will go try it out now

ok 1 question what is the action(name) i need in step 1
 
Status
Not open for further replies.
Top