Junior 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. |
#1 |
Junior Member
Join Date: Feb 2007
Posts: 18
|
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 |
#2 |
Senior Member
Lone Wolf Staff
Join Date: Dec 2008
Posts: 4,690
|
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, |
#3 |
|
|