5&&$_SESSION['triche']==2)){ //changement de la var Triche pour règler le problème des niveau automatiques... if($_GET['choixChangementNiveau']<6){ $_SESSION['triche']=2; }else{ $_SESSION['triche']=3; } //le code pour le changement de niveau.. switch($_GET['choixChangementNiveau']){ case 0: //Force $_SESSION['Niveau']++; $_SESSION['xp'] = 0; $_SESSION['xpMax'] = round($_SESSION['xpMax']+($_SESSION['xpMax']/2)); $_SESSION['For'] = maxCent($_SESSION['For']+4); break; case 1: //vitalité $_SESSION['Niveau']++; $_SESSION['xp'] = 0; $_SESSION['xpMax'] = round($_SESSION['xpMax']+($_SESSION['xpMax']/2)); $_SESSION['Vit'] = maxCent($_SESSION['Vit']+4); break; case 2: //intelligence $_SESSION['Niveau']++; $_SESSION['xp'] = 0; $_SESSION['xpMax'] = round($_SESSION['xpMax']+($_SESSION['xpMax']/2)); $_SESSION['Int'] = maxCent($_SESSION['Int']+4); break; case 3: //sagesse $_SESSION['Niveau']++; $_SESSION['xp'] = 0; $_SESSION['xpMax'] = round($_SESSION['xpMax']+($_SESSION['xpMax']/2)); $_SESSION['Sag'] = maxCent($_SESSION['Sag']+4); break; case 4: //charisme $_SESSION['Niveau']++; $_SESSION['xp'] = 0; $_SESSION['xpMax'] = round($_SESSION['xpMax']+($_SESSION['xpMax']/2)); $_SESSION['Cha'] = maxCent($_SESSION['Cha']+4); break; case 5: //dexterité $_SESSION['Niveau']++; $_SESSION['xp'] = 0; $_SESSION['xpMax'] = round($_SESSION['xpMax']+($_SESSION['xpMax']/2)); $_SESSION['Dex'] = maxCent($_SESSION['Dex']+4); break; case 6: //Force $_SESSION['For'] = maxCent($_SESSION['For']+2); header("location:".$_SESSION['pageprecedentCombat']."?combatFini=1"); break; case 7: //vitalité $_SESSION['Vit'] = maxCent($_SESSION['Vit']+2); header("location:".$_SESSION['pageprecedentCombat']."?combatFini=1"); break; case 8: //intelligence $_SESSION['Int'] = maxCent($_SESSION['Int']+2); header("location:".$_SESSION['pageprecedentCombat']."?combatFini=1"); break; case 9: //sagesse $_SESSION['Sag'] = maxCent($_SESSION['Sag']+2); header("location:".$_SESSION['pageprecedentCombat']."?combatFini=1"); break; case 10: //charisme $_SESSION['Cha'] = maxCent($_SESSION['Cha']+2); header("location:".$_SESSION['pageprecedentCombat']."?combatFini=1"); break; case 11: //dexterité $_SESSION['Dex'] = maxCent($_SESSION['Dex']+2); header("location:".$_SESSION['pageprecedentCombat']."?combatFini=1"); break; } $_SESSION['FatigueActuelle'] = $_SESSION['FatigueMax']; $_SESSION['VitActuelle'] = $_SESSION['Vit']; CalculCaractAugmentee(TRUE); }else{ header("location:CasDeTriche.php"); } } } ?> Ville de Dragons
BRAVO !
Vous venez de passer niveau ".($_SESSION['Niveau']+1)."
" ."

Veuillez choisir la caracteristique principale
que vous désirez augmenter ( +4 ) :

"; }else{ echo "

BRAVO !


Vous venez de passer niveau ".$_SESSION['Niveau']."
" ."

Veuillez choisir la caracteristique secondaire
que vous désirez augmenter ( +2 ) :

"; } echo "
"; if (!isset($_GET['choixChangementNiveau'])){ if ($_SESSION['For']!=100){ echo "La Force"; } if ($_SESSION['Vit']!=100){ echo "
La Vitalité"; } if ($_SESSION['Int']!=100){ echo "
L'Intelligence"; } if ($_SESSION['Sag']!=100){ echo "
La Sagesse"; } if ($_SESSION['Cha']!=100){ echo "
Le Charisme"; } if ($_SESSION['Dex']!=100){ echo "
La Dextérité"; } }else{ if ($_SESSION['For']!=100){ echo "La Force"; } if ($_SESSION['Vit']!=100){ echo "
La Vitalité"; } if ($_SESSION['Int']!=100){ echo "
L'Intelligence"; } if ($_SESSION['Sag']!=100){ echo "
La Sagesse"; } if ($_SESSION['Cha']!=100){ echo "
Le Charisme"; } if ($_SESSION['Dex']!=100){ echo "
La Dextérité"; } } ?>
"; ?>