• 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.

Big Help Needed

Status
Not open for further replies.
Level 2
Joined
Oct 5, 2008
Messages
7
im working on a big map and iv come across to a very big problem

i am building a turn base game that works in this order


1) attacker chooses units to attack with (units are locking into position)

2) defender chooses units to block and what unit they will be blocking(units are locking into position)

3) if an attacking unit is blocked by more than 1 unit, the attacking player chooses how much damage goes to each of the blocking units

4) damage is dealt


(note: currently im making units unable to move by changing their ownership to a neutral player without changing their color.)


my problem is with step 3
i could do this with chat commands but i think it would be more user friendly if there was some in game way of doing this


example:

attackers = X1, X2
defenders = Y1, Y2, Y3

X1 is blocked by Y1
X2 is blocked by Y2 and Y3

attacking player now chooses how much damage goes to Y2, and Y3 (requirment: damage dealt to Y2 + damage dealt to Y3 = X2 total damage)


if anyone can help me out with this would be greatly appreciated
 
Level 2
Joined
Oct 5, 2008
Messages
7
my map is Magic: The Gathering Card Game

so the units take place of all of the cards

ill try to explain what i need better:

2b98ac666ee993d0c5c79af6a1699651_5097.bmp



when a player begins to attack, their units create a formation in the middle.
when the defender chooses units to block and what units they will b blocking, they move to the middle in front of the units they are blocking

fa8d66a7e673b022cfebee2936f1ab12_5096.bmp


i need a way so that after the defending player chooses all of their blockers, the attacking player can divide the damage of a unit among all of the units blocking it

so in the bottom picture, the unit to the far right is being blocked by 2 units, the owner can choose to have some of the damage go to one of the units and the rest go to the other.
this needs to be decided before the actual damage is dealt

my initial idea of doing this would be with a series of abilities that would allow the controller to specify how much damage they want to go to each unit

the problem with this is that i do not want the units to be able to move
the only way iv found to make that work was either by pausing them, or by changing their owner to a neutral. this would make it so the owner can not cast any spells from that unit
 
Status
Not open for further replies.
Top