View Single Post
Old 09-13-2008, 10:30 PM   #4
SilentThief
Symbol of Cyric
 
Burger Time Champion
Join Date: September 10, 2001
Location: USA
Age: 49
Posts: 1,301
Default Re: How to use GPDL to check for race?

Quote:
Originally Posted by manikus View Post
Hmm, seems I was being mislead by notes. I had exactly that script, except "Elf" would have been 5. What I was working from said it needed to be a numerical value. And the examples I found were for class and used the numerical value and not the class name.
My notes were not from the help file, but they were from a developer. Oh well, as long as I get it right and make sure and go by the correct source as I update the Help files.
There is quite a bit of info that you can cull (correct word???) from the help file and the text files in the GPDL directory. This was the basis for the guide I started, and trying to interpret the usage of the variables from those examples. An example of this is the standard of the GET and SET values. I'm sure you understand this, but just to clarify for the others following along; the GET and SET values normally look like this:

$GET_CHAR_ALIGNMENT( String )
$SET_CHAR_ALIGNMENT( String, String )

and the variables (called "String") translate to this:

$GET_CHAR_ALIGNMENT($TargetIndex )
$SET_CHAR_ALIGNMENT($TargetIndex, New_Value )

But on some of the commands have an "Actor" value, instead of the "String" value. Like this:

$LAST_ATTACKER_OF( Actor )

Putting $TargetIndex in this is incorrect. Instead, the strings that deal with Actor have to have the Actor label and are grouped at the top of the command list. An Example that would work would be this:

$LAST_ATTACKER_OF($Myself)
-or-
$LAST_ATTACKER_OF($Target)

Quote:
Originally Posted by manikus View Post
I'm working on the spells database. Hold person works on everything, that is unless you start using activation scripts. Now we have Hold Monster, Hold Undead, Hold Snake and of course Hold Person spells (the first one was the only one not working properly).
Since this works unless using activation scripts, then Hold Person works indefinately? I'm not sure what you meant by this.

Quote:
Originally Posted by manikus View Post
I think working on the Guide again would be pretty cool. If you can get it to a state that you like, we can add it into the new help "guides".
I've decided that the help files of the future will be a "Player's Handbook", a "Dungeon Master's Design Guide" and a "Monster Manual". We're also going to be switching to pdf and putting an html version online at the official site.
I think if I do return to this, I'd want to reorganize it to make it simpler to follow and learn. These talks get the creative juices flowing, tho...

ST
ps, as for the LAST ATTACKER command, I was trying to set up a fire shield spell that hits someone for damage if they hit you. But so far I haven't been able to get it to fire off a retaliation attack more than once, and only after the person hits if you cast the spell then...
__________________
http://www.wilhelmscream.net/

Last edited by SilentThief; 09-13-2008 at 10:32 PM.
SilentThief is offline   Reply With Quote