Page 1 of 1

skill question

Posted: Wed Aug 31, 2005 8:14 am
by Solace
new const Float:p_critical[3] = {0.25,0.50,0.75} // Critical Strike

is this line setting the % of crit strike to occur ? or is it setting the multiplier of dmg
and if so shoudlent it be .25 .25 .25 not .50 .75 woudlent that be making a 50% and 75% chance of this skill occuring?

Posted: Wed Aug 31, 2005 11:16 am
by Geesu
it's actually not used anywhere :P

Posted: Wed Aug 31, 2005 7:36 pm
by Solace
this is in the contants.inl im just asking what the values set towards orcs skill number 1 being critical strike ...

Posted: Wed Aug 31, 2005 10:20 pm
by Geesu
that is in constants.inl... but that variable isn't used anywhere

it's a 20% chance for orc crit strike for each lvl

Posted: Wed Aug 31, 2005 11:25 pm
by Solace
so it gose 20/40/60% ? any possible way to edit the % i have no clue where to change it if not in contants.inl also the dmg multiplier where is the area to tweak that around[/b]

Posted: Thu Sep 01, 2005 1:16 pm
by Geesu
no... 20/20/20

the amount of dmg increases w/each lvl... its in events.inl somewhere

Posted: Fri Sep 02, 2005 3:48 am
by Solace
// Orcish Horde
else if ( Verify_Race(attacker, RACE_ORC) ){

// Critical Strike
if ( Verify_Skill(attacker, RACE_ORC, SKILL1) && !p_data_b[attacker][PB_HEXED]) {
new Float:randomnumber = random_float(0.0,1.0)
if (randomnumber <= CRITICAL_STRIKE_CHANCE){
tempdamage = floatround(float(damage) * p_data[attacker][P_SKILL1])

WAR3_damage(victim, attacker, tempdamage, wpnindex, hitplace)
if (iglow[victim][0] < 1){
new parm[2]
parm[0] = victim
set_task(0.01,"glow_change",TASK_GLOW+victim,parm,2)
}
iglow[victim][0] += tempdamage
iglow[victim][1] = 0
iglow[victim][2] = 0
iglow[victim][3] = 0
if (iglow[victim][0]>MAXGLOW)
iglow[victim][0]=MAXGLOW

Create_ScreenFade(victim, (1<<10), (1<<10), (1<<12), 255, 0, 0, iglow[victim][0])
}
}
eh this is all i found and with my knowledge for scripting whihch is quite small at the time iam not sure what to tinker with to change to affect the % of the skill occuring

Posted: Fri Sep 02, 2005 8:58 am
by Geesu
change CRITICAL_STRIKE_CHANCE in constants.inl

Posted: Sat Sep 03, 2005 8:27 am
by vampire_kid_13
i didnt want to make a new thread for this, once you change something in constatns.inl, how do you recompile...well, i know what recompiling is, but i have no clue what to use for recompiling =(

Posted: Sat Sep 03, 2005 11:54 am
by Geesu
look on amxmodx.org forums... there is a guide

Posted: Sat Sep 03, 2005 1:01 pm
by Solace
ok thx