DIGITAL_DEVIL_DATABASE Community Forum
November 24, 2024, 04:07:16 PM
Welcome, Guest. Please login or register.

Login with username, password and session length

News: 2011: http://www.digitaldevildb.com/bbs/index.php/topic,1031.msg10894.html
 
   Home   Help Search Calendar Login Register  
Pages: 1 2 [3] 4 5 6 7 8 9 Go Down
  Print  
Author Topic: Need help with your Demonary? (Read 137792 times)
yksehtniycul
The Karma King and
New Administrator
*****

offline Offline

MaleView Profile WWW
don't play with me 'cause you're playing with fire
yksehtniycul phones it in,
 « Reply #30 on: November 05, 2008, 09:14:34 PM »
I can find the urls in the revision history, but I'm a little busy atm, and I wouldn't have time to review them regardless. When you do make a copy of a spreadsheet, try to get rid of all the old info first wink

Make sure you look these over before going too far:

http://www.digitaldevildb.com/images/persona/2ep/2ep.zip

Wait a little while for that file to finish uploading...



Logged
yksehtniycul has 2094 Posts (+0/-0 Karma)
Emilio Morales
Lone Wolf
Moderator
*****

offline Offline

MaleView Profile WWW Email
personauser@hotmail.com
俺たちには大切の友達ある。
Emilio Morales phones it in,
 « Reply #31 on: November 05, 2008, 09:24:56 PM »
I will use those images for the stats and spells and the other site for the Japanese names. Thanks tongue

EDIT: I thought those images have the spells too. geno

« Last Edit: November 06, 2008, 09:30:15 AM by Emilio Morales »


Signature under construction 'cause the last one died.
10,000 Punishments for a Sin

Logged
Emilio Morales has 1133 Posts (+25/-0 Karma)
yksehtniycul
The Karma King and
New Administrator
*****

offline Offline

MaleView Profile WWW
don't play with me 'cause you're playing with fire
yksehtniycul phones it in,
 « Reply #32 on: November 10, 2008, 04:59:19 AM »
I will use those images for the stats and spells and the other site for the Japanese names. Thanks tongue

EDIT: I thought those images have the spells too. geno
I just have what Tony had on the site. Sorry frown



Logged
yksehtniycul has 2094 Posts (+0/-0 Karma)
Emilio Morales
Lone Wolf
Moderator
*****

offline Offline

MaleView Profile WWW Email
personauser@hotmail.com
俺たちには大切の友達ある。
Emilio Morales phones it in,
 « Reply #33 on: November 10, 2008, 09:04:12 AM »
Don't worry about it, wink I guess I'll have to play to write the spells with the correct name. The Persona 2 Batsu's demonary is almost complete (only Personas) once I finish with it, I'll began working with the demons of the same game or sort the Personas by level, it all depends if I have the will to do it at this moment. rolleyes


Signature under construction 'cause the last one died.
10,000 Punishments for a Sin

Logged
Emilio Morales has 1133 Posts (+25/-0 Karma)
Emilio Morales
Lone Wolf
Moderator
*****

offline Offline

MaleView Profile WWW Email
personauser@hotmail.com
俺たちには大切の友達ある。
Emilio Morales phones it in,
 « Reply #34 on: November 10, 2008, 11:20:02 AM »
There, the Demonary for Batsu (only Personas) is already completed (not 100% completed yet), if anyone wants to help me with the names of spell, then be my guest (the ones with asterisks (*)). Once the names are ready, I will began sorting them by level, and then I'll start with the same demonary but with the demons in it.

In other words, the structure of the demonary is ready, I only need to fix the spell names and add other info that is missing, Non Compat (I guess this one is "non compatible, right?) and Return.



Signature under construction 'cause the last one died.
10,000 Punishments for a Sin

Logged
Emilio Morales has 1133 Posts (+25/-0 Karma)
yksehtniycul
The Karma King and
New Administrator
*****

offline Offline

MaleView Profile WWW
don't play with me 'cause you're playing with fire
yksehtniycul phones it in,
 « Reply #35 on: November 10, 2008, 09:12:26 PM »
I dunno... surely you shouldn't have to play. There should be a faq with the names somewhere. If not in English, definitely in Japanese. It would be easier to just list the Japanese names and translate them later than "playing the game."

Non-compat is for types of skills Personae can never inherit. I dunno if that is part of P2 but one of the Japanese sites lists these stats for P1. For instance a fire based persona maybe can't use ice??

The four empty fields you've not filled in are for magic attack and defense, and physical attack and defense (Persona 1 only has magic for personae so I added the two for P2 -- I called them MAG/INT/ATK/DEF)




Logged
yksehtniycul has 2094 Posts (+0/-0 Karma)
Emilio Morales
Lone Wolf
Moderator
*****

offline Offline

MaleView Profile WWW Email
personauser@hotmail.com
俺たちには大切の友達ある。
Emilio Morales phones it in,
 « Reply #36 on: November 11, 2008, 10:20:37 AM »
The four empty fields you've not filled in are for magic attack and defense, and physical attack and defense (Persona 1 only has magic for personae so I added the two for P2 -- I called them MAG/INT/ATK/DEF)

doh You're right about those 4. Anyway, I'll have to replace the MAG and INT with SAt. and SDf.

EDIT: Before I start changing the MAG to SAt. and adding At. and Df. to the sheets, those anyone knows if this stats are the same always, or they change with the rank ups?

« Last Edit: November 11, 2008, 10:27:49 AM by Emilio Morales »


Signature under construction 'cause the last one died.
10,000 Punishments for a Sin

Logged
Emilio Morales has 1133 Posts (+25/-0 Karma)
yksehtniycul
The Karma King and
New Administrator
*****

offline Offline

MaleView Profile WWW
don't play with me 'cause you're playing with fire
yksehtniycul phones it in,
 « Reply #37 on: November 11, 2008, 11:42:26 PM »
The stats work just like MAG/INT. SAt etcetera might be more confusing, but it's not a big deal either way.


Logged
yksehtniycul has 2094 Posts (+0/-0 Karma)
Emilio Morales
Lone Wolf
Moderator
*****

offline Offline

MaleView Profile WWW Email
personauser@hotmail.com
俺たちには大切の友達ある。
Emilio Morales phones it in,
 « Reply #38 on: November 28, 2008, 11:10:55 AM »
Ok, finally after dealing with some viruses on both computers I was able to keep working with the P2 Demonary. The only thing that is missing the the row of "Non-Compat" since I don't know what to put in it. The only thing we (or "I") need to do is rearrange the Personas by level as you requested, but if anyone is not willing to do it, I'll keep an eye on that in a while. goodnight In the meantime, I will look for the info for the "Soul Hackers" Demonary. rolleyes




Signature under construction 'cause the last one died.
10,000 Punishments for a Sin

Logged
Emilio Morales has 1133 Posts (+25/-0 Karma)
yksehtniycul
The Karma King and
New Administrator
*****

offline Offline

MaleView Profile WWW
don't play with me 'cause you're playing with fire
yksehtniycul phones it in,
 « Reply #39 on: November 28, 2008, 12:48:45 PM »
Let me know before you get too far so I can approve the layout of new spreadsheets ok. I think this basic format is pretty forgiving, but I'd still like to make sure everything looks right. Also have some links I can use in the top part of the spreadsheet please.

Non-compat is the types of skills a Persona can never use. P2 Personae might not be limited that way, but apparently P1 Personae were.



Logged
yksehtniycul has 2094 Posts (+0/-0 Karma)
Emilio Morales
Lone Wolf
Moderator
*****

offline Offline

MaleView Profile WWW Email
personauser@hotmail.com
俺たちには大切の友達ある。
Emilio Morales phones it in,
 « Reply #40 on: November 28, 2008, 03:45:37 PM »
Oh! I see, thanks for clearing things out for me! wink And don't worry, I'll let you know when I'm going to work with the layout of Soul Hackers. But I guess I'll start with sorting the P2 Demonary by level, just one question. I'm planing on creating a new sheet and then just "cut", "paste" the Personas from one  sheet to the other, so in that way it would be much easier. Now, is this okay with you or do you have any issue with it? rainbow


Signature under construction 'cause the last one died.
10,000 Punishments for a Sin

Logged
Emilio Morales has 1133 Posts (+25/-0 Karma)
yksehtniycul
The Karma King and
New Administrator
*****

offline Offline

MaleView Profile WWW
don't play with me 'cause you're playing with fire
yksehtniycul phones it in,
 « Reply #41 on: November 28, 2008, 04:03:54 PM »
Oh! I see, thanks for clearing things out for me! wink And don't worry, I'll let you know when I'm going to work with the layout of Soul Hackers. But I guess I'll start with sorting the P2 Demonary by level, just one question. I'm planing on creating a new sheet and then just "cut", "paste" the Personas from one  sheet to the other, so in that way it would be much easier. Now, is this okay with you or do you have any issue with it? rainbow

It isn't technically necessary they be sorted in any way. But it would look more consistent. As long as you are the primary maintainer of the spreadsheets it is up to you. It is a good idea to think about the future, but if you feel like doing something else instead in the meantime that is fine too.

I'm going to be using the P1 spreadsheet for debugging. I don't mind if you feel like filling it in while I'm at it.



Logged
yksehtniycul has 2094 Posts (+0/-0 Karma)
Emilio Morales
Lone Wolf
Moderator
*****

offline Offline

MaleView Profile WWW Email
personauser@hotmail.com
俺たちには大切の友達ある。
Emilio Morales phones it in,
 « Reply #42 on: November 28, 2008, 05:22:15 PM »
I'm going to be using the P1 spreadsheet for debugging. I don't mind if you feel like filling it in while I'm at it.

Ok, if you don't mind, I guess I'll start working with the P1 sheet with the links you write in there. But I guess I will look at this  on Monday, since in a few minutes I'm out to my house smug and I need to work on my manga. razz



Signature under construction 'cause the last one died.
10,000 Punishments for a Sin

Logged
Emilio Morales has 1133 Posts (+25/-0 Karma)
yksehtniycul
The Karma King and
New Administrator
*****

offline Offline

MaleView Profile WWW
don't play with me 'cause you're playing with fire
yksehtniycul phones it in,
 « Reply #43 on: November 30, 2008, 05:12:43 PM »
I have the CSV export fully parsed:

Input:
Code:
DIGITAL DEVIL DATABASE www.digitaldevildb.com
"Personae Database for Megami Ibunroku Persona ""Be Your True Mind"" and Revelations: Persona"
Some Useful Online Links:,,,,,,,,,URLs:
Revelations: Persona to English and in-game names in romaji:,,,,,,,,,http://www.sumarucity.com/megami/wiki/index.php?title=Persona_Name_Changes
Megami Ibunroku personae names in katakana by level:,,,,,,,,,http://fool-est.hp.infoseek.co.jp/persona/ibunroku/data/lv_persona.html
Revelations: Persona personae stats:,,,,,,,,,http://www.gamefaqs.com/console/psx/file/198277/4086
Editing Guidelines:
"- Columns marked with asterisks, ie. *, are required to be filled. This probably only applies in the first column."
"- Table beginning rows are yellow, legends are grey, information is white, and notes are purple."
"- Synonym rows start with the dollar sign, ie. $, personae rows begin with a number, the persona's level, and persona descriptions begin with an exclamation point, ie. !"
"- Never use commas, ie. (,) for now... as commas make processing the .csv file considerably more complicated."
Synonyms Table Alphabetically Sorted by Revelations Titles
*,Revelations,,English Translation,,,,Megami,,,,functions,,,,,reserved,,,,,notes
$,Hell Book,,Book of the Dead,,,,閻魔帳,,,,item,,,,,,,,,,A recipe item.   閻魔帳 is a book used by Yama to judge the dead; and can also humorously mean a class grades ledger -- the teacher assuming the role of Yama in this play on words.
Personae Table Sorted According to Persona Level
*,Names,,,Tarot,,Growth,Non-,Items,,Stats,,,,,,,Skills,,,,,,,Affinity
Lv,English,Megami,Revelations,Arcana,SP,Pattern,Compat,Recipe,Return,STR,VIT,TEC,AGL,LUC,MAG,INT,Lv1,Lv2,Lv3,Lv4,Lv5,Lv6,Lv7,Weak,Resist,Immune,Reflect,Drain,Type
4,Yama ,ヤマ,Trickster,5 Heiro.,3,大器晩成B型,降魔,Hell Book,パララマストーン,15,17,12,15,7,55,55,Duel Sword; DEF up; Spirit norm; Holyer; STR up,,,,,,,,Magic,,,,Holylight; Exorcism
!,All we know about Yama here...
*,Names,,,Tarot,,Growth,Non-,Items,,Stats,,,,,,,Skills,,,,,,,Affinity
Lv,English,Megami,Revelations,Arcana,SP,Pattern,Compat,Recipe,Return,STR,VIT,TEC,AGL,LUC,MAG,INT,Lv1,Lv2,Lv3,Lv4,Lv5,Lv6,Lv7,Weak,Resist,Immune,Reflect,Drain,Type
4,Pixie,ピクシー,Pixie,6 Lovers,2,ピクシー専用型,地震,,LUKインセンス,5,10,7,16,18,42,63,Cure; Wind; Happy Dance; Flash; Star Punch; Bolt,,,,,,,Physical,,,Wind,,Elemental; Air
!,All we know about Pixie here...

Output:
Code:
php test ok!
preview ok!
importing...
found 23 rows...
26 Synonyms imported...
ITEM Book of the Dead
閻魔帳 / Hell Book
 A recipe item. 閻魔帳 is a book used by Yama to judge the dead; and can also humorously mean a class grades ledger -- the teacher assuming the role of Yama in this play on words. generated!
TYPE unknown
大器晩成B型 / missing
 generated!
TYPE unknown
降魔 / missing
 generated!
ITEM unknown
パララマストーン / missing
 generated!
SKILL unknown
知りない / Duel Sword
 generated!
SKILL unknown
知りない / DEF up
 generated!
SKILL unknown
知りない / Spirit norm
 generated!
SKILL unknown
知りない / Holyer
 generated!
SKILL unknown
知りない / STR up
 generated!
TYPE unknown
知りない / Magic
 generated!
TYPE unknown
知りない / Holylight
 generated!
TYPE unknown
知りない / Exorcism
 generated!
PERSONA Yama
ヤマ / Trickster
 generated!
TYPE unknown
ピクシー専用型 / missing
 generated!
TYPE unknown
地震 / missing
 generated!
ITEM unknown
LUKインセンス / missing
 generated!
SKILL unknown
知りない / Cure
 generated!
TYPE unknown
知りない / Wind
 generated! generated!
SKILL unknown
知りない / Happy Dance
 generated!
SKILL unknown
知りない / Flash
 generated!
SKILL unknown
知りない / Star Punch
 generated!
SKILL unknown
知りない / Bolt
 generated!
TYPE unknown
知りない / Physical
 generated!
TYPE unknown
知りない / Elemental
 generated!
TYPE unknown
知りない / Air
 generated!
PERSONA Pixie
ピクシー / Pixie
 generated!
2 Personae imported...
Hierophant Yama
ヤマ / Trickster
 All we know about Yama here...
大器晩成B型; 降魔; Book of the Dead; パララマストーン
15STR 17VIT 12TEC 15AGL 7LUC 55MAG 55INT
STR up, Holyer, Spirit norm, DEF up, Duel Sword;
unknown(0); Magic; unknown(0); unknown(0); unknown(0);
Holylight Exorcism
Lovers Pixie
ピクシー / Pixie
 All we know about Pixie here...
ピクシー専用型; 地震; unknown(0); LUKインセンス
5STR 10VIT 7TEC 16AGL 18LUC 42MAG 63INT
Bolt, Star Punch, Flash, Happy Dance, Wind, Cure;
Physical; unknown(0); unknown(0); Wind; unknown(0);
Elemental Air

Source code:
Code:
/* we begin in php mode */

echo 'php test ok!<br>';

if(!$_POST['d3-preview']) return;

echo 'preview ok!<br>';

$importing = &$_POST['import-input'];

if(!$importing ) return; else echo 'importing...<br>'; //, $importing, '<br><br>';

define("UNKNOWN",0);
define("PERSONA",1);
define("DEMON",2);
define("SKILL",3);
define("ITEM",4);
define("TYPE",5);

class Synonym
{
 var $name = 'unknown';
 var $mip_name = '知りない';
 var $rev_name = 'missing';
 var $function = 0;
 var $notes = NULL;
 var $more = 0;
}

$Synonyms = array();

$Synonym[0] = new Synonym; //Null Synonym

$Lookups = array(0=>0,""=>0,"unknown"=>0,"知りない"=>0);

$s = 0; //Synonym counter

function Lookup($f,$Name,$MIP=NULL,$Rev=NULL,$Notes="generated!")
{
  if(!$Name&&!$MIP&&!$Rev) return 0; //hack?

  if(is_null($MIP)&&!is_null($Name))   
  {
   $Name = ltrim($Name); if($Name[0]>'z') //...
   {
    $MIP = $Name; $Name = NULL; //hack: assuming Japanese
   }
  }
 
  if(is_null($Rev)&&!is_null($Name))
  {
   $Rev = $Name; $Name = NULL; //hack: assuming Revelations
  }

  if(is_string($f))
  {
   switch(strtolower(trim($f)))
   {
   default: $f = UNKNOWN;
   
   case "persona": $f = PERSONA; break;
   case "demon": $f = DEMON; break;
   case "skill": $f = SKILL; break;
   case "item": $f = ITEM; break;
   case "type": $f = TYPE; break;
   }
  }
  else if($f>5) $f = UNKNOWN; //hack

  global $Synonyms, $Lookups, $s;
 
  $S = NULL; $out = $Lookups[$Name];
   
  if(is_null($out)) //add synonym
  {
   if(!$S) $S = $Synonyms[$out=++$s] = new Synonym();
   
   $Lookups[$S->name=trim($Name)] = $s;
  }
  else if($out) $S = $Synonyms[$out];
 
  $mip = $Lookups[$MIP?$MIP:NULL];
 
  if(is_null($mip)) //add synonym
  {
   if(!$S) $S = $Synonyms[$out=++$s] = new Synonym();
   
   $Lookups[$S->mip_name=trim($MIP)] = $s;
  }
  else if($mip)
  {
   if(!$S) $S = $Synonyms[$out=$mip];
     
   $S->mip_name = trim($MIP); //danger: overwriting   
  }
   
  $rev = $Lookups[$Rev?$Rev:NULL];
   
  if(is_null($rev)) //add synonym
  {       
   if(!$S) $S = $Synonyms[$out=++$s] = new Synonym();
   
   $Lookups[$S->rev_name=trim($Rev)] = $s;
  }
  else if($rev)
  {
   if(!$S) $S = $Synonyms[$out=$rev];
     
   $S->rev_name = trim($Rev); //danger: overwriting
  }
 
  if(!$S) return $out; //out probably zero
 
  $S->function = $f; //danger: overwriting
       
  if($Notes)
 
   if(!$S->notes) $S->notes = $Notes;
   
    else $S->notes.=" ".$Notes;
 
  return $out;
}

class Persona
{
 var $synonym = 0;

 var $lvl = 0;
 var $name = 'unknown';
 var $mip_name = '知りない';
 var $rev_name = 'missing';
 var $arcana = 22; //lookup
 var $sp = 0;
 var $pattern = 0; //lookup
 var $compat = NULL; //lookup array
 var $recipe = NULL; //lookup array
 var $return = 0; //lookup
 var $str = 0;
 var $vit = 0;
 var $tec = 0;
 var $agl = 0;
 var $luc = 0;
 var $mag = 0;
 var $int = 0;
 var $skills = NULL; //lookup array
 var $weak = NULL; //lookup array
 var $resist = NULL; //lookup array
 var $immune = NULL; //lookup array
 var $reflect = NULL; //lookup array
 var $drain = NULL; //lookup array
 var $typeA = 0; //lookup
 var $typeB = 0; //lookup
 var $story = "";
}

$Personae = array();

$Personae[0] = new Persona; //Null Persona

$lines = explode("\r\n",$importing); //hack??

$rows = sizeof($lines);

echo 'found ', $rows, ' rows... <br>';

for($r=0,$p=0;$r<$rows;$r++)
{
 $row = &$lines[$r];

 $mode = $row[0];

 if($mode=='$') //a synonym line
 {
  $in  = explode(",",$row); $cols = sizeof($stats);
   
  Lookup($in[11],$in[3],$in[7],$in[1],$in[21]);
 
 }
 else if($mode>='0'&&$mode<='9') //a persona line
 {
//printf("%04d %s <br>",$r,$row);

  $P = $Personae[++$p] = new Persona();
 
  $stats  = explode(",",$row); $cols = sizeof($stats);
   
  for($c=0;$c<$cols;$c++) switch($c)
  {
  case 0: $P->lvl = (integer)$stats[0]; break;
  case 1: $P->name = trim($stats[1]); break;
  case 2: $P->mip_name = trim($stats[2]); break;
  case 3: $P->rev_name = trim($stats[3]); break;
  case 4: $P->arcana = (integer)$stats[4]; break;
  case 5: $P->sp = (integer)$stats[5]; break;
  case 6: $P->pattern = Lookup(TYPE,$stats[6]); break;
  case 7: $P->compat = array();
  {
   $list  = explode(";",$stats[7]); $n = sizeof($list);
   
   for($i=0;$i<$n;$i++) $P->compat[] = Lookup(TYPE,$list[$i]); break;
  }
  case 8: $P->recipe = array();
  { 
   $list  = explode(";",$stats[8]); $n = sizeof($list);
   
   if($n) $P->recipe[0] = Lookup(ITEM,$list[0]);
   
   for($i=1;$i<$n;$i++) $P->recipe[] = Lookup(DEMON,$list[$i]); break;
  }
  case 9: $P->return = Lookup(ITEM,$stats[9]); break;
 
  case 10: $P->str = $stats[10]; break; 
  case 11: $P->vit = $stats[11]; break;
  case 12: $P->tec = $stats[12]; break;
  case 13: $P->agl = $stats[13]; break;
  case 14: $P->luc = $stats[14]; break;
  case 15: $P->mag = $stats[15]; break;
  case 16: $P->int = $stats[16]; break;
 
  case 17: $P->skills = array();
  {
    $skills = explode(";",$stats[17]);
           
    for($i=0,$n = sizeof($skills);$i<$n;$i++)
   
     $P->skills[] = Lookup(SKILL,$skills[$i]); break;
  }
  case 18: case 19: case 20:
  case 21: case 22: case 23:
  {
   if($stats[$c]&&$stats[$c][0])
   
    $P->skills[] = Lookup(SKILL,$stats[$c]); break;     
  }
  case 24: $P->weak = array();
  {
    $types = explode(";",$stats[24]);
           
    for($i=0,$n = sizeof($types);$i<$n;$i++)
   
     $P->weak[] = Lookup(TYPE,$types[$i]); break;
  }
  case 25: $P->resist = array();
  {
    $types = explode(";",$stats[25]);
           
    for($i=0,$n = sizeof($types);$i<$n;$i++)
   
     $P->resist[] = Lookup(TYPE,$types[$i]); break;
  }
  case 26: $P->immune = array();
  {
    $types = explode(";",$stats[26]);
           
    for($i=0,$n = sizeof($types);$i<$n;$i++)
   
     $P->immune[] = Lookup(TYPE,$types[$i]); break;
  }
  case 27: $P->reflect = array();
  {
    $types = explode(";",$stats[27]);
           
    for($i=0,$n = sizeof($types);$i<$n;$i++)
   
     $P->reflect[] = Lookup(TYPE,$types[$i]); break;
  }
  case 28: $P->drain = array();
  {
    $types = explode(";",$stats[28]);
           
    for($i=0,$n = sizeof($types);$i<$n;$i++)
   
     $P->drain[] = Lookup(TYPE,$types[$i]); break;
  }
  case 29:
  {
    $types = explode(";",$stats[29]);
   
    if(sizeof($types)<2) continue;
             
    $P->typeA = Lookup(TYPE,$types[0]);
    $P->typeB = Lookup(TYPE,$types[1]);
               
    break;
  } 
  default: $c = $cols; //finish
  }   
   
  $P->synonym = Lookup(PERSONA,$P->name,$P->mip_name,$P->rev_name);   
 }
 else if($mode=='!') //a description line
 {
  if(!$p) continue; //no Persona exist yet

  for($i=1;$row[$i]&&$row[$i]!=',';$i++);
 
  if($row[$i]) $Personae[$p]->story.=substr($row,++$i);
 }
 else continue;
}

echo $s, ' Synonyms imported... <br>';

$Functions = array
(
"UNKNOWN","PERSONA", "DEMON", "SKILL", "ITEM", "TYPE"
);

for($i=1;$i<=$s;$i++)
{
 $S = $Synonyms[$i];

 echo $Functions[$S->function<6?$S->function:0], ' ';
 
 echo $S->name, '<br>', $S->mip_name, ' / ', $S->rev_name, '<br>&nbsp;', $S->notes,'<br>';
}

echo $p, ' Personae imported... <br>';

$Tarot = array
(
"0", "The ", "Fool",
"I", "The ", "Magician",
"II", "The High", "Priestess",
"III", "The ", "Empress",
"IV", "The ", "Emperor",
"V", "The ", "Hierophant",
"VI", "The ", "Lovers",
"VII", "The ", "Chariot",
"VIII", "The ", "Strength",
"IX", "The ", "Hermit",
"X", "The Wheel of", "Fortune",
"XI", "", "Justice",
"XII", "The ", "Hanged Man",
"XIII", "", "Death",
"XIV", "", "Temperance",
"XV", "The ", "Devil",
"XVI", "The ", "Tower",
"XVII", "The ", "Star",
"XVIII", "The ", "Moon",
"XIX", "The ", "Sun",
"XX", "", "Judgment",
"XXI", "The ", "World",
"?", "The", "Null"
);

function Synonym($s)
{
 global $Synonyms, $Lookups;
 
 $S = $Synonyms[$s];
 
 if($Lookups[$S->name]) return $S->name;
 
 if($Lookups[$S->mip_name]) return $S->mip_name;
 if($Lookups[$S->rev_name]) return $S->rev_name;
 
 return 'unknown('. $s .')';
}

for($i=1;$i<=$p;$i++)
{
 $P = $Personae[$i];

 echo $Tarot[$P->arcana%23*3+2], ' ', $P->name, '<br>', $P->mip_name, ' / ', $P->rev_name, '<br>&nbsp;', $P->story,'<br>';
 
 echo Synonym($P->pattern), '; ';
 
 for($ii=sizeof($P->compat);$ii;$ii--)
 
  echo Synonym($P->compat[$ii-1]), $ii>1?', ':'; ';
 
 for($ii=sizeof($P->recipe);$ii;$ii--)
 
  echo Synonym($P->recipe[$ii-1]), $ii>1?', ':'; ';
 
 echo Synonym($P->return), '<br>';
 
 echo $P->str, 'STR ', $P->vit, 'VIT ', $P->tec, 'TEC ',
      $P->agl, 'AGL ', $P->luc, 'LUC ', $P->mag, 'MAG ',
      $P->int, 'INT <br>';
     
 for($ii=sizeof($P->skills);$ii;$ii--)
 
  echo Synonym($P->skills[$ii-1]), $ii>1?', ':';<br>'; 
 
 for($ii=sizeof($P->weak);$ii;$ii--)
 
  echo Synonym($P->weak[$ii-1]), $ii>1?', ':'; ';
 
 for($ii=sizeof($P->resist);$ii;$ii--)
 
  echo Synonym($P->resist[$ii-1]), $ii>1?', ':'; ';
 
 for($ii=sizeof($P->immune);$ii;$ii--)
 
  echo Synonym($P->immune[$ii-1]), $ii>1?', ':'; ';
 
 for($ii=sizeof($P->reflect);$ii;$ii--)
 
  echo Synonym($P->reflect[$ii-1]), $ii>1?', ':'; ';
 
 for($ii=sizeof($P->drain);$ii;$ii--)
 
  echo Synonym($P->drain[$ii-1]), $ii>1?', ':';<br>';
 
 echo Synonym($P->typeA), ' ', Synonym($P->typeB), '<br>';       
}

/* we should end in php mode */

« Last Edit: November 30, 2008, 05:20:52 PM by yksehtniycul »


Logged
yksehtniycul has 2094 Posts (+0/-0 Karma)
yksehtniycul
The Karma King and
New Administrator
*****

offline Offline

MaleView Profile WWW
don't play with me 'cause you're playing with fire
yksehtniycul phones it in,
 « Reply #44 on: December 02, 2008, 04:43:36 AM »
All I can say for now, is the database is technically working as planned...

The key word is technically... from now on it's just a question of presentation smokin

There is still nothing to see on the page linked above however goodnight



Logged
yksehtniycul has 2094 Posts (+0/-0 Karma)
Pages: 1 2 [3] 4 5 6 7 8 9 Go Up
  Print  
 
Jump to:

Powered by MySQL Powered by PHP Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.078 seconds with 21 queries.