Author Topic: Movement & Dragging  (Read 9634 times)

0 Members and 1 Guest are viewing this topic.

Offline decloTopic starter

  • Jr. Member
  • **
  • Posts: 86
  • Activity:
    0%
  • Reputation Power: 2
  • declo has no influence.
  • Respect: +15
  • Referrals: 0
    • 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: 1208
  • Activity:
    0.6%
  • Reputation Power: 13
  • Tidus barely matters.Tidus barely matters.
  • Gender: Male
  • Mind Blown
  • Respect: +142
  • 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: