Ironworks Gaming Forum

Ironworks Gaming Forum (http://www.ironworksforum.com/forum/index.php)
-   Dungeon Craft - RPG Game Maker (http://www.ironworksforum.com/forum/forumdisplay.php?f=20)
-   -   How to use GPDL to check for race? (http://www.ironworksforum.com/forum/showthread.php?t=99788)

manikus 09-13-2008 02:40 PM

How to use GPDL to check for race?
 
There isn't a "$GET" or "$SET" for race, there is only the "$Race(Actor)" string.

I know that events can be set fire or not to fire based upon a certain race being in the party. So, it seems there must be a way to do this.

Any help would be greatly appreciated.

SilentThief 09-13-2008 08:25 PM

Re: How to use GPDL to check for race?
 
I managed to pull some examples out of the help file, and this is what you found as well:

$IF ($Race($Target())=="Elf")
{
$RETURN true;
}
$ELSE
{
$RETURN false;
};

(or more simply $RETURN ($Race($Target())=="Elf");)

Also, from the help file under "character attributes",

Race Values:
0=Human, 1=Elf, 2=Dwarf, 3=Gnome, 4=HalfElf, 5=Halfling

Not sure what you are trying to do (if I knew more I might be able to help more), but hope this helps some.

ST
ps, questions like this and your "cracking the code" on ASLs makes me want to take up the "guide" gauntlet again ;)

manikus 09-13-2008 08:44 PM

Re: How to use GPDL to check for race?
 
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. :D

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).

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.

SilentThief 09-13-2008 10:30 PM

Re: How to use GPDL to check for race?
 
Quote:

Originally Posted by manikus (Post 1216691)
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. :D

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 (Post 1216691)
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 (Post 1216691)
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... :(

manikus 09-14-2008 01:14 AM

Re: How to use GPDL to check for race?
 
Quote:

Originally Posted by SilentThief (Post 1216704)
Since this works unless using activation scripts, then Hold Person works indefinately? I'm not sure what you meant by this.

I'm creating these different spells using the begin script. The script returns a value of 1 if true, 0 if false. If the value is 1, then the spell happens, or affects that target, if 0 it doesn't. :)


All times are GMT -4. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved