What changed?

Home Forums Wayward What changed?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4658
    JamesIII
    Moderator

    I can no longer use the changeTile command. When I enter as I normally would, no change to the corresponding takes place. Has the format changed for doing this?

    #4666
    Orillian
    Member
    /**
     * Change the current tile
     * @param newTile object (object variables: type (required), strength, mindur, maxdur)
     * @param changeX int
     * @param changeY int
     * @param stackTiles boolean <---if you set this to false or leave it off it will overwrite the current tile, true stacks.
     */
    function changeTile(newTile, changeX, changeY, stackTiles)

    examples:

    changeTile({type: 'cobblestone'}, player.x, player.y, true);
    changeTile({type: 'cobblestone', mindur: 8, maxdur: 12}, player.x, player.y, false);

    Hope that helps.

    O.

    • This reply was modified 10 years, 8 months ago by Orillian.
    #4668
    JamesIII
    Moderator

    Perfect, thank you very much. Also, would it be possible to create a saved game stat that is comprised of everything that is on the map, which could then be used like a new map generation? What I mean is, could you save your world, leave, then return to that world later using that saved game state as the new world thats loaded. The benefit of this would be you returning to your saved map with the inventory of your adventures elsewhere, while at the same time, all the treasure on your old map would be there waiting for you. I don’t know if a sort of “Home Base” idea is something you guys are interesting in having in your game but I think it could be a really cool addition. Sorry for the bad grammar n stuff, my engrish bad.

    Cheers, JamesIII

    #4669
    Orillian
    Member

    No worries about your grammar, English is my native language and I don’t do much better! 😛

    As for the home base type idea…..maps are currently independent of the player and you could theoretically save them away from the rest. We don’t have anything in place for that at the moment, but it wouldn’t be all that hard to convert the save load mod to just save world maps.

    O.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.