Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

Printing a result


  • Please log in to reply
9 replies to this topic

#1
Kypo

Kypo

    Advanced Member

  • Members
  • 400 posts

I want to print the final result of riven q, so see exact endtime when it finished casting Q. So I can see if I improved on doing her Animation cancelling or not...

 

I tried many ways I just can't get it to work how I want.

 

- I want the timer to start when: myHero:GetSpellData(Q).toggleState == 1 

- and end when i can't cast Q anymore, so : not Ready(_Q)

 

and print the final result like: print(r1-r2)

 

My approach was like:

r1 = Game.Timer()
r2 = Game.Timer()


if myHero:GetSpellData(Q).toggleState == 1 and Game.Timer() then
r1 = Game.Timer()
if not Ready(_Q) and Game.Timer() then
r2 = Game.Timer() 


print("Start Time: "..r1)
print("")
print("End time: "..r1-r2)

Game.Timer is nothing hard but I am waaaay to confuse, any help I would really appreciate!


  • 0

#2
Noddy

Noddy

    Surrender The Throne

  • Scripts Developer
  • 500 posts

Well you didnt rly say your results, but I would use .isDashing for this check.

local dashing = false
local timer = 0
if dashing == false and .isDashing == true then
  timer = Game.Timer()
  dashing = true
end
if dashing == true and .isDashing == false then
  print(Game.Timer()-timer)
  dashing = false
end



 


  • 0

#3
Kypo

Kypo

    Advanced Member

  • Members
  • 400 posts

Yours returns nothing, any other method than dashing returns 0, I don't understand why it doesn't calculate the startime - endtime


  • 0

#4
Noddy

Noddy

    Surrender The Throne

  • Scripts Developer
  • 500 posts

Sorry, but I will never give a fully working code.

As you can see it works fine, even with flash cancel.

5f4d8ab66ea80d95351828e2211907d0.gif


  • 0

#5
Kypo

Kypo

    Advanced Member

  • Members
  • 400 posts

But you are printing one dash, I want to start a timer when riven Q1, and when Q is on CD stop timer, it should be around 1.8 - 2.5


  • 0

#6
Noddy

Noddy

    Surrender The Throne

  • Scripts Developer
  • 500 posts

Dont own Riven but it should work the same just with a simple Spellname check on dash


  • 0

#7
Kypo

Kypo

    Advanced Member

  • Members
  • 400 posts

Dont own Riven but it should work the same just with a simple Spellname check on dash

It didn't work:( I even tried with her Q1 buff and Q3 buff sound, do you know another method?


  • 0

#8
DamnedNooB

DamnedNooB

    Advanced Member

  • Scripts Developer
  • 929 posts

It didn't work:( I even tried with her Q1 buff and Q3 buff sound, do you know another method?


Animation, particles, activeSpell checks, buffs, dashes as noddy said. All working to get you where you want, you should try and get a little creative ^^ (though you probably get most precise results with dash i think.)
  • 0

#9
Kypo

Kypo

    Advanced Member

  • Members
  • 400 posts

Animation, particles, activeSpell checks, buffs, dashes as noddy said. All working to get you where you want, you should try and get a little creative ^^ (though you probably get most precise results with dash i think.)


Well sorry, at that time it just wasn’t working, it was a problem with injection for some reason, I restarted the loader and worked. At this patch still works:) I got a 2.0 on her Q, is that the fastest she can get ?
  • 0

#10
DamnedNooB

DamnedNooB

    Advanced Member

  • Scripts Developer
  • 929 posts

Well sorry, at that time it just wasn’t working, it was a problem with injection for some reason, I restarted the loader and worked. At this patch still works:) I got a 2.0 on her Q, is that the fastest she can get ?


Quite some time i worked with riven, but 2 seconds sounds pretty fast (3*spelldelay+2 or 3 AA + movement/animation)
  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users