• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Board Game -- Warcraft Party? haha.

Status
Not open for further replies.
Level 4
Joined
Oct 23, 2006
Messages
65
Anyways, I'm trying to create a sort of Warcraft Party Board Game (Like Mario Party!) only I have no idea how to go about setting up the movement. Any ideas on how to even approach this? Players must be able to move forwards, but not back, and must move the amount of spaces they rolled.

In addition, another problem is that there will be multiple paths in some points, meaning that I can't simply 'warp' the player to the location x spaces ahead (which would be much simpler), because they can choose to go different ways!

Oh, man. In over my head! I know I can do it though, I'm just trying to figure out how I should even approach it. Are there any maps you know of which are set up like a board game that I could look at?
 
Level 4
Joined
Oct 23, 2006
Messages
65
low-life said:
approach what? creating monopoly-like board game? create N regions, put them into single array, and move your unit to center of n-th region whenever he's supposed to move.
No, a game like Mario Party. There will be forks in the path, and also I don't want the player to be able to move their 'piece' freely around wherever they please. Also, I can't have them moving backwards either.
 
Level 8
Joined
Feb 10, 2006
Messages
466
Now we're talking.
You should create an array of nodes. Probably something like this:

node0 connected to node1
node1 connected to node2 and node3
node2 connected to node4, node5, node6
node3 connected to node7
(and so on)

Each node wil have its region on map, and list of nodes it's connected to; they will togeter make your whole path.

NodeRegion[] <- array of regions
NodeConnection[] <- array of integers

Assuming node can't be connected to more than 4 other notes (in our case node2 is connected to three nodes):

NodeRegion[0]={Region of node 0, place on map where players start}
NodeConnection[0]=1 (node0 connected to node1)
NodeConnection[1]=-1
NodeConnection[2]=-1 (and to nothing else)
NodeConnection[3]=-1

NodeRegion[1]={Region of node 1, some place on map}
NodeConnection[4]=2 (node1 connected to node2)
NodeConnection[5]=3 (and node3)
NodeConnection[6]=-1 (and to nothing else)
NodeConnection[7]=-1

NodeRegion[2]={Region of node 2, some place on map}
NodeConnection[8]=4 (node2 connected to node4)
NodeConnection[9]=5 (and node5)
NodeConnection[10]=6 (and node6)
NodeConnection[11]=-1

NodeRegion[3]={Region of node 3, some place on map}
NodeConnection[12]=7 (node3 connected to node7)
NodeConnection[13]=-1
NodeConnection[14]=-1
NodeConnection[15]=-1

--- and keep going:

NodeRegion[n]={Region of node n, some place on map}
NodeConnection[4*n+0]=
NodeConnection[4*n+1]=
NodeConnection[4*n+2]=
NodeConnection[4*n+3]=

When it's time to move, do following:
Roll a dice, get a number.
If there is only one connection in current node, move unit to connected node
Else ask player where to move, and move unit accordingly
Reduce number by one, and repeat until number is zero.
 
Status
Not open for further replies.
Top