excel - Better way of using tables in android then innumerous if then statements (or switch/case) -


i developing rpg character generator game using purely random method (new random().netint(100)). system has 14 steps create character , steps have between 1-13 dice rolls table lookups. problem half of 'die rolls' have @ least 5 rolls, each 1 being lookup on table, or table.

some steps easy there few options , coding in simple switch/case of if/then loop easy, if little boring, quite achievable.

in excel use vlookup various tables, etc , simple result, in android, i'm wondering there easier way manually coding several thousand if statements each "step".

ive simplified table statements there might 5 options each using 1-20, 21-40, etc simple maths help, other tables have been weighted due rpg setting details, changing them give incorrect , inaccurate random results.

i thought of using sqllite numerous table lookups result in slow performance.

currently class if getting large switch , if statements not slow, cumbersome.

i've got data in pdf, excel, etc , can cut n paste table data enough..

am missing functionality of android can perform table lookups (i.e. excel "vlookup" functionality?) or doomed write thousand of if/then statements.

found this

http://developer.android.com/training/search/search.html

add data flat file, load schema, , load memory. access should faster, might better option....

i give go , see..


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -