...

Wednesday, February 17, 2010

Anyway here's the first good post! Tada! This is the training script for a game. I cannot say which game, or it might lead newbies into the blog. Besides, this is mainly for my own (future self's) consumption anyway. This uses AC Tool, and features a customizable movement system.
SetActiveWindow

Constants
varChoice = 0
varDelay = 300
varJump = 5
End

While 1=1
//Move
Compute varChoice = Ceil(random(0)*4)
If $varChoice = 1
KeyDown w $varDelay
End
If $varChoice = 2
KeyDown a $varDelay
End
If $varChoice = 3
KeyDown s $varDelay
End
If $varChoice = 4
KeyDown d $varDelay
End
//Jump
Compute varChoice = Ceil(random(0)*$varJump)
If $varChoice = 1
Keys {space}
End
//Start/Attack
Keys 3
LeftClick
End
This script allows really random movements (customizable through the variables at the top). Good for training your shooting (here's a hint). You can also restrict to left/right movements by changing the first random(0)*4 to random(0)*2. The varJump determines the probability of the character jumping. The lower the number, the likelier.

No comments :

Post a Comment

<