Visit the Ironworks Gaming Website Email the Webmaster Graphics Library Rules and Regulations Help Support Ironworks Forum with a Donation to Keep us Online - We rely totally on Donations from members Donation goal Meter

Ironworks Gaming Radio

Ironworks Gaming Forum

Go Back   Ironworks Gaming Forum > Ironworks Gaming Forums > Dungeon Craft - RPG Game Maker
FAQ Calendar Arcade Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 09-13-2008, 02:40 PM   #1
manikus
Jack Burton
 

Join Date: July 13, 2001
Location: Stumptown
Age: 53
Posts: 5,444
Sunglass Man 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.
__________________
manikus is offline   Reply With Quote
Old 09-13-2008, 08:25 PM   #2
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?

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
__________________
http://www.wilhelmscream.net/
SilentThief is offline   Reply With Quote
Old 09-13-2008, 08:44 PM   #3
manikus
Jack Burton
 

Join Date: July 13, 2001
Location: Stumptown
Age: 53
Posts: 5,444
Default 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.

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.
__________________
manikus is offline   Reply With Quote
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
Old 09-14-2008, 01:14 AM   #5
manikus
Jack Burton
 

Join Date: July 13, 2001
Location: Stumptown
Age: 53
Posts: 5,444
Sunglass Man Re: How to use GPDL to check for race?

Quote:
Originally Posted by SilentThief View Post
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.
__________________
manikus is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logic Blocks and GPDL functions Dinonykos Dungeon Craft - RPG Game Maker 11 01-16-2007 05:20 AM
Logic Block? GPDL functin? HELP! TwilightKing Dungeon Craft - RPG Game Maker 4 04-17-2006 01:58 AM
Who would win this race??? (Monster Race) Ziroc General Discussion 52 04-14-2005 06:01 PM
I need tutorial with gpdl script please foody Dungeon Craft - RPG Game Maker 0 08-20-2002 11:06 AM
GPDL bugs & suggestions dominions Dungeon Craft - RPG Game Maker 7 05-27-2002 08:42 AM


All times are GMT -4. The time now is 10:25 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