• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Races of the Dragon questions

Adro85

Member
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.
 
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
 
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,
 
Back
Top