Dunque ho trovato all'interno della demo Xas Hero uno script che permette al chara un animazione da fermo...L'autore sta scritto all'interno dello script...Il punto è che quando lo passo su un nuovo progetto mi dà un errore alla tredicisima riga( new_name = filename + SUFFIX
filename = new_name if RPG_FileTest.character_exist?(new_name))...Vedete se ci capite voi perchè non ne vengo a capo.
#===============================================================================# By Xiderowg / 桜雅 在土 # [url="http://xms.rdy.jp/"]http://xms.rdy.jp/[/url]# [url="http://scriptshelf.jpn.org/x/"]http://scriptshelf.jpn.org/x/[/url]#===============================================================================module XRXS_BreakActs SUFFIX = "_ANI" WCOUNT = 0 def character_name filename = super if @breakacting new_name = filename + SUFFIX filename = new_name if RPG_FileTest.character_exist?(new_name) end return filename end def breakact=(b) @breakacting = b @step_anime = b end def update super if controllable? if @breakact_count.to_i > 0 @breakact_count -= 1 else self.breakact = true end else @breakact_count = WCOUNT unless self.action != nil or $game_map.starting? or self.knockbacking? self.breakact = false end end endendclass Game_Player < Game_Character include XRXS_BreakActsendclass Game_Player < Game_Character def controllable? return !(moving? or $game_system.map_interpreter.running? or @move_route_forcing or $game_temp.message_window_showing or Input.trigger?(Input::C) or Input.press?(Input::C) or Input.trigger?(Input::Y) or Input.press?(Input::Y) or Input.trigger?(Input::Z) or Input.press?(Input::Z) or Input.trigger?(Input::A) or Input.press?(Input::A) or Input.trigger?(Input::LEFT) or Input.trigger?(Input::RIGHT) or Input.trigger?(Input::UP) or Input.trigger?(Input::DOWN) or Input.press?(Input::LEFT) or Input.press?(Input::RIGHT) or Input.press?(Input::UP) or Input.press?(Input::DOWN)) endend
Question
Squall_Leonheart
Salve gente,ritorno a seccareXD
Dunque ho trovato all'interno della demo Xas Hero uno script che permette al chara un animazione da fermo...L'autore sta scritto all'interno dello script...Il punto è che quando lo passo su un nuovo progetto mi dà un errore alla tredicisima riga( new_name = filename + SUFFIX
filename = new_name if RPG_FileTest.character_exist?(new_name))...Vedete se ci capite voi perchè non ne vengo a capo.
Iscriviti sul mio canale youtube -
https://www.youtube.com/channel/UCYOxXExvlXiOFfYD1fTFpww?view_as=subscriber
Seguimi su Instagram -
https://www.instagram.com/ancestralguitarist/
---------------------------------------------------------------------------------------------------------------------------------------
Contest vinti
---------------------------------------------------------------------------------------------------------------------------------------
FACE CONTEST # 3
BANNER CONTEST #69
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now