Author Topic: Movement & Dragging  (Read 12559 times)

0 Members and 1 Guest are viewing this topic.

Offline decloTopic starter

  • Jr. Member
  • **
  • Posts: 90
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +16
  • Referrals: 1
    • View Profile
Movement & Dragging
« on: March 02, 2015, 04:03:27 PM »
0
I know I have read somewhere that you can do an IF Than to check if your dragging something to avoid moving while dragging.  Could someone enlighten me please.

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: Movement & Dragging
« Reply #1 on: March 03, 2015, 07:24:18 AM »
0
Well if you are talking about going between two EUO scripts, you would want to make yourself a global variable. (Atleast this is what i have done).

So in your drag drop

Finditem XXX G_5
  set *dragging #true
  for #findindex 1 #findcnt
  {
    Exevent drag #findid
    wait 10
    Exevent dropc %box2
    wait 20
  }
  set *dragging #false

Now all you need to do is make a check for whether *dragging is #true in your movement sub
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Tags: