Script request for stacked battle states

Mudkicker

Villager
Member
Joined
Jul 24, 2015
Messages
8
Reaction score
0
First Language
English
Primarily Uses
Name of proposed script: Stacked Battle States

Description: The script would make it so that more than 5 states show during the battle beneath the actors. I am using "Status Effects as Icons by Blizzard" from Tons of Add-Ons 1, 2 and 3. If it's possible to make it so that it shows two rows of 5 states, one below the other, that would be awesome.

Features/Functionality desired:
 

  • Displaying more than 5 states per actor.
     
  • 2 rows of 5 states.
     
  • Compatible with "Status Effects as Icons by Blizzard" from Tons of Add-Ons 1, 2 and 3.
     
I have been looking for a script like this but couldn't find it anywhere. Maybe I just don't know what to type in to search. I hope someone reads these requests. Please Help!
 

MobiusXVI

Game Maker
Veteran
Joined
Mar 20, 2013
Messages
383
Reaction score
91
First Language
English
Primarily Uses
You need to link to the script you're using. Otherwise no one will know if they can help you or not. Also when modifying the look of things, it's important to have some mock-ups of what you want as it eliminates confusion. The other thing to think about is how adding another row will affect the information already present. There's only so much room to draw things, so typically when you add something you have to condense or discard something else. This is another reason why mock-ups are useful.
 

Mudkicker

Villager
Member
Joined
Jul 24, 2015
Messages
8
Reaction score
0
First Language
English
Primarily Uses
Oh, ok.

So, here are the links to the scripts:

Part 1: http://downloads.chaos-project.com/scripts/Tons%20of%20Add-ons%201.txt

Part 2: http://downloads.chaos-project.com/scripts/Tons%20of%20Add-ons%202.txt

Part 3: http://downloads.chaos-project.com/scripts/Tons%20of%20Add-ons%203.txt

I don't know if the .png I attached is a mock-up, but it can kinda give you the idea of what I had in mind.

I made this ghost inflict 5 state effects on our Aluxes here and then just cut and paste the last one (venom).

So the states would stack from the top left (sleep), filling the top row to the right and then would continue stacking from the bottom left state,

filling the bottom row to the right.

 

MobiusXVI

Game Maker
Veteran
Joined
Mar 20, 2013
Messages
383
Reaction score
91
First Language
English
Primarily Uses
Here give this a try:

# Code by MobiusXVI# Change to 'Status Effects as Icons' by Blizzard from# Tons of Add-Ons 1, 2 and 3. Requires them as core scripts.#==============================================================================# Window_Base#============================================================================== class Window_Base alias draw_actor_state_icons_later draw_actor_state def draw_actor_state(actor, x, y, width = 120) if $game_system.STATUS_ICONS if actor != nil actor.states.each {|id| if SPECIAL_EFFECTS.include?(id) text = "[#{$data_states[id].name}]" self.contents.font.color = actor.dead? ? knockout_color : normal_color self.contents.draw_text(x, y, width, 32, text) return end} s = actor.states.find_all {|id| $data_states[id].rating > 0} s.each_index {|i| if i*28 > width break if (i/2)*28 > width icon = RPG::Cache.icon("State/#{$data_states[s].name.downcase}") self.contents.blt(x+2+i*28, y+4+24+4, icon, Rect.new(0, 0, 24, 24))} else icon = RPG::Cache.icon("State/#{$data_states[s].name.downcase}") self.contents.blt(x+2+i*28, y+4, icon, Rect.new(0, 0, 24, 24))} end end else draw_actor_state_icons_later(actor, x, y, width) endend 

 Be sure to put it below the original. Also, I can't test it against your setup, so I don't know if it'll look exactly right but it should be close. If it needs adjusting, just let me know.
 

Mudkicker

Villager
Member
Joined
Jul 24, 2015
Messages
8
Reaction score
0
First Language
English
Primarily Uses
Here give this a try:

# Code by MobiusXVI# Change to 'Status Effects as Icons' by Blizzard from# Tons of Add-Ons 1, 2 and 3. Requires them as core scripts.#==============================================================================# Window_Base#============================================================================== class Window_Base alias draw_actor_state_icons_later draw_actor_state def draw_actor_state(actor, x, y, width = 120) if $game_system.STATUS_ICONS if actor != nil actor.states.each {|id| if SPECIAL_EFFECTS.include?(id) text = "[#{$data_states[id].name}]" self.contents.font.color = actor.dead? ? knockout_color : normal_color self.contents.draw_text(x, y, width, 32, text) return end} s = actor.states.find_all {|id| $data_states[id].rating > 0} s.each_index {|i| if i*28 > width break if (i/2)*28 > width icon = RPG::Cache.icon("State/#{$data_states[s].name.downcase}") self.contents.blt(x+2+i*28, y+4+24+4, icon, Rect.new(0, 0, 24, 24))} else icon = RPG::Cache.icon("State/#{$data_states[s].name.downcase}") self.contents.blt(x+2+i*28, y+4, icon, Rect.new(0, 0, 24, 24))} end end else draw_actor_state_icons_later(actor, x, y, width) endend 


 Be sure to put it below the original. Also, I can't test it against your setup, so I don't know if it'll look exactly right but it should be close. If it needs adjusting, just let me know.

Thanks a lot, but it gives me the SyntaxError, line 28. :(
 

MobiusXVI

Game Maker
Veteran
Joined
Mar 20, 2013
Messages
383
Reaction score
91
First Language
English
Primarily Uses
Thanks a lot, but it gives me the SyntaxError, line 28. :(
My bad. Misplaced a bracket.

Code:
# Code by MobiusXVI# Change to 'Status Effects as Icons' by Blizzard from# Tons of Add-Ons 1, 2 and 3. Requires them as core scripts.#==============================================================================# Window_Base#============================================================================== class Window_Base    alias draw_actor_state_icons_later draw_actor_state  def draw_actor_state(actor, x, y, width = 120)    if $game_system.STATUS_ICONS      if actor != nil        actor.states.each {|id|            if SPECIAL_EFFECTS.include?(id)              text = "[#{$data_states[id].name}]"              self.contents.font.color = actor.dead? ? knockout_color : normal_color              self.contents.draw_text(x, y, width, 32, text)              return            end}        s = actor.states.find_all {|id| $data_states[id].rating > 0}        s.each_index {|i|            if i*28 > width				break if (i/2)*28 > width				icon = RPG::Cache.icon("State/#{$data_states[s[i]].name.downcase}")				self.contents.blt(x+2+i*28, y+4+24+4, icon, Rect.new(0, 0, 24, 24))			else				icon = RPG::Cache.icon("State/#{$data_states[s[i]].name.downcase}")				self.contents.blt(x+2+i*28, y+4, icon, Rect.new(0, 0, 24, 24))			end}      end    else      draw_actor_state_icons_later(actor, x, y, width)  endend 
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Frostorm wrote on Featherbrain's profile.
Hey, so what species are your raptors? Any of these?
... so here's my main characters running around inside "Headspace", a place people use as a safe place away from anxious/panic related thinking.
Stream will be live shortly! I will be doing some music tonight! Feel free to drop by!
Made transition effects for going inside or outside using zoom, pixi filter, and a shutter effect
I have gathered enough feedback from a few selected people. But it is still available if you want to sign up https://forums.rpgmakerweb.com/index.php?threads/looking-for-testers-a-closed-tech-demo.130774/

Forum statistics

Threads
105,992
Messages
1,018,195
Members
137,773
Latest member
Kirakirna
Top