Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - d20 System

Notices

Reply
 
Thread Tools Display Modes
Adro85
Junior Member
 
Join Date: Oct 2007
Location: Kalamazoo, MI
Posts: 14
Send a message via Yahoo to Adro85

Old October 6th, 2007, 03:30 PM
How do you script monstrous races in prereq? We have tried
tagis[Race.Kobold] (which kobold race is wrong anyway, they do not have a natural armor and base speed is 30 not 20) and that does not work. We are working on the dragonblood sutype. How do specify that things like Kobolds, Lizardfolk, and basiclly all humonoid reptillian are dragonblood subtype. Also how do we scrpit in templates? I have taken the half-dragon template and applied racial skills to them based on the dragon type. Some feats you must be dragonblood subtype, but half-dragon qualify. If I know how to script both the race and the template, I know how to script that you must have one or the other.
Adro85 is offline   #1 Reply With Quote
Ravencloak
Junior Member
 
Join Date: Feb 2007
Posts: 18

Old October 9th, 2007, 08:17 AM
The following eval script should work. Alternately, I think you could check for the race using the same script I used to check for the Half-Dragon template, except you'd check for [rKobold] instead of [tmHlDragon].

~Check to see if creature is a kobold or has half-dragon template

@valid = 0

if (hero.tagis[wGroup.rKobold] <> 0) then
@valid = 1
endif

if (pickexists[tmHlDragon] <> 0) then
@valid = 1
endif
Ravencloak is offline   #2 Reply With Quote
Colen
Senior Member
Lone Wolf Staff
 
Join Date: Dec 2008
Posts: 4,690

Old October 16th, 2007, 07:53 AM
Adro85 wrote:
>
>
> How do you script monstrous races in prereq? We have tried
> tagis[Race.Kobold] (which kobold race is wrong anyway, they do not have
> a natural armor and base speed is 30 not 20) and that does not work.

The best way to do it would be a script like this:

~Check to see if creature is a kobold
@valid = 0
if (pickexists[rKobold] <> 0) then
@valid = 1
endif

This checks to see if the "Kobold" race has been added to the hero.

> We
> are working on the dragonblood sutype. How do specify that things like
> Kobolds, Lizardfolk, and basiclly all humonoid reptillian are
> dragonblood subtype. Also how do we scrpit in templates? I have taken
> the half-dragon template and applied racial skills to them based on the
> dragon type. Some feats you must be dragonblood subtype, but half-dragon
> qualify. If I know how to script both the race and the template, I know
> how to script that you must have one or the other.

The best way is just to create various special abilities for the
Dragonblood stuff, and then create new versions of the Kobold /
Lizardman / etc races which have those special abilities.

If you want to be able to tell whether something is a "Dragonblood"
race, you want to use the User Tags in the editor. At the bottom of the
table on the Races tab, there's a "user tags" option. Click on that,
then add a new tag called "Dragonbld" or something similar. Then, in a
script for each Dragonblood race, do this:

var result as number
result = hero.assign[User.Dragonbld]

Then, in a pre-req, you can test whether the hero is a dragonblooded
race by doing this test:

@valid = 0
if (hero.tagis[User.Dragonbld] <> 0) then
@valid = 1
endif


Hope this helps,
Colen is offline   #3 Reply With Quote
Reply

Thread Tools
Display Modes

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 Off

Forum Jump


All times are GMT -8. The time now is 06:41 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.