I don't understand the Invoker ("classic" trainer) or what you are trying to do in your code but:
It's k, I was expecting DotA 2 players here since it's quite popular, right after League of Legends!
I want to combine three letters (QWE) in all ways possible (10)! (I think it's called Permutation).
Although it's really not important to understand this for the code I'll give an example,
In the screen it will appear one random skill from 10. If it was "
Ghost Form" the user would have to type: QQW then press R. The QQW can be in any order. (QWQ or WQQ)
- Do you want your array randomPossibilities to be any random number from 0-9 with duplicates or a unique number?
To be a unique every time.
To generate 10 numbers, 10 times, never repeating! (I have a better idea of how to do this now actually. Must save all results and make it compare. It's supose to be doing random untill all 10 results are different).
- What are you trying to do in your case statement? You seem to be trying to check if one of the values is 10 and if not then set it to 10 but your random number generator will never set a value of 10.
The case is for all the 10 skills:
0: begin
writeln ('Cold Snap'); »» this is the skill name, which right combo is 'QQQ'.
(...)
end;
^ If the key input by user doesn't match QQQ it doesn't come out of the case, so there will be a repeat.1: begin
writeln ('Ice Wall'); »» Another skill name, combo is 'QQE'.
(...)
end;
Ofc that is just so u can sort of visualise what the case is for. (for the all the 10 skills)[/list]