![]() |
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. |
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 ;) |
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. |
Re: How to use GPDL to check for race?
Quote:
$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:
Quote:
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... :( |
Re: How to use GPDL to check for race?
Quote:
|
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