Main Menu
  • Welcome to The RPG Maker Resource Kit.

Need help with ''stats'' RMXP

Started by Valllaha, November 11, 2007, 08:43:26 PM

0 Members and 1 Guest are viewing this topic.

Valllaha

So.. well, I got a CBS scripts with a time gauge (i'm sure you know the script I use), the problem is that if my agility is to much high, my gauge bar goes to fast, so I set a low agility start to my hero but another problem, i ALWAYS miss so i set my monster evasion -100 so I don't miss, but I need to modify the monster agility as well or he will attack me 30 times before I can attack once, so 10 agility for my monster seems perfect, problem... He ALWAYS miss and I can't (i think) modify the evasion of my character since it's agility? Is their a way to modify the main evasion of everybody without refer to stats or not? or is their a solution?
I tried to change the script but I failed, if I change any numbers it seems to do nothing at all :

Well if you refer to the AGI part you can see numbers who I THINK indicate the speed of the gauge, and I'm.... yeah ok I'm not good at all on scripting so I need help if it's the only way to help my evasion problems -_- (Because from now I can control the speed of the gauge with agility but it cause another problem) And I don't really know what in the script does affect the attack rate of my monster, it should work with the samesnumber i think...


#==============================================================================
# ?¡ Scene_Battle_CP
#==============================================================================
class Scene_Battle_CP
#--------------------------------------------------------------------------
# ?œ ŒöŠJƒCƒ"ƒXƒ^ƒ"ƒX•Ï?"
#--------------------------------------------------------------------------
attr_accessor :stop # CP‰ÁŽZƒXƒgƒbƒv
#----------------------------------------------------------------------------
# ?œ ƒIƒuƒWƒFƒNƒg,Ì?‰Šú‰»
#----------------------------------------------------------------------------
def initialize
@battlers = []
@cancel = false
@agi_total = 0
# "z—ñ @count_battlers ,ð?‰Šú‰»
@count_battlers = []
# ƒGƒlƒ~?[,ð"z—ñ @count_battlers ,É'ljÁ
for enemy in $game_troop.enemies
@count_battlers.push(enemy)
end
# ƒAƒNƒ^?[,ð"z—ñ @count_battlers ,É'ljÁ
for actor in $game_party.actors
@count_battlers.push(actor)
end
for battler in @count_battlers
@agi_total += battler.agi
end
for battler in @count_battlers
battler.cp = [[65535 * (rand(15) + 85) / 100 * battler.agi / @agi_total * 4, 0].max, 65535].min
end
end
#----------------------------------------------------------------------------
# ?œ CPƒJƒEƒ"ƒg,ÌŠJŽn
#----------------------------------------------------------------------------
def start
if @cp_thread != nil then
return
end
@cancel = false
@stop = false
# ,±,±,©,çƒXƒŒƒbƒh
@cp_thread = Thread.new do
while @cancel != true
if @stop != true
self.update # ?X?V
sleep(0.05)
end
end
end
# ,±,±,Ü,ŃXƒŒƒbƒh
end
#----------------------------------------------------------------------------
# ?œ CPƒJƒEƒ"ƒgƒAƒbƒv
#----------------------------------------------------------------------------
def update
if @count_battlers != nil then
for battler in @count_battlers
# ?s"®?o—ˆ,È,¯,ê,Ζ³Ž‹
if battler.dead? == true #or battler.movable? == false then
battler.cp = 0
next
end
# ,±,±,Ì 1.3,ð•Ï,¦,é,±,Æ,Å?«ƒXƒs?[ƒh,ð•Ï?X‰Â"\?B,½,¾,µ??""_,ÍŽg—p,·,é,±,Æ?B
battler.cp = [[battler.cp + 1.3 * 4096 * battler.agi / @agi_total, 0].max, 65535].min
end
end
end
#----------------------------------------------------------------------------
# ?œ CPƒJƒEƒ"ƒg,ÌŠJŽn
#----------------------------------------------------------------------------
def stop
@cancel = true
if @cp_thread != nil then
@cp_thread.join
@cp_thread = nil
end
end
end


Sorry for all the mistakes I've done, I'm from quebec so I learnt english so I apologize Sad
Thank you for your answer and if I'm not clear enough or if you want the complete scripts just ask it.
and this scripts belong to MakirouAru
Thanks again

modern algebra

Put the script in code tage:

[code-][/-code]

without the -

Anyway, I can't look at it right now, but look in the help file for information on battle formulas.

Valllaha

I don't know if you talk about the help files of RMXP but if it is well... it's all in chinese and I'm not able to read that Oo
And I was wondering if theirs a topic (I searched) who explain what attack does (I mean 1 atk = 1 dmg - armor) or something like that
But anyway my main problem for now is the agility Oo

modern algebra

I think Zeriab has an FAQ up in either Help or Tutorials which has the English help file attached.

http://rmrk.net/index.php/topic,6835.0.html

Valllaha

Well I don't find it maybe because it's late, I'lltry further looking tomorow but if some1 stille have a solution for me just say it. Thanks

modern algebra


Valllaha

Yeah I did look at the link but found nothing from my problem I'll look more

modern algebra

I meant the English help file is attached to it. Which has the battle formulas

Valllaha

oh well im dumb sorry i dlwed it, but well battle formulas show me what does stats but not how I can modify the effect or w/e, but well thx for answering my second question ^^ well we probaly can change the effect of the stats with a system script who is in the project when you create a new one? I just can't spot the script, it shouldn't be so complicated i guess