salut ,

voila je voudrais en gros que le message ALERT retourne les chiffres correspondant..
regardé vous allez comprendre.
ça c'est la partie de la source qui m'interresse
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
 
<table width="100%" class="table_lines" border="0" cellspacing="0" cellpadding="6">
 
<tr>
<th colspan="2">Military Stats</th>
</tr>
<tr>
<td>Strike Action:</td>
<td>???</td>
</tr>
 
<tr>
<td>Defensive Action</td>
<td>58,344,044</td>
</tr>
<tr>
<td>Spy Rating</td>
<td>3,480,986</td>
 
</tr>
<tr>
<td>Sentry Rating</td>
<td>???</td>
</tr>
</table>
Comme vous pouvez voir , il est possible que les nombre soit remplacés par des '???' des fois .. mais c'est pas grave .. je me débrouillerais avec .. je sais déja comment faire .. le problème est en fait de récupérer les 'nombre' dans des variables :/

ça c'est le code que j'ai fais .. tout est faux .. (c'est pour ça que je dis que j'ai besoins d'aide)


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
 
var sen = 0;
var SENTRY = 0;
var sp = 0;
var SPY = 0;
var def = 0;
var DA = 0;
var att = 0;
var SA = 0;
if (sen == 2) {
alert('nom:' + reconnick + 'SA' + SA + 'DA' + DA + 'SEN' + SENTRY + 'SPY' + SPY);
}
 
if (sen == 1) {
var SENTRY = /<td>(.+)<\/td>/ig;
var sen = 2
}
if (/<td>Sentry Rating<\/td>/ig) {
var sen = 1;
}
 
if (sp == 1) {
var SPY = /<td>(.+)<\/td>/ig;
var sp = 0;
}
if (/<td>Spy Rating<\/td>/ig) {
var sp = 1;
}
 
if (def == 1) {
var DA = /<td>(.+)<\/td>/ig;
var def = 0;
}
if (/<td>Defensive Action<\/td>/ig) {
var def = 1;
}
 
if (att == 1) {
var SA = /<td>.+<\/td>/ig;
var att = 0;
}
 
if (/<td>Strike Action<\/td>/ig) {
var att = 1;
}
merci d'avance car je ne trouve aucun tuto partant de zero pour le scripting GM ... :/