Waypoint scaling system

  • #10, by afrlmeThursday, 14. September 2017, 13:19 7 years ago
    execute a script >
    dest =
    {
     game.CurrentCharacter.Destination,
     game.CurrentCharacter.DestinationObject,
     game.DestinationCommand,
     game.DestinationEvent,
     game.DestinationItem,
     game.DestinationItemPicked
    }

    change way system to "x"

    As you can see, there's quite a lot of different tables when it comes to the destination. In my example I've stored them all inside of a table, so you could do that before executing the change way system action part & then afterwards you could insert those values back into the data structure fields like so...

    execute a script >
    if dest[1] ~= nil then game.CurrentCharacter.Destination = dest[1] end
    if dest[2] ~= nil then game.CurrentCharacter.DestinationObject = dest[2] end
    if dest[3] ~= nil then game.DestinationCommand = dest[3] end
    if dest[4] ~= nil then game.DestinationEvent = dest[4] end
    if dest[5] ~= nil then game.DestinationItem = dest[5]; game.DestinationItemPicked = dest[6] end


    We're checking which table entries are empty/nil so that we only update the ones we need. I don't know if it will work as I've not tested it, but you can try it & cross your fingers &/or toes.

    Imperator

    7278 Posts


  • #11, by cristianba223lerThursday, 14. September 2017, 13:45 7 years ago
    i will try this.
    Thank you for your help wink


    Update :  this works !!

    Newbie

    6 Posts