|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: Mon Dec 15, 2008 11:41 pm
DAtabase question |
I've got a database variable called Skill.. I need to be able to take a skill from that database variable and multiply it by 100..
so lets sa this.. I need to take the spell casting skill from the Skill database and * it by 100.. How would I go about that? |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue Dec 16, 2008 2:31 pm |
This code includes a double-check that there is actually a skill with that name in the database variable.
Code: |
#local $skillname $skillvalue $result
$skillname = "spell casting"
$skillvalue = @skill.$skillname
#if ($skillvalue = "") {$skillvalue = 0}
$result = $skillvalue * 100
|
|
|
|
|
|
|