Signup Now
Results 1 to 3 of 3

Thread: Steps, SQM

  1. #1
    Free User
    Join Date
    Jul 2014
    Posts
    9
    Reputation
    10
    Rep Power
    0

    Steps, SQM

    Its merely a case of patience but i was wondering if its possible to show a counter for how many steps you have taken - Its for the achievements underwater, fire walker and swimming? If its simple and easy could somebody point me in the right direction? rpg for the win

  2. #2
    Wind Tester
    Join Date
    Dec 2013
    Location
    Warsaw, Poland
    Posts
    2,579
    Reputation
    149
    Rep Power
    27
    Well, its easy to make steps counter in general, but without list of underwater,snow etc IDs, i think it is impossible/hard to make detailed one (well, fire one is easy).
    Last edited by Imba; 11-01-2015 at 07:47 PM.

  3. #3
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,821
    Reputation
    220
    Rep Power
    26
    You can do simple hud like this.
    Change third line number after init start to number of steps you have already taken


    init start
    $chardb:setvalue('lastCoords', 'posx', $posx)
    $chardb:setvalue('lastCoords', 'posy', $posy)
    $chardb:setvalue('charSteps', 'steps', 0)
    init end

    auto(100)

    drawtext('You have taken ' .. $chardb:getvalue('charSteps', 'steps') .. ' steps.', $worldwin.left + 50, $worldwin.bottom - 10)

    if $chardb:getvalue('lastCoords', 'posy') ~= $posy or $chardb:getvalue('lastCoords', 'posx') ~= $posx then
    $chardb:setvalue('lastCoords', 'posx', $posx)
    $chardb:setvalue('lastCoords', 'posy', $posy)
    $chardb:setvalue('charSteps', 'steps', $chardb:getvalue('charSteps', 'steps') + 1)
    end

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •