Page 1 of 2
Odd item creation
Posted: Mon Mar 28, 2005 9:07 pm
by Serineth Swiftpaw
I've never used the Toolset scripting before so I have been fighting blindly with it all day, but I'm trying to make a specific item.
The item, when used, turns the person into an Adult Dragon (self cancelable). Great, got that working. What doesn't work is the fact that the damn Shapechange Adult Dragon it uses doesn't have a breath attack! (Why did they do that?). Anyway. What code would I be looking at to add the Dragons breath ability to the character when they change and also to remove it when they cancel the polymorph?
Thanks.
Posted: Mon Mar 28, 2005 10:01 pm
by Mistcaller
One way I can think of, is to apply a proper hide and then remove it.
Posted: Mon Mar 28, 2005 10:06 pm
by Serineth Swiftpaw
Could you give me an example on how to do this as I have no idea where to start...
Posted: Thu Mar 31, 2005 10:53 am
by Serineth Swiftpaw
Mistcaller wrote:One way I can think of, is to apply a proper hide and then remove it.
Right, I've been trying to do that, but it has no effect what so ever. For some reason, it refuses to eqip the hide itself. It just puts it in the players inventory...
For reference, this is the code I am using:
Code: Select all
void main()
{
object oPC = GetPCItemLastEquippedBy();
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(EffectPolymorph(POLYMORPH_TYPE_RED_DRAGON)), oPC);
AssignCommand(oPC, ClearAllActions());
object oSkin = CreateItemOnObject("pc_hide", oPC);
AssignCommand(oPC, ActionEquipItem(oSkin, INVENTORY_SLOT_CARMOUR));
}
Posted: Thu Mar 31, 2005 11:13 am
by Serineth Swiftpaw
Can someone tell me what sort of item the pc_hide should be when I create it in the pallet? Because it never equips it, it just adds it to my inventory. Thanks.
Posted: Thu Mar 31, 2005 11:17 am
by Mistcaller
Serineth Swiftpaw wrote:Can someone tell me what sort of item the pc_hide should be when I create it in the pallet? Because it never equips it, it just adds it to my inventory. Thanks.
"Creature item" it is called in the creation list IIRC.
Posted: Thu Mar 31, 2005 11:33 am
by Serineth Swiftpaw
Mistcaller wrote:Serineth Swiftpaw wrote:Can someone tell me what sort of item the pc_hide should be when I create it in the pallet? Because it never equips it, it just adds it to my inventory. Thanks.
"Creature item" it is called in the creation list IIRC.
Got it and done. Thanks. I had the right item, but it turns out my script was slightly wrong.
Ok, next step... I assumed that adding "Dragon Breath, Fire" to the hide would give the creature the ability to use it.... but it doesn't. Is there any way I can add the ability to the creature? (adding it to the hide doesn't work).
Thanks Mist.
Posted: Thu Mar 31, 2005 11:39 am
by Krator
The best solution to your problem would be editing polymorph.2da and put it in a hak.
Posted: Thu Mar 31, 2005 11:52 am
by Serineth Swiftpaw
Krator wrote:The best solution to your problem would be editing polymorph.2da and put it in a hak.
Thats not going to be viable. Are there any other ways?
Posted: Thu Mar 31, 2005 11:58 am
by Krator
You'll have to make an item then. Anything will do. (Firebreath wand or something)
Posted: Thu Mar 31, 2005 12:26 pm
by Serineth Swiftpaw
Krator wrote:You'll have to make an item then. Anything will do. (Firebreath wand or something)
Doesn't work. You can't use any items while "polymorphed" *stabs Bioware*.
Posted: Thu Mar 31, 2005 12:51 pm
by Mistcaller
I assumed that adding "Dragon Breath, Fire" to the hide would give the creature the ability to use it.... but it doesn't
This is the same problem we faced with Drangonari and Changelings. You cannot apply spells on a hide anymore... the only thing you can apply is "bonus feats".
So you should either use the default ones, or make new ones, but the latter requires hak changes.
The latest avlis_main1_2.hak includes the "Dragon Breath, Fire" bonus feat, btw.

Posted: Thu Mar 31, 2005 1:21 pm
by Serineth Swiftpaw
Mistcaller wrote:I assumed that adding "Dragon Breath, Fire" to the hide would give the creature the ability to use it.... but it doesn't
This is the same problem we faced with Drangonari and Changelings. You cannot apply spells on a hide anymore... the only thing you can apply is "bonus feats".
So you should either use the default ones, or make new ones, but the latter requires hak changes.
The latest avlis_main1_2.hak includes the "Dragon Breath, Fire" bonus feat, btw.

This is for Rockhome, but possibly other places in future, but I doubt Avlis would implement it.
How would I go about implementing the former of your suggestions? Keep in mind, I have little scripting experience, so I need to know exactly what you mean...
Posted: Thu Mar 31, 2005 1:24 pm
by Sathsarrion
the red dregon you are using looks like the one from the Shapechange spell, that one never had a breath attack. See if you can do it with an ancient red dragon (from the druid/shifter dragon shape) that should already have fire breath
If you really only want adult stats, something on the hide is the only practical way to go
Posted: Thu Mar 31, 2005 1:32 pm
by Serineth Swiftpaw
Sathsarrion wrote:the red dregon you are using looks like the one from the Shapechange spell, that one never had a breath attack. See if you can do it with an ancient red dragon (from the druid/shifter dragon shape) that should already have fire breath
If you really only want adult stats, something on the hide is the only practical way to go
The problem is, this is supposed to be age progression. I can't go replacing the Adult with Ancient. The Ancient is godly compared to the other one. I was trying to keep this script short and sweet, less issues for its implementaion. If I do anything to modify the hide, I need to figure out what consiquence this would have on the COPAP hide itself. I did wish to implement a Young Dragon first, but didn't for this very reason, it would require lots and lots of scripting which makes it harder, and less likely to be implemented...
Posted: Thu Mar 31, 2005 5:13 pm
by dougnoel
Serineth Swiftpaw wrote:Sathsarrion wrote:the red dregon you are using looks like the one from the Shapechange spell, that one never had a breath attack. See if you can do it with an ancient red dragon (from the druid/shifter dragon shape) that should already have fire breath
If you really only want adult stats, something on the hide is the only practical way to go
The problem is, this is supposed to be age progression. I can't go replacing the Adult with Ancient. The Ancient is godly compared to the other one. I was trying to keep this script short and sweet, less issues for its implementaion. If I do anything to modify the hide, I need to figure out what consiquence this would have on the COPAP hide itself. I did wish to implement a Young Dragon first, but didn't for this very reason, it would require lots and lots of scripting which makes it harder, and less likely to be implemented...
Easiest thing to do is add a few lines to polymorph.2da and put it in your hakpak. Then change the stats appropriately. If you ask for permission to do this on the CoPaP boards, you can have two versions. One will have your entries, which will allow the feat to work. The other will have blank entries whcih will not allow it to work (it will just fail - but you need to test this.) If you have anything wrong in polymorph.2da and you use a from that's nto set up correctly, it hangs the server. Not sure what it does with a starred line (**** in every entry.) Give it a shot. This would be your best bet.
Posted: Fri Apr 01, 2005 12:24 am
by Serineth Swiftpaw
hmm, that gets me a Young Dragon, but I'd need to use the Adult Dragon as a base model (as the Ancient's abilities that it's hide gives aren't mentioned in there, it says it uses the same hide as the adult, but that is impossible) so I still have the problem of the Adult not being able to breathe fire... and the Young one wouldn't be able to either.
Any ideas how I can implement the fire breathing? That is the main concern right now...
Posted: Fri Apr 01, 2005 10:39 am
by Khaelindra
Your red dragon to be has mail. Stop switching id's so much, or check them all regularly!

Posted: Fri Apr 01, 2005 10:55 am
by Serineth Swiftpaw
Khaelindra wrote:Your red dragon to be has mail. Stop switching id's so much, or check them all regularly!

FYI, I'm not Krystal, I'm doing this for her
She's one of the AOL type...
*ducks incoming objects*
Posted: Fri Apr 01, 2005 1:00 pm
by Nesara
[offtopic]
Funny how you started being so interested in shifters suddenly, just about the time Krystal showed up too. Interesting.
[/offtopic]
Posted: Fri Apr 01, 2005 1:02 pm
by Talwin Hawkins
OOooOOoo. Could be!! should of thought, i had a small argument first time i met her hehe.
Posted: Fri Apr 01, 2005 1:06 pm
by Serineth Swiftpaw
Nesara wrote:[offtopic]
Funny how you started being so interested in shifters suddenly, just about the time Krystal showed up too. Interesting.
[/offtopic]
I started playing through the SP campaign with one a while back and was contemplating playing on COPAP with one, but couldn't be bothered to start another character. *shrugs*
Posted: Fri Apr 01, 2005 4:34 pm
by dougnoel
Serineth Swiftpaw wrote:hmm, that gets me a Young Dragon, but I'd need to use the Adult Dragon as a base model (as the Ancient's abilities that it's hide gives aren't mentioned in there, it says it uses the same hide as the adult, but that is impossible) so I still have the problem of the Adult not being able to breathe fire... and the Young one wouldn't be able to either.
Any ideas how I can implement the fire breathing? That is the main concern right now...
Fire breathing is implemented in polymorph.2da. The only other way to do it is the way we did races, or use an inventory item with a special ability. You could probably make a plot potion that would do this.
Posted: Fri Apr 01, 2005 5:58 pm
by Micah
*appears keenly interested in this thread, but toddles off and stares angrily at the scripting box, frusterated that he can't deliver*
Posted: Fri Apr 01, 2005 9:27 pm
by Serineth Swiftpaw
dougnoel wrote:Serineth Swiftpaw wrote:hmm, that gets me a Young Dragon, but I'd need to use the Adult Dragon as a base model (as the Ancient's abilities that it's hide gives aren't mentioned in there, it says it uses the same hide as the adult, but that is impossible) so I still have the problem of the Adult not being able to breathe fire... and the Young one wouldn't be able to either.
Any ideas how I can implement the fire breathing? That is the main concern right now...
Fire breathing is implemented in polymorph.2da. The only other way to do it is the way we did races, or use an inventory item with a special ability. You could probably make a plot potion that would do this.
SPELL1 SPELL2 SPELL3!
Damn I'm blind

I saw it the first time I looked at it, then didn't notice it from that point onwards.
I'm using the 2da from the HotU dat, is there a COPAP one?