Author Topic: (no subject)  (Read 1266 times)

Anonymous

  • Member
  • *
  • Posts: 545
    • View Profile
(no subject)
« on: November 25, 2003, 09:18:57 AM »
The problem with the following code is that the battle won't take place with the given background. Can I use BKGND$ in the #Fight command and if so then am i typing it wrong. Any help will be apreceated. Thanks.


#GetBoardName(Name$)
#BKGND$=BoardBackground$
#Random(20, Fightornot!)
#If(Fightornot!==20)
{
   #if(Name$=="!_1PlaneMap_Forest.brd")
   {
      #GetPlayerCoords(0,MyX!,MyY!)
      #GetBoardTile(MyX!,MyY!,1,TileName$)

      #if(TileName$=="RPGMaker951.tst4")
      {
         #BKGND$="!_World1_Grass1.bkg"
      }
      #if(TileName$="RPGMaker951.tst2")
      {
         #BKGND$="!_World1_Forest1.bkg"
      }

      #And(result!, MyX!>=1, MyY!>=1, MyX!<=9, MyY!<=3)
      #If(result!==1)
      {
         #Fight(2,BKGND$)
      }      

   #Fight(boardskill!, BKGND$)
}
   #Fight(boardskill!, BoardBackground$)
« Last Edit: December 31, 1969, 06:00:00 PM by Anonymous »

AlienDude

  • Member
  • *
  • Posts: 605
    • View Profile
    • http://www.taralax.com
(no subject)
« Reply #1 on: November 25, 2003, 11:19:18 AM »
A some fo the brackets are wrong and GetBordName is useless because you didn't recall waht it returned.  That's all i can see at first glance.

Where is boardskill! set?  It's not mentioned in the code.

I'd suggest you redo thw whole thing..
« Last Edit: November 25, 2003, 11:21:59 AM by AlienDude »
Quote
May your star always be good to you and may your travels be swift.
 
- Traveller Farewell
(adapted from the Necroscope series by Brian Lumley)

Taralax Studios BEING REBUILT GENOME BY GENOME! \n\t\t\t\t\t\t\t\t\t
<' + '/div>\n\t\t\t\t\t\t\t\t\t