ID:164102
 
Hmm searched for this but couldnt find anything so ill make a post.

what do you recon would be the best way of achieving this?

im not very good at coding so my initial idea was setting up 386 variables (i think that how many pokemon there are in emerald) and if u see the pokemon you set its variable to 1 and it would appear in a list, and if you have caught it set to to 2 so it shows information about that pokemon.

but the problem im having is where would i display the information so it is user friendly...

can anyone help me and tell me what they suggest?

thanks

I'd say making a list, and every time a player moves, make it run a proc to check and see if a pokemon is in view. If it is, add it to the list.
I know nothing about pokemon, but I know plenty about BYOND programming. Maybe if you'd put that in terms I'd understand, I could help you.
Well I would go with 1 of the next 2 places I'm about to say for the information to be displayed: Onscreen or Browser.
In response to Revojake
argh uve missed the point lol... lemee rephrase what i wrote...

im trying to make a pokemon game similar to the Gameboy games... (not really necessary)

i want something similar to this...

say if pokemons 1 - 6 havent been seen there variables would be "0" and id get

- - - -
- - - -
- - - -
- - - -
- - - -
- - - -

but if i have seen pokemon number 4, his variable would be set to "1" and id get

- - - -
- - - -
- - - -
Charmander
- - - -
- - - -

but what would be the best way of me displaying this info? thats the question im really asking lol.

sorry if im not making sence ive been up all night and im tired lol
In response to L3mm0nX
L3mm0nX wrote:
Well I would go with 1 of the next 2 places I'm about to say for the information to be displayed: Onscreen or Browser.

can you guide me to any tutorials on how to use browser functions to display ingame info?... thanks
In response to Ultimate165
Make a global list of all the names you can find in the game, then also make a mob list containing all the name's they've seen. Then, loop through each name in the global list and check to see if that value is in the mob's list, and if it is, display it, if not, display your -----.

var/list/global_names = list("Wookie","Fretos","Sausage")

mob
var/list/names_found = list()

mob
verb/DisplayFound()
for(var/name in global_names)
if(src.names_found[name])
src << "[name]"
else
src << "-----"


Then just add names to the found list whenever they've discovered something you want displayed:

mob.names_found.Add(name)

mob.names_found.Remove(name)

In response to Foomer
Foomer wrote:
Make a global list of all the names you can find in the game, then also make a mob list containing all the name's they've seen. Then, loop through each name in the global list and check to see if that value is in the mob's list, and if it is, display it, if not, display your -----.

var/list/global_names = list("Wookie","Fretos","Sausage")
>
> mob
> var/list/names_found = list()
>
> mob
> verb/DisplayFound()
> for(var/name in global_names)
> if(src.names_found[name])
> src << "[name]"
> else
> src << "-----"

Then just add names to the found list whenever they've discovered something you want displayed:

mob.names_found.Add(name)
>
> mob.names_found.Remove(name)


thanks. but i dont think a whole 386 lines of ----- and names would work in the chat window lol. is there anyway i could make this info appear in the broswer? or maybe even a pop up window with a table which could display this info?
In response to Ultimate165
mob
verb/DisplayFound()
var/browser_text = ""

// Inform them if they don't know any!
if(!src.names_found.len)
browser_text += "You don't know any names!"

// Loop through all possible names and display the
// ones that the player actually has.
else
for(var/name in global_names)
if(src.names_found[name])
browser_text += "[name]\n"

// Display the data in a browser window. For more information
// on browser windows, look in the DM Reference under 'browse'
src << browse(browser_text, "window=mystuff")
In response to Foomer
In response to Flame Sage
Flame Sage wrote:
Mines better :)
http://s122.photobucket.com/albums/o246/ chris062689/?action=view¤t=charmander_pokedex_finished .png

Oh yeah, like showing off your "better" version really helps. :P
In response to Ultimate165