Thank you, now it works. Can I ask why S0 -1 instead S-1?
Now I want to limit this script to only might heroes. I have two choices, using B2 or a loop command through Heroes IDs. The first one seems to work well:
!?HL-1;
!!HE-1:B2/?v234; **check for class
!!FU|v234=1/v234=3/v234=5/v234=7/v234=9/v234=11/v234=13/v234=15:E; **if magic class, exit
!!FU123&v123>=0:P;
!!HE-1:S?y1/?y2;
!!FU&y1=14/y2<2:E;
!!HE-1:S14/3 N?v123;
Are there any flaws?
Also can anyone link me to a script which doubles the spells damage (if cast at EXPERT level) and the right damage number shown in the magic book when opened? So far I can modify the damage but the real damage will not be shown before cast. Is it possible?
Edit:
After looking at last BAD's script, he choose the class using other:
!!HE-1:B2/?y-7 Ed/?y-8;
!!VRy-99:Sy-7 %2; // only for casters
!!FU&y-99=0:E; // exit the function, if it is a fighter class
I am not sure I understand the Sy-7 %2 part.
Also he increased the spells damage but using 3.59 !!SS command. Does this means 3.58 is unable atm to do it?
!!SS:P?y-2; **can be replaced with !?MG?
!!VRy-3:S10;
!!VRy-4:Sy3:4; 25% din spellpower
!!VRy-5:Sy4:4; 25% din knowledge
!!VRy-6:Sy-8*10:33; 30% din nivelul eroului
!!VRy-2:Sy-3+y-4+y-5+y-6; 25% din spellpower+25% din knowledge+30% din nivelul eroului
!!SS15:Py-2; Magic Arrow
(This post was last modified: 08.08.2009 09:35 by Valery.)