$12256 / $11500
A couple questions for transformation powers:
1) How do I make it so that I can fly while transformed? Do I just set that in the enemy's .txt file, something like flying=true?
2) How do I set powers/button assignments, such as Left-click=shoot, hotkey 1=heal, hotkey 2=shield, hotkey 3=nuke everyone, etc?
(Also, as a probably corrolary to #1, how do I set, say, Fire immunity?)
The transformation stuff is pretty new and WIP.
1. Set the enemy txt file to flying=1
2. Not sure yet, maybe igorko can help there
3. Set the enemy txt file to attunement_fire=0. That will multiply fire damage by 0. (default = 100, which is interpreted as 100%, so it multiplies damage by 1). So to take double damage from fire you'd say attunement_fire=200
Awesome.
I looked back at the goblin_shaman file and saw how enemy powers are handled (I had no idea) and I have a much better idea #2 now.
The first power defined in the enemy's .txt file will be assigned to lmb, the second power assigned to rmb, the third power to 1, fourth power to 2, etc, etc.
The next available slot will be "untransform"
So for instance, if one transformed into a goblin shaman, their lmb would be bound to Shock, rmb to Shield, 1 to Shock, and no ability to just Swing.
https://github.com/clintbellanger/flare/blob/master/mods/fantasycore/enemies/goblin_shaman.txt
Correct, enemy powers are set automatically. Other transform power options you can check in powers.txt - there is sample power. Also there is sample untransform item in items.txt.
As for flying and rest enemy stats, they are redefined from enemy_name.txt file. So if you need some creature, that is not present in the game atm, you write new creature, and than write transform power to transform into it.