For a private, for-fun Nymph kit (that will not have a public release), I designed an innate ability called "Kiss of Death". The ability creates a magical weapon that causes 4 damage per level of the Nymph with a save vs. breath for half. I didn't want to create 40 items manually or by 40 seperate patch commands (call me lazy... or efficient
). I wanted to use a FOR loop to create the items for me. But... WeiDU will not allow a FOR or WHILE loop outside of a patch-type command. So... I created this workaround (which saves time and decreases tp2 size):
COPY ~Nymph/WLKISSD.ITM~ ~override/WLKISSD.ITM~
FOR ( index = 1 ; index < 41 ; index = index + 1 ) BEGIN
INNER_ACTION BEGIN
COPY ~Nymph/WLKISSD.ITM~ ~override/WLKISS%index%.ITM~
SAY NAME2 @3
WRITE_LONG 0xAE ("%index%" * 2)
WRITE_LONG 0xDE ("%index%" * 2)
END // INNER_ACTION
END // FOR
The first copy command is meaningless: it simply copies the item template into the override directory.
Skilled modders can figure out the rest without a lengthy explanation from me.
Do I get bonus points from Japeth for finding a way to use INNER_ACTION BEGIN in my mod?
a Wounded Lion