Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Betown on December 03, 2010, 05:44:58 am

Title: [XP] 2Ks have but XP don't.-Gradient Text, Elemental damage, State Probability
Post by: Betown on December 03, 2010, 05:44:58 am
1.In old rpg maker (2000, 2003), it can make gradient text(gradients can edited by modifying system file). But XP don't.

I want my text to cover gradient on it.

2.In 2K it can modify elemental damage% respectively(in database), but XP don't.
e.g)In 2K- Light ; A:250 B:150 C:100 D:50 E:0 F:-100
             Fire   ; A:150 B:120 C:100 D:70 E:20 F:-50
             Sword; A:150 B:125 C:100 D:75 E:50 F:25

Can modify each element respectively.

    In XP- Light,Fire,Sword ; A:200 B:150 C:100 D:50 E:0 F:-100

Can't modify each element respectively.
Of course, that figures can modifiable, but can't modify specific element(s).

I think it depends on this part...    (Game_Actor line 107)
Spoiler: ShowHide
  #--------------------------------------------------------------------------
 # * Get Element Revision Value
 #     element_id : element ID
 #--------------------------------------------------------------------------
 def element_rate(element_id)
   # Get values corresponding to element effectiveness
   table = [0,200,150,100,50,0,-100]
   result = table[$data_classes[@class_id].element_ranks[element_id]]
   # If this element is protected by armor, then it's reduced by half
   for i in [@armor1_id, @armor2_id, @armor3_id, @armor4_id]
     armor = $data_armors
     if armor != nil and armor.guard_element_set.include?(element_id)
       result /= 2
     end
   end
   # If this element is protected by states, then it's reduced by half
   for i in @states
     if $data_states.guard_element_set.include?(element_id)
       result /= 2
     end
   end
   # End Method
   return result
 end


3.Similar with 2. In 2K it can modify state probability respectively(in database), but XP don't.
e.g)In 2K- Poison ; A:100 B:80 C:60 D:40 E:20 F:0
             Confuse   ; A:70 B:50 C:40 D:30 E:15 F:0

Can modify each state respectively.

    In XP- Poison, Confuse ; A:100 B:80 C:60 D:40 E:20 F:0

Can't modify each state respectively.

Also I think it depends on this part...    (Game_Battler 2 line 240)
Spoiler: ShowHide
  #--------------------------------------------------------------------------
 # * State Change (+) Application
 #     plus_state_set  : State Change (+)
 #--------------------------------------------------------------------------
 def states_plus(plus_state_set)
   # Clear effective flag
   effective = false
   # Loop (added state)
   for i in plus_state_set
     # If this state is not guarded
     unless self.state_guard?(i)
       # Set effective flag if this state is not full
       effective |= self.state_full?(i) == false
       # If states offer [no resistance]
       if $data_states.nonresistance
         # Set state change flag
         @state_changed = true
         # Add a state
         add_state(i)
       # If this state is not full
       elsif self.state_full?(i) == false
         # Convert state effectiveness to probability,
         # compare to random numbers
         if rand(100) < [0,100,80,60,40,20,0][self.state_ranks]
           # Set state change flag
           @state_changed = true
           # Add a state
           add_state(i)
         end
       end
     end
   end
   # End Method
   return effective
 end


Is there the way how modify these respectively?

Scripts I use....

Spoiler: ShowHide
RTAB
Animated Battlers(1~6)
Tons of Add-ons(1~3)
MogTitle
Transition Pack
Cogwheel's Picture Shake
Pausing with F12
Chaos Project Debug System
Game_guy's Window_Message
Weapon Specific Skills
Snapshot


Many things have upgraded with advent of RMXP, but sth atrophied like this.
I hope it can fixed with your help.

(Sorry for poor english :()
Ack!.... I wrote this topic in wrong location. Sorry.