Le Deal du moment : -50%
-50% Baskets Nike Air Huarache
Voir le deal
64.99 €

Aller en bas
CLassic
CLassic
Membre

Nombre de messages : 44
Distinction : aucune
Date d'inscription : 08/05/2009

Script qui marche pas. Empty Script qui marche pas.

Sam 23 Mai 2009 - 12:57
Je suis tombé sur un script qui permet de faire que les héros se suivent mais ça ne marche pas,voici le lien:
Ici
Berka
Berka
Staffeux retraité

Nombre de messages : 1832
Age : 33
Localisation : Paris
Distinction : rubyste déglingué
9ème dan en scripting-no-jutsu

Nouveau Justine Beber ;P
Date d'inscription : 16/12/2007
http://rpgruby.olympe-network.com

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 12:58
Merci d'argumenter. Evil or Very Mad
CLassic
CLassic
Membre

Nombre de messages : 44
Distinction : aucune
Date d'inscription : 08/05/2009

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 13:04
Bonjour tout le monde
Nature du problème : Un script ne marche pas.
Explication complète : J'ai vus un script qui permet de faire faire la queue leu-leu aux héros mais j'ai un problème,ça ne marche pas mais ça ne m'empêche pas de jouer,j'ai juste le héros principal.
Screens : Désolé,j'en ai pas

Merci d'avance !
Spider
Spider
Membre

Nombre de messages : 36
Age : 30
Distinction : aucune
Date d'inscription : 10/05/2009

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 13:29
C'est le script de la chenille, mais celui de ton lien me semble étrange, utilise la fonction rechercher et tu devrais trouver le bon script sur le forum.
Bonne journée.
CLassic
CLassic
Membre

Nombre de messages : 44
Distinction : aucune
Date d'inscription : 08/05/2009

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 13:42
Je viens d'essayer mais la,ça m'empêche de jouer,il y a écrit ça:
Script qui marche pas. Sans_t10
avatar
Naasmar
Membre

Nombre de messages : 185
Age : 27
Distinction : aucune
Date d'inscription : 15/03/2008

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 14:14
Sa dépend du titre...
Tiens : Appelle le "train_Actor"

Code:
class Game_Player
#--------------------------------------------------------------------------
# * Move Down
# turn_enabled : a flag permits direction change on that spot
#--------------------------------------------------------------------------
def move_down(turn_enabled = true)
super(turn_enabled)
end
#--------------------------------------------------------------------------
# * Move Left
# turn_enabled : a flag permits direction change on that spot
#--------------------------------------------------------------------------
def move_left(turn_enabled = true)
super(turn_enabled)
end
#--------------------------------------------------------------------------
# * Move Right
# turn_enabled : a flag permits direction change on that spot
#--------------------------------------------------------------------------
def move_right(turn_enabled = true)
super(turn_enabled)
end
#--------------------------------------------------------------------------
# * Move up
# turn_enabled : a flag permits direction change on that spot
#--------------------------------------------------------------------------
def move_up(turn_enabled = true)
super(turn_enabled)
end
#--------------------------------------------------------------------------
# * Move Lower Left
#--------------------------------------------------------------------------
def move_lower_left
super
end
#--------------------------------------------------------------------------
# * Move Lower Right
#--------------------------------------------------------------------------
def move_lower_right
super
end
#--------------------------------------------------------------------------
# * Move Upper Left
#--------------------------------------------------------------------------
def move_upper_left
super
end
#--------------------------------------------------------------------------
# * Move Upper Right
#--------------------------------------------------------------------------
def move_upper_right
super
end
end
class Game_Follower < Game_Character
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_reader :actor
attr_accessor :move_speed
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(actor)
super()
@through = true
@actor = actor
end
#--------------------------------------------------------------------------
# * Set Actor
#--------------------------------------------------------------------------
def actor=(actor)
@actor = actor
setup
end
#--------------------------------------------------------------------------
# * Setup
#--------------------------------------------------------------------------
def setup
if @actor != nil
@character_name = $game_actors[@actor].character_name
@character_index = $game_actors[@actor].character_index
else
@character_name = ""
@character_index = 0
end
@opacity = 255
@blend_type = 0
@priority_type = 1
end
#--------------------------------------------------------------------------
# * Screen Z
#--------------------------------------------------------------------------
def screen_z
if $game_player.x == @x and $game_player.y == @y
return $game_player.screen_z - 1
end
super
end
#--------------------------------------------------------------------------
# * Same Position Starting Determinant (Disabled)
#--------------------------------------------------------------------------
def check_event_trigger_here(triggers)
result = false
return result
end
#--------------------------------------------------------------------------
# * Front Envent Starting Determinant (Disabled)
#--------------------------------------------------------------------------
def check_event_trigger_there(triggers)
result = false
return result
end
#--------------------------------------------------------------------------
# * Touch Event Starting Determinant (Disabled)
#--------------------------------------------------------------------------
def check_event_trigger_touch(x, y)
result = false
return result
end
end
class Spriteset_Map
alias_method :spriteset_map_create_characters, :create_characters
def create_characters
spriteset_map_create_characters
$game_party.followers.each do |char|
@character_sprites << Sprite_Character.new(@viewport1, char)
end
end
end
class Game_Party
#--------------------------------------------------------------------------
# * Constants
#--------------------------------------------------------------------------
MAX_SIZE = 8
CATERPILLAR = 2
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_reader :followers
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_party_initialize, :initialize
def initialize
trick_caterpillar_party_initialize
@followers = Array.new(MAX_SIZE - 1) {Game_Follower.new(nil)}
@move_list = []
end
#--------------------------------------------------------------------------
# * Update Followers
#--------------------------------------------------------------------------
def update_followers
flag = $game_player.transparent || $game_switches[CATERPILLAR]
@followers.each_with_index do |char, i|
char.actor = @actors[i + 1]
char.move_speed = $game_player.move_speed
if $game_player.dash?
char.move_speed += 1
end
char.update
char.transparent = flag
end
end
#--------------------------------------------------------------------------
# * Move To Party
#--------------------------------------------------------------------------
def moveto_party(x, y)
@followers.each {|char| char.moveto(x, y)}
@move_list.clear
end
#--------------------------------------------------------------------------
# * Move Party
#--------------------------------------------------------------------------
def move_party
@move_list.each_index do |i|
if @followers[i] == nil
@move_list[i...@move_list.size] = nil
next
end
case @move_list[i].type
when 2
@followers[i].move_down
when 4
@followers[i].move_left
when 6
@followers[i].move_right
when 8
@followers[i].move_up
when 1
@followers[i].move_lower_left
when 3
@followers[i].move_lower_right
when 7
@followers[i].move_upper_left
when 9
@followers[i].move_upper_right
when 5
@followers[i].jump
end
end
end
#--------------------------------------------------------------------------
# * Add Move List
#--------------------------------------------------------------------------
def update_move(type, *args)
move_party
@move_list.unshift(Game_MoveListElement.new(type, args))
end
end
class Game_MoveListElement
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize(type, args)
@type = type
@args = args
end
#--------------------------------------------------------------------------
# * Type
#--------------------------------------------------------------------------
def type
return @type
end
#--------------------------------------------------------------------------
# * Args
#--------------------------------------------------------------------------
def args
return @args
end
end
class Game_Player
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_reader :move_speed
#--------------------------------------------------------------------------
# * Update
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_update, :update
def update
$game_party.update_followers
trick_caterpillar_player_update
end
#--------------------------------------------------------------------------
# * Moveto
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_moveto, :moveto
def moveto(x, y)
$game_party.moveto_party(x, y)
trick_caterpillar_player_moveto(x, y)
end
#--------------------------------------------------------------------------
# * Move Down
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_move_down, :move_down
def move_down(turn_enabled = true)
if passable?(@x, @y+1)
$game_party.update_move(2, turn_enabled)
end
trick_caterpillar_player_move_down(turn_enabled)
end
#--------------------------------------------------------------------------
# * Move Left
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_move_left, :move_left
def move_left(turn_enabled = true)
if passable?(@x-1, @y)
$game_party.update_move(4, turn_enabled)
end
trick_caterpillar_player_move_left(turn_enabled)
end
#--------------------------------------------------------------------------
# * Move Right
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_move_right, :move_right
def move_right(turn_enabled = true)
if passable?(@x+1, @y)
$game_party.update_move(6, turn_enabled)
end
trick_caterpillar_player_move_right(turn_enabled)
end
#--------------------------------------------------------------------------
# * Move Up
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_move_up, :move_up
def move_up(turn_enabled = true)
if passable?(@x, @y-1)
$game_party.update_move(8, turn_enabled)
end
trick_caterpillar_player_move_up(turn_enabled)
end
#--------------------------------------------------------------------------
# * Move Lower Left
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_move_lower_left, :move_lower_left
def move_lower_left
if passable?(@x - 1, @y) and passable?(@x, @y + 1)
$game_party.update_move(1)
end
trick_caterpillar_player_move_lower_left
end
#--------------------------------------------------------------------------
# * Move Lower Right
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_move_lower_right, :move_lower_right
def move_lower_right
if passable?(@x + 1, @y) and passable?(@x, @y + 1)
$game_party.update_move(3)
end
trick_caterpillar_player_move_lower_right
end
#--------------------------------------------------------------------------
# * Move Upper Left
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_move_upper_left, :move_upper_left
def move_upper_left
if passable?(@x - 1, @y) and passable?(@x, @y - 1)
$game_party.update_move(7)
end
trick_caterpillar_player_move_upper_left
end
#--------------------------------------------------------------------------
# * Move Upper Right
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_move_upper_right, :move_upper_right
def move_upper_right
if passable?(@x + 1, @y) and passable?(@x, @y - 1)
$game_party.update_move(9)
end
trick_caterpillar_player_move_upper_right
end
#--------------------------------------------------------------------------
# * Jump
#--------------------------------------------------------------------------
alias_method :trick_caterpillar_player_jump, :jump
def jump(x_plus, y_plus)
new_x = @x + x_plus
new_y = @y + y_plus
if (x_plus == 0 and y_plus == 0) or passable?(new_x, new_y)
$game_party.update_move(5, x_plus, y_plus)
end
trick_caterpillar_player_jump(x_plus, y_plus)
end
end###########
###########
###########
Berka
Berka
Staffeux retraité

Nombre de messages : 1832
Age : 33
Localisation : Paris
Distinction : rubyste déglingué
9ème dan en scripting-no-jutsu

Nouveau Justine Beber ;P
Date d'inscription : 16/12/2007
http://rpgruby.olympe-network.com

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 14:24
Nan, le titre n'a rien a voir.
Il faut juste que tu mettes plusieurs héros.

berka
CLassic
CLassic
Membre

Nombre de messages : 44
Distinction : aucune
Date d'inscription : 08/05/2009

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 15:24
J'ai essayer de mettre le bon titre,ça ne marche pas mais j'ai déjà 4 héros.
Spider
Spider
Membre

Nombre de messages : 36
Age : 30
Distinction : aucune
Date d'inscription : 10/05/2009

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 15:56
Là tu bien positioner au dessus de Main ?
Sylphlorian
Sylphlorian
Membre

Nombre de messages : 228
Age : 29
Localisation : Bretagne
Distinction : aucune
Date d'inscription : 18/02/2008

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 18:05
As tu recommencé une partie avec le script ?
Car si tu as déjà les persos dans ton équipe et que tu met le script ça va pas le faire...

Enfin moi c'est ce que ça m'avait fait une fois !
CLassic
CLassic
Membre

Nombre de messages : 44
Distinction : aucune
Date d'inscription : 08/05/2009

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 21:02
Ca t'as arreter le jeu au tout début à toi ou pas?
Spider
Spider
Membre

Nombre de messages : 36
Age : 30
Distinction : aucune
Date d'inscription : 10/05/2009

Script qui marche pas. Empty Re: Script qui marche pas.

Sam 23 Mai 2009 - 22:16
Moi avec le script chenille je n'ai pas eu ces problèmes.
J'ai simplement rajouté dans mon projet même avec les characters déjà définis auparavant.
Donc ce qui serait bien c'est que tu nous montre un screen de ta fenetre de scripts pour voir si tu as correctement copié ce script.
CLassic
CLassic
Membre

Nombre de messages : 44
Distinction : aucune
Date d'inscription : 08/05/2009

Script qui marche pas. Empty Re: Script qui marche pas.

Dim 24 Mai 2009 - 20:53
Il faut faire des images avec tous les morceaux du script?Parce que j'ai fait :
Spoiler:
Spoiler:
Spoiler:
Spoiler:
Spoiler:
Spoiler:
Spoiler:
Spoiler:
C'est bon?
Spider
Spider
Membre

Nombre de messages : 36
Age : 30
Distinction : aucune
Date d'inscription : 10/05/2009

Script qui marche pas. Empty Re: Script qui marche pas.

Dim 24 Mai 2009 - 22:39
Non je voulais un screen qui me montre ou tu l'avais placé.. si c'était bien au dessus de "main"

Edit: j'ai trouvé où tu t'es trompé, tu as créé un nouveau script nommé chenille au dessus de main, il faut juste copier la totalité du script dans la page main au dessus avec une ligne de décalage.
En tout cas j'ai procédé de cette facon et chez moi cela fonctionne.
CLassic
CLassic
Membre

Nombre de messages : 44
Distinction : aucune
Date d'inscription : 08/05/2009

Script qui marche pas. Empty Re: Script qui marche pas.

Lun 25 Mai 2009 - 20:36
Merci!Maintenant ça marche! Bon,ce problème est résolus Very Happy Encore merci Script qui marche pas. 657562
Contenu sponsorisé

Script qui marche pas. Empty Re: Script qui marche pas.

Revenir en haut
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum