Difference between revisions of "User talk:Dwarduk"
Jump to navigation
Jump to search
imported>Dwarduk |
imported>Dwarduk m (→Form.HasKeyword: fixing slight formatting mistake in my comment) |
||
Line 10: | Line 10: | ||
:Thank you very much for the prompt response! So would it work if I did, for instance: | :Thank you very much for the prompt response! So would it work if I did, for instance: | ||
<source lang="papyrus">KeyWord property ArmorCuirassKeyword auto | |||
;... | ;... | ||
if (akBaseItem.HasKeyword(ArmorCuirassKeyword)) | if (akBaseItem.HasKeyword(ArmorCuirassKeyword)) |
Revision as of 18:09, 7 February 2012
Testing my signature — dwarduk (T/C) 17:40, 7 February 2012 (EST)
Form.HasKeyword
In Papyrus, forms can no longer be referred to directly by editorID. Instead, you need to make a property, and assign the form as the value of that property. For example:
KeyWord property MyKeyWord auto
You can then use that property as a parameter of Form.HasKeyword
-- Cipscis 18:05, 7 February 2012 (EST)
- Thank you very much for the prompt response! So would it work if I did, for instance:
KeyWord property ArmorCuirassKeyword auto
;...
if (akBaseItem.HasKeyword(ArmorCuirassKeyword))
; do stuff
endif