I am looking to add another layer to my warframe script, and possibly to combine 2 scripts in one.
1) Extra layer to the script:
Currently I have a script to do the following:
q= special attack (Press once =one attack, hold=continuous)
e= continuous melee attack
r= rapid fire auto attack
Now what I want to do, is that if I toggle "Home"
That it changes the keybinds from my numpad to add different variables.
(In this game they are for different weapons, as each weapon has a different attack speed)
And that my Q action reads the weapon speed that is selected by Home>Numpadkey and puts that as the delay between attacks.
So that if a weapon has a speed of 1 shot per second, that it would add the delay needed not to repeat the command that second.
This is the code that I have now:
;Pause is on and off toggle for this part of the macro
Pause::
Suspend
Pause,,1
return
;Q is special attack
q::
if(not slideAttackActive) {
slideAttackActive := true
Send, {lshift down}
sleep, 30
Send, {WheelUp}
sleep, 520 ; This is the value that should be dependend on the weapon that is selected by Numpad1-9
Send, {lshift up}
slideAttackActive := false
}
Return
;R is auto fire for rifles
r::
Loop
{
if not GetKeyState("r", "P")
break
Send {LButton}
}
return
;E is automatic quick melee
e::
Loop
{
if not GetKeyState("e", "P")
break
Send {WheelUp}
}
return
Does anyone have an idea how to do this?
I was trying something like this:
;Pause is on and off toggle for this part of the macro
Pause::
Suspend
Pause,,1
return
; Set base attack delay
BaseAttackDelay := 100
AttackDelay := BaseAttackDelay*WeaponSpeed
;Q is special attack
q::
if(not slideAttackActive) {
slideAttackActive := true
Send, {lshift down}
sleep, 30
Send, {WheelUp}
sleep, AttackDelay
Send, {lshift up}
slideAttackActive := false
}
Return
;R is auto fire for rifles
r::
Loop
{
if not GetKeyState("r", "P")
break
Send {LButton}
}
return
;E is automatic quick melee
e::
Loop
{
if not GetKeyState("e", "P")
break
Send {WheelUp}
}
return
;Home is on and off toggle for this part of the macro
Home::
Suspend
Pause,,1
return
Numpad1:: {
Weaponspeed := 450
}
return
Numpad2:: {
Weaponspeed := 375
}
return
================================================================
2) Is it possible to combine these scripts:
I got the above script as one script that I'm running,
Next to that, I have another script running that when toggling "Delete" that it changes the Numpad in different text messages that I send.
Is there a way to combine these two scripts?;Delete is aan en uit voor chat macros
Delete::
Suspend
Pause,,1
return
;numpad7 is LFG
Numpad7::
Send, Looking For Group to Disney Land
Return
;numpad8 is LFG2
Numpad8::
Send, Looking for Group to Lala Land
return
;numpad9 is WTS
Numpad9::
Send, Hey! I want to Sell my Dirty Socks
return
RIght now I tried combining them, but due to the first script using E R Q as keybinds, those letters will get removed from the messages in the second code.
The combining of the scripts is only an extra of convenience. However, the first question in this post has my highest priority! So any help with that would be much appreciated.
P.s. Using quote tags because the code tags dont seem to work.