Go Back   The PokéCommunity Forums > Mrchewy
Reload this Page Conversation Between Mrchewy and Anuhrima

Notices
For all updates, view the main page.



Conversation Between Mrchewy and Anuhrima
Showing Visitor Messages 1 to 7 of 7
  1. Anuhrima
    January 16th, 2009 11:52 PM
    Anuhrima
    Events.onMapCreate+=proc {|sender, e|
    mapID=e[0]
    map=e[1]
    tileset=e[2]
    mapinfo = load_data("Data/MapInfos.rxdata")
    next if !mapinfo[mapID]
    if mapinfo[mapID].subname(3)=="" or mapinfo[mapID].subname(3) == nil
    p3 = 0
    else
    p3 = mapinfo[mapID].subname(3).to_i
    end
    if mapinfo[mapID].subname(4)=="false"
    p4 = false
    end
    if map && tileset
    generator=MapGenerator.new(map,tileset.passages,tileset.priorities)
    generator.make_random_map(2,mapinfo[mapID].subname(2).to_i,p3,p4)
    end
    end
  2. Mrchewy
    January 16th, 2009 11:48 PM
    Mrchewy
    I don't understand what you're saying. Can you paste what your code is here?
  3. Anuhrima
    January 16th, 2009 11:37 PM
    Anuhrima
    ok so the problem is on line 76. how many spaces are there supposed to be before i put it back
  4. Mrchewy
    January 16th, 2009 11:35 PM
    Mrchewy
    No, the conditional branch goes from lines 58 - 76.
  5. Anuhrima
    January 16th, 2009 11:34 PM
    Anuhrima
    so then that ends at line 89 correct
  6. Mrchewy
    January 16th, 2009 11:32 PM
    Mrchewy
    Line 76 is just the closing of a conditional branch which looks like this:

    if mapinfo[mapID].subname == "Random"
    if mapinfo[mapID].subname(3)=="" or mapinfo[mapID].subname(3) == nil
    p3 = 0
    else
    p3 = mapinfo[mapID].subname(3).to_i
    end
    if mapinfo[mapID].subname(4)=="false"
    p4 = false
    end
    if map && tileset
    generator=MapGenerator.new(map,tileset.passages,tileset.priorities)
    generator.make_random_map(2,mapinfo[mapID].subname(2).to_i,p3,p4)
    end
    end


    You could have always just downloaded it and looked for yourself... lol.
  7. Anuhrima
    January 16th, 2009 11:22 PM
    Anuhrima
    can you tell me what line 76 in Random Map is supposed to look like

All times are UTC -8. The time now is 03:42 AM.