- 68
- Posts
- 8
- Years
- Seen Dec 3, 2016
Well for some reason it doesnt work on 15.1 for me...
I tried the fixes provided but I still get this:
http://i.imgur.com/ZfLrTeJ.png
I tried the fixes provided but I still get this:
http://i.imgur.com/ZfLrTeJ.png
def pbSpriteSetAnimFrames(sprite,frame,user=nil,target=nil,ineditor=false)
return if !sprite
if !frame
sprite.visible=false
sprite.src_rect=Rect.new(0,0,1,1)
return
end
sprite.blend_type=frame[AnimFrame::BLENDTYPE]
sprite.angle=frame[AnimFrame::ANGLE]
sprite.mirror=(frame[AnimFrame::MIRROR]>0)
sprite.opacity=frame[AnimFrame::OPACITY]
sprite.visible=true
if !frame[AnimFrame::VISIBLE]==1 && ineditor
sprite.opacity/=2
else
sprite.visible=(frame[AnimFrame::VISIBLE]==1)
end
pattern=frame[AnimFrame::PATTERN]
if pattern>=0
# if sprite.bitmap && !sprite.bitmap.disposed?
# animwidth=sprite.bitmap.width/5
# #echo(animwidth.inspect+"\r\n")
# else
# animwidth=192
# end
animwidth=192
sprite.src_rect.set((pattern%5)*animwidth,(pattern/5)*animwidth,
animwidth,animwidth)
else
sprite.src_rect.set(0,0,
sprite.bitmap ? sprite.bitmap.width : 128,
sprite.bitmap ? sprite.bitmap.height : 128)
end
sprite.zoom_x=frame[AnimFrame::ZOOMX]/100.0
sprite.zoom_y=frame[AnimFrame::ZOOMY]/100.0
sprite.color.set(
frame[AnimFrame::COLORRED],
frame[AnimFrame::COLORGREEN],
frame[AnimFrame::COLORBLUE],
frame[AnimFrame::COLORALPHA]
)
sprite.tone.set(
frame[AnimFrame::TONERED],
frame[AnimFrame::TONEGREEN],
frame[AnimFrame::TONEBLUE],
frame[AnimFrame::TONEGRAY]
)
sprite.ox=sprite.src_rect.width/2
sprite.oy=sprite.src_rect.height/2
sprite.x=frame[AnimFrame::X]
sprite.y=frame[AnimFrame::Y]
if sprite!=user && sprite!=target
case frame[AnimFrame::PRIORITY]
when 0 # Behind everything
sprite.z=5
when 1 # In front of everything
sprite.z=35
when 2 # Just behind focus
if frame[AnimFrame::FOCUS]==1 # Focused on target
sprite.z=(target) ? target.z-1 : 5
elsif frame[AnimFrame::FOCUS]==2 # Focused on user
sprite.z=(user) ? user.z-1 : 5
else # Focused on user and target, or screen
sprite.z=5
end
when 3 # Just in front of focus
if frame[AnimFrame::FOCUS]==1 # Focused on target
sprite.z=(target) ? target.z+1 : 35
elsif frame[AnimFrame::FOCUS]==2 # Focused on user
sprite.z=(user) ? user.z+1 : 35
else # Focused on user and target, or screen
sprite.z=35
end
else
sprite.z=35
end
end
end
Well After a few tries I just changed (in both v15.1 and v16.1)
for i in 0
to
for i in 1
both of them in the script and it worked.
Exception: TypeError
Message: Section173:1354:in `[]'no implicit conversion from nil to integer
***Full script:
pbContest(50,PBSpecies::AMPHAROS,20,PBSpecies::INFERNAPE,20,PBSpecies:: SLAKING,30,1)
Interpreter:243:in `pbExecuteScript'
Contest Main:1354:in `pbFunctionsAdjustHearts'
Contest Main:1353:in `each'
Contest Main:1353:in `pbFunctionsAdjustHearts'
Contest Main:316:in `pbTurn'
Contest Main:122:in `pbStartContest'
Contest Main:2482:in `pbStartContest'
Contest Main:2493:in `pbContest'
(eval): 1:in `pbExecuteScript'
Interpreter:1606:in `eval'
Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
QuickSave:26:in `main'
when 17
Kernel.pbCustomMessage(_INTL("\\l[3]It tried to make the other Pokemon nervous!"),"Graphics/Pictures/Contest/choice 29",newx=nil,340)
if @currentpos==1
when 17
if @currentpos==1
for j in 1..3
Kernel.pbCustomMessage(_INTL("\\l[3]{1} became nervous.",@pokeorder[j].name),"Graphics/Pictures/Contest/choice 29",newx=nil,340)
@nervous[j]=true
end
elsif @currentpos==2
for i in 2..3
Kernel.pbCustomMessage(_INTL("\\l[3]{1} became nervous.",@pokeorder[j].name),"Graphics/Pictures/Contest/choice 29",newx=nil,340)
@nervous[j]=true
end
elsif @currentpos==3
Kernel.pbCustomMessage(_INTL("\\l[3]{1} became nervous.",@pokeorder[3].name),"Graphics/Pictures/Contest/choice 29",newx=nil,340)
@nervous[3]=true
end
pbNervousGraphic
Thank you for the reply!
I understand your reasoning. However I have this in the Main Contest script, so the message it is looking for does already exist:
Code:when 17 if @currentpos==1 for j in 1..3 Kernel.pbCustomMessage(_INTL("\\l[3]{1} became nervous.",@pokeorder[j].name),"Graphics/Pictures/Contest/choice 29",newx=nil,340) @nervous[j]=true end elsif @currentpos==2 for i in 2..3 Kernel.pbCustomMessage(_INTL("\\l[3]{1} became nervous.",@pokeorder[j].name),"Graphics/Pictures/Contest/choice 29",newx=nil,340) @nervous[j]=true end elsif @currentpos==3 Kernel.pbCustomMessage(_INTL("\\l[3]{1} became nervous.",@pokeorder[3].name),"Graphics/Pictures/Contest/choice 29",newx=nil,340) @nervous[3]=true end pbNervousGraphic
when 17
Kernel.pbCustomMessage(_INTL("\\l[3]It tried to make the other Pokemon nervous!"),"Graphics/Pictures/Contest/choice 29",newx=nil,340)
if @currentpos==1
for j in 1..3
Kernel.pbCustomMessage(_INTL("\\l[3]{1} became nervous.",@pokeorder[j].name),"Graphics/Pictures/Contest/choice 29",newx=nil,340)
@nervous[j]=true
end
elsif @currentpos==2
for i in 2..3
Kernel.pbCustomMessage(_INTL("\\l[3]{1} became nervous.",@pokeorder[j].name),"Graphics/Pictures/Contest/choice 29",newx=nil,340)
@nervous[j]=true
end
elsif @currentpos==3
Kernel.pbCustomMessage(_INTL("\\l[3]{1} became nervous.",@pokeorder[3].name),"Graphics/Pictures/Contest/choice 29",newx=nil,340)
@nervous[3]=true
end
pbNervousGraphic
Another question, are the "stars" working correctly in your version? Did you make any change to the stars system?
The game does not display them at any time during the contests, yet I have the correct graphics in the Pictures folder.
could someone explain how to make this work for version 16.1?
Yes the stars do work and I have seen it happen in the Cool Contest with Gary's Butterscortch when "Butterscortch really caught the judges attention!" and I have noticed that not all the moves are listed in the Combos at the bottom of the Main Contest script.
Just do the first part.
And you can get the demo downloaded and just open it up.
Copy and paste the map from the window in the bottom left.
Then just fix the tileset to match.
Open the Contest Lady event and use extendtext.exe to fix:
script pbChoosePokemon(36,2,proc {|poke|!
poke.isEgg? && !(poke.isShadow? rescue false) && !poke.hasRibbon?(4)}) for each contest.
Just make sure from "poke.isEgg? && !(poke.isShadow? rescue false) && !poke.hasRibbon?(4)})" is on one line.
(and change poke.egg? to poke.isEgg?)
(forgot I did this step)
Then open the Berry Mixer script and change both
for i in 0...PBItems.maxValue
to
for i in 1...PBItems.maxValue
(the other one doesn't matter)
After that then let me know how it went.