Rom Hack & Fan Game
                        
        
        Les Scripts Statics
Salut à vous tous !
  
  Voici un petit répertoire de tous les scripts basiques dont vous avez besoin pour votre Hack. Juste pour rappel, les scripts sont un moyen d'interaction avec les évènements, INDISPENSABLE pour un scénario construit. Je ne vous apprendrez pas à scripter, c'est un autre tuto pour cela, ici vous sont présentés les scripts simples pour que vous évitiez de les taper à chaque fois (ce qui est très embêtant). N'oubliez pas que tous les [ID] sont à compléter en hexadécimal et non en décimal !
Message Normal
'---------------
  #org 0x[offset1]
  msgbox 0x8[offset2] MSG_FACE
  end
  
  
  '---------
  ' Strings
  '---------
  #org [offset2]
  =  Pancarte
'---------------
  #org 0x[offset1]
  msgbox 0x8[offset2] MSG_SIGN
  end
  
  '---------
  'Strings
  '---------
  #org 0x[offset2]
  =  Applymovement
'---------------
  #org 0x[offset1]
  lock
  applymovement 0x[ID perso] 0x8[offset2]
  waitmovement 0x0
  release
  end
  
  '---------
  'Movements
  '---------
  #org 0x[offset2]
  #raw 0x
  #raw 0xFE  Météo
'---------------
  #org 0x[offset]
  lock
  setweather 0x[ID météo]
  doweather
  release
  end  Giveitem
'---------------
  #org 0x[offset]
  giveitem 0x[ID objet] 0x[quantité] MSG_FIND
  end  Special
'---------------
  #org 0x[offset]
  special 0x[ID special]
  end  Trainerbattle
'---------------
  #org 0x[offset1]
  trainerbattle 0x0 0x[ID Trainer] 0x0 0x8[offset2] 0x8[offset3]
  msgbox 0x8[offset4] MSG_NORMAL
  end
  
  '---------
  'Strings
  '---------
  #org 0x[offset2]
  =
  
  #org 0x[offset3]
  =
  
#org 0x[offset4]
  =  Wildbattle
'---------------
  #org 0x[offset]
  lock
  faceplayer
  setwildbattle 0x[ID Pokemon] 0x[level] 0x[objet]
  checksound
  cry 0x[ID cri] 0x2
  pause 0x28
  waitcry
  setflag 0x305
  setflag 0x861
  special 0x138
  waitstate
  clearflag 0x861
  release
  end  Et en cadeau, le Pack de Scripts Static Vierges à télécharger !
Par Flow'
 
                                            