At the moment, there isn't a great way (that I've found) to swap tiles in rooms different than the one the player is in. In fact, many situations where a player's actions change something in a different room are hard to implement without global variables. One possible solution is by allowing something like
tell event.x, event.y in stringRoomName to
//do something like swap, call, etc
end
just like how it's set up in goto. Interestingly, the above code does compile but pulp thinks event.y in stringRoomName
is a variable, so it's equivalent to tell event.x, 0 to
I have a hunch that only one room can be "run" at a time with Pulp. In this case, maybe internally Pulp can just buffer any calls to a tile in a specific room, and automatically call them on entering that room. This would at least work for swapping. Thanks!