Is it possible to make a magically created weapon like the flame blade to count as a longsword, so fighter/clerics could weild it with grand mastery if they had the proficiencies. But if the wielder had no skill with the longsword, they would suffer no penalties.
Yes, Black Blade of Disaster does just that. Take a look at the BLAKBLAD.itm file.
Oh and also, the spell create magic weapon, makes a +3 weapon, with it's type chosen by the caster, but it's not glued to the casters hands. Is it possible to modify Flame Blade, so the caster could choose from a selection of bladed weapons AND have them stick to her hands?
Kinda... there's a number of tradeoffs involved with any scheme. For the selection of weapons, you can use an initial spell that creates a menu, similar to Spell Immunity with a custom 2da file. This brings up a choice of spells (one for each option of weapon) for the caster to create.
I would recommend leaving the weapon glued to the caster's hand. Creatures have an invisible 'magical weapon' slot that handles magically-created weapons and overrides anything in the character's regular weapon slots. (This is also why if a magically created weapon is two-handed a character with a shield or off-hand weapon equipped will get a CTD. You'll notice the game has no magically created 2H weapons
) The drawbacks to creating a weapon in inventory is that there is no way to prevent the caster from handing it to another character and letting them use it. You can limit this with item restrictions, but you'll never be able to eliminate it entirely, especially in
ToB thanks to UAI.
EDIT: One more thing... Can spells like flameblade create the weapon in the caster's off-hand?
*day dreaming* Hmm, it'd be fun to have a fighter/druid dual wielding twin flameBlades(Scimitars). Or a high level Fighter/mage wielding the Black Blade of Distruction and the Phantom Blade...
Not possible AFAIK.
So to achieve that the spells would have to act like the create magic weapon spell, which I don't really like, because the mage could pass them to pure fighters and they wouldn't be dispellable.
Unless...
I've seen lots of spells (like the improved shapeshifting) where you have an icon, and when clicked opens into more icons. Is it possible to do that again?
For example: a Fighter/druid 9/12 (Dual-Classed) has grand mastery in scimitars. He's off wondering the forests when he comes across a troll, realising his regular scimitar is no match for such a creature, he begins to cast 'FlameBlade'. After selecting flameblade, 2 options appear (Like after casting Spell Immunity, but less options). He chooses to summon the blade in his main hand. The next set of options are to choose what kind of blade to summon. His choices are 1)Bastard Sword 2)Long Sword 3)Short Sword 4)Katana 5)Scimitar 6) Dagger 7) Sword-handed Sword. He selects Scimitar.
Could it be done?
Yes, use a custom 2da and just use Spell Immunity as a model. However, any weapon magically created and put into the magical weapon slot will be destroyed by Dispel Magic (hardcoded effect) though Littiz apparently found a way around it with the Shapesifter fix in Refinements. I wouldn't recommend any two-handed weapons, for the reasons mentioned parenthetically above.