Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fast loop question
#5
Code:
Copy      Help
rep
,rep 2
,,rep 25 ;; Main loop
,,,key+ w
,,,key+ c
,,,key r
,,,2
,,,key 1
,,,rep 15
,,,,lef
,,,,2
,,,1
,,,key- w
,,,key+ s
,,,0.1
,,,key- s
,,,key- c
,,,1
,,,key r
,,,2
,,,key 5
,,,2
,,,lef
,,,100
,,,key w
,,,3
,,key 7 ;; Key pressed to change to 2nd weapon
,,1
,key 8 ;; Key pressed to change to 3rd weapon
,1
Simply this macro does the main loop 25 times then presses 7 to change to a new weapon and does the main loop 25 times and presses 8 to change to a new weapon to do the loop 25 times.

I would like to setup an array.
Where if I had 2 weapons it would run the main loop twice or if I had 4 weapons then it would run the main loop 4 times instead of having to stack these unsophisticated loops. I would like the array to allow me to change the amount of times the main loop reps per weapon.

For instance:
key 7; 25
key 8; 20
key 9; 15
key 0; 30

I'm not sure if this is something easily done in QM. Thanks for your help.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)