is it possible to do a multiple variable cin line
e.g.

user types:
west 1200

it activates an if statement for the string if the first variable is set to 'west' and then moves the character that many paces

this is for a test-based rpg, sorry if this is the wrong board