Making BoardGame template for MV

I will post boardgame questions here. 
Goal is to use little or none lines of code. Setup with events and variables. 
Making a monopoly styled game and when the board is complete I will add RPG elements to it so that if I own the "railways" MY monster stands there waiting to fight other players. 🙂  cool huh?!


More questions below. Progress is rapid so I recomend reading from latest post and up If you want to help out 🙂


Fixed: Used variables to see where the players are.Could someone please guide with a problem I have. Im making a boardgame in rpgmaker and when my characters is hitting corners they stop, cus they are only told by the dice to move forward. so Im thinking about adding touch events in the corners but how can the conert tell a specific event that touches it(not player) to turn left?


if anyone has any other inputs on boardgames for rpgmaker mv tell me. 

I will post what I learned in this project and demo when its done
Seeing your event would help, but at the top of my head, couldn't you make a single variable called Direction?
Hitting the corner will turn the variable on, and based on the corner, you can set it to a number that corresponds with the direction (for example, 1=Up, 2=Down, 3=Left, 4=Right). 


If it's a crossroad, you can have a show choice command to choose which direction you like.
After that, just have conditional branches for each direction, and under each conditional, add a "turn up" move route for the player/event.

I'm not sure how your movement event works for after you roll the dice, but you should be able to set a variable to "spaces remaining" then adjust the move route as needed. Once again though, seeing your events will help solve this better and faster.
EDIT: made it with variables and adding one for each step. That way I always know where the players are. 

Spoiler
Untitled-2.jpg





Im thinking about how to make it four players. Maybe using a single variable making it 1-4 and another variable keeping track on whos turn it is. Happy to hear about ideas if any has 


EDIT2: Im still wondering if RPGMaker can do "IF something touches this, DO this to it"
EDIT2: Im still wondering if RPGMaker can do "IF something touches this, DO this to it"



@Martin...


Maybe a better notion would be 'When something touches this, Do this ...' Maybe you could do a screen shot so that we might see the circuit to be followed..? It sounds very feasible, and an interesting concept for a Project. Given the circuit and a brief description of your Game play, I'm sure there'll be several potential ways of achieving this.
Its like, I want to make the tiles activate when players (event 10-13) lands on it. But I cant find in RpgmakerMV how to do it. 

I have controllers of whos turn it is  So its like variable 5 is set to: 1,2,3 or 4


so on step 5 you land on chance.  I made the following:


If 1
 text: player one landed on chance


If 2
 text: Player two landed on chance
etc.

I set it to event touch but nothing happens. I maybe going on it the wrong way here
@Martin...


I'd like to see exactly how you're going about this, and am interested in the concept. There seem to be some fundamental misunderstandings, however. Is there any way to 'zip' your Project and make it available to be seen..? Failing that, when you say 'land on chance', what is actually moving on your Map..? I understand that a virtual Dice has been rolled; what is the sequence of Events from then on..? Can we have a screenshot of the board, please..? Is it similar to a Monopoly board, or more like Snakes and Ladders, or Ludo..? Is this your first Game using MV..? I'd be happy to try to help, but I will need a starting point, to be able to simulate what you need at my end. Thoughts, please..?
Please read. There is a screenshot above. I have a dice. This tells the events to move. (Player 1-4) and i have the events (player 1-4)


when player 1-4 gets variable 8 they turn im the corner. Same with 22 29 and >43 (all corners) 


thats it. I should really not need to post a zip file for that.


- monopoly style


- I have made some games in Rpgmaker before.


- Need something like "When something lands on me start common event"
Make the die store a variable "Die".


Make an "on touch" event for each tile that (runs a conditional branch):


- If Die > 0, move character one step;


- Else (thus, if Die = 0 or less), run event;


Depending on your boardgame style, this can be as easy as making north/east/south/west pacing base event, and allows you for "if you land on this square, move two forward".
I've actually been working on such a system. It's complicated. 😀


What I did was to paint the borders with a region tile. Then I set up a looping event that would check the player's facing direction, check their XY coordinates, add 1 to X or Y depending on the direction faced and then check the region of that tile. (So, basically having it check whether the next tile is passable or not.) Then if it the tile is passable, it moves the player 1 step, adds 1 to a variable, checks that variable to see if it matches the die number. If it does not, it repeats. If it does, the turn is ended. I actually used paper to draw out a flow chart of all the steps.


It's working pretty well. There is one tiny, insanely specific glitch where under a certain circumstance, it moves 2 spaces instead of 1. I haven't sorted yet why, lol.


As for having more than 1 player, my next step I was working on was to have 1 event for the player movement and 1 event for the computer movement, where it is the same basic event as the player, but uses differently named variables.


I honestly don't know if my way is overly complicated or not. You could also possibly look into using region scripts. I contemplated it, but I was in a very stubborn mood and was trying my best to do it with events only.
Yes, this ^^ is roughly how I'm looking at this (by default, without any lore info as to the OP's needs...). I have a Common Event checking the Player's Counter (An Event with a Horse 'Vehicle'...). The Circuit is a square pathway, 20 x 20, 2 TIles wide. This allows 'Squares' of 2 x 2, so accommodating 4 Counters. Each Counter will occupy its own space in the 2 x 2 Square. A dice roll moves the Counter forward by multiples of 2 Tiles (so keeping the same space in the destination 2 x 2 Square...). If the Square destination is a Corner, the Counter turns Right. (the Game starts lower right, and always goes clockwise...), and the direction is changed for the next Steps. I've not yet got the other 3 Counters in there, yet, but it's advancing. Any Square landed on could set of an Event, either Random or pre-set. I'll post more when it's a bit more advanced...
Make the die store a variable "Die".


Make an "on touch" event for each tile that (runs a conditional branch):


- If Die > 0, move character one step;


- Else (thus, if Die = 0 or less), run event;


Depending on your boardgame style, this can be as easy as making north/east/south/west pacing base event, and allows you for "if you land on this square, move two forward".



I cant have each tile controll that. I think, or could you try making me an example? 
OK, My dice an players are still working fine. I need something to happen when they land on the tiles. 
For example tile 8. It is done with variables. Whoplays=1 and WhatTile=8 

Everything I try goes wrong. Either the text  "player lands on 8" happens because the value of WhatTile was 8 for a secound, but Player1 is actually landing on 10. 
So the event is starting everytime you pass the tile too, not only when u land on it. 
 


Cant events collide and make something happen?

Spoiler
6546437577777.png

552452322222.jpg
I cant have each tile controll that. I think, or could you try making me an example? 



@Martin...


Here's my Board Project, 'zipped', that you can download from my Google Drive. It's laid out like a Monopoly board (with just a dust path, though...), and 4 Counters, one for each Player. I can't get the Board to fit on one screen (it's 20 x 20 tiles; if someone knows how to fit that into a Window, and thus avoid scrolling, please..?). A touch on any Dice will throw, and that Player's Counter will advance that many squares, turning the corner if necessary? It's then the next Player's turn etc...  A touch of the central Event will advance artificially the next Player; it was just for testing, but I left it in.


I've not done detection of the destination, but that's easy enough, depending on whether each Square has a fixed Event, or if random stuff is to occur. I've not dealt with throwing a double, and so having another 'roll', but that's not difficult either.


Have a look, anyway, if you want, and see if it helps at all. If you need any more info, or any further functionality, just say, and we'll see what can be done. Here's the link...


Board.zip (60 Mb...) ...


...and a screen shot ...

Spoiler
YIa41Pd.png



Hope this helps.
Thank you I will download and see tomorrow morning. But it is the landing i dont figure out. 


If something lands here do that only one time. How do I make that?
@Martin


Every time a Counter moves forward, I get it to check for Corners...


◆Control Variables:#0001 Counter_1_X = Map X of Counter_1
◆If:Counter_1_X = 0
  ◆Control Variables:#0002 Counter_1_Y = Map Y of Counter_1
  ◆If:Counter_1_Y = 18
    ◆If:Turn is ON
      ◆Set Movement Route:Counter_1 (Wait)
      :                  :◇Turn Up
      ◆Control Variables:#0011 Direction_1 = 2
      ◆Control Switches:#0001 Turn = OFF
      ◆
    :End
    ◆
  :Else
    ◆Control Switches:#0001 Turn = ON
    ◆
  :End



It's not difficult to have a Common Event called up at each Step to check the coordinates in a similar way,and decide if there's something to do. If there is, it could set a Switch so that it doesn't occur again.


Can you give a concrete example of exactly what is to happen at exactly which spot..? I could then build a method in for whatever it is..?


My Project is all about Events, as I'm not capable (yet, if ever..!) of coding Scripts and plug-ins in js. Things like using arrays become so much easier. My way is clumsy and primitive,but could, at least, serve as inspiration of the principles used. It could all be coded in far better style in js, but, for now, it is what it is.


I'll add comments to the Project to make it a bit more 'readable' and update it later on this evening...
okay. Il try 🙂  Thanks for the demo i tested it now. 


Lets just say you want a text field that says who lands on it to start with. The event i made was =8 so the text field started as soon as PlayerOne (players are still just normal events)


walks by it, even though its the tile 10 playerOne finaly lands on. How to controll the landing and happening of landing on that tile? All my tiles will have happenings. Im making monoply style. 

Im posting pictures one more time. see spoiler here.
 

Spoiler
6546437577777.png
You see here I tried to make a controller variable 0015: Player-1UsedTile 0=off 1=on. 
So that the event dont start more than once for each player. even when its the next turn




552452322222.jpg
Why is nothing happening when Event Touches this??  Event is the chicken you see there. Its player one. 
@Martin...


Well, I've just uploaded a newer version, with Special' Events on some squares (and treatment of having another throw if there's a Double thrown..!).


Frankly, I'm doing this the opposite way around. The Counters on the Board (like in Monopoly; the Horse, the Airship, the Balloon, the Cart...) are just passive Events; they do, of themselves, nothing at all, except exist. My Actor, who can move about, can throw a Dice. Depending on the Throw, and whose turn it is, one of the Counters will be moved by way of a Move Route, which is part of a Common Event, not in the Counter at all. Whilst in motion, the Common Event checks for a Corner, and adjusts the Direction of the Counter. Only when the Move is finished, and the counter arrived at a destination, is there a second Check, to see if it's a 'Special Event' (I only have 3, but there could be one on every Tile; it doesn't matter...). This, then, is only only triggered once the Move is complete, so I can pass over any number of 'Special Events' without triggering them, as they are not, in fact Events on the Map. They are simply coordinates that I choose to test once destination is reached.


It becomes a little bit complex when there are dozens, but it's really only a matter of organisation and patience. I could do tests for every square (and I've the added complication of having 4 Counters co-resident on the board all of the time; my squares are 2 Tiles square so that they can all sit comfortably together.


How many Counters (or whatever you'd like to call them...) do you have on your circuit..? How many Tiles square is the Board..? I'm assuming still that the circuit is rectangular (or square like mine...), with no twists or turns, just 4 corners.


I've added comments to my Project now, so if you'd care to download it again, and have a look at its construction, it may provide clues for your own Project..? I'm not using colliding Events, I'm pushing, by way of Common Events, the pieces around the board by remote control.


Does any of this help..?
Thats very nice of you, thank you. But I hoped someone could answer my simple questions. 
...simple questions. 



But are those questions as simple as all that..? How can the machine know that you're just 'passing through'..? To a Tile (or Event...) a touch is a touch. There's not much intelligence there..! I'll have another think, and see what I can come up with, though. Maybe make the Event that's moving take on the 'Through' option until the destination is reached..? Hmm...


I'm still not sure how, in your Game, the pieces move along the circuit, or how the dice are rolled. Are the pieces controlled by the Player directly, like the Actor..? Is there only one piece going around the circuit, or several..? Is it the Actor himself going around the circuit..? You're not replying to these questions yourself, either..! 
XHlPYfU.png



I'll keep trying things, just the same...
...
Why is nothing happening when Event Touches this??  Event is the chicken you see there. Its player one. 



I'll answer this question, though, by saying that it does work, but the Chicken cannot occupy that Tile unless the Event is set to 'Priority 'Below Characters'. Put a Text Box saying 'Chance Card has been touched...' at the top, before any of the conditions, and try again; I'm sure you'll see the Text when the Chicken reaches that square. If that's the case (it is when I set up a Board like this...), use 'F9' to see what value your Variables have. I'd suggest that the Variable '_WhoPlays' does not have a value of 1, 2, 3 or 4, and therefore the Text Box 'Player x lands here' is not displayed. How is the '_WhoPlays' value set..?

Original thread: https://forums.rpgmakerweb.com/threads/making-boardgame-template-for-mv.67802/