Odd item creation
Moderator: Event DM
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
Odd item creation
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.
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.
Serineth "Wildmane" Swiftpaw
- Mistcaller
- Team Member; Retired with Honors
- Posts: 5477
- Joined: Sun Feb 09, 2003 3:42 pm
- Location: Athens, Greece (GMT +2)
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
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...Mistcaller wrote:One way I can think of, is to apply a proper hide and then remove it.
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));
}
Serineth "Wildmane" Swiftpaw
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
- Mistcaller
- Team Member; Retired with Honors
- Posts: 5477
- Joined: Sun Feb 09, 2003 3:42 pm
- Location: Athens, Greece (GMT +2)
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
Got it and done. Thanks. I had the right item, but it turns out my script was slightly wrong.Mistcaller wrote:"Creature item" it is called in the creation list IIRC.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.
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.
Serineth "Wildmane" Swiftpaw
The best solution to your problem would be editing polymorph.2da and put it in a hak.
Playing as: Sir Douglas Hope of Gorethar, old school paladin | Krator Blackfist, gold mage | Warren, half nymph barbarian
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
You'll have to make an item then. Anything will do. (Firebreath wand or something)
Playing as: Sir Douglas Hope of Gorethar, old school paladin | Krator Blackfist, gold mage | Warren, half nymph barbarian
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
- Mistcaller
- Team Member; Retired with Honors
- Posts: 5477
- Joined: Sun Feb 09, 2003 3:42 pm
- Location: Athens, Greece (GMT +2)
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".I assumed that adding "Dragon Breath, Fire" to the hide would give the creature the ability to use it.... but it doesn't
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.

- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
This is for Rockhome, but possibly other places in future, but I doubt Avlis would implement it.Mistcaller wrote: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".I assumed that adding "Dragon Breath, Fire" to the hide would give the creature the ability to use it.... but it doesn't
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.
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...
Serineth "Wildmane" Swiftpaw
- Sathsarrion
- Sage
- Posts: 2683
- Joined: Sun Aug 22, 2004 5:56 pm
- Timezone: GMT+11
- Location: Sydney
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
If you really only want adult stats, something on the hide is the only practical way to go
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
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...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
Serineth "Wildmane" Swiftpaw
-
- Team Member; Retired with Honors
- Posts: 6261
- Joined: Fri May 14, 2004 4:59 pm
- Location: VA (GMT -4)
- Contact:
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.Serineth Swiftpaw wrote: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...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
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
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...
Any ideas how I can implement the fire breathing? That is the main concern right now...
Serineth "Wildmane" Swiftpaw
- Khaelindra
- Master Sage
- Posts: 7001
- Joined: Tue May 13, 2003 3:02 pm
- Timezone: GMT+1
- Location: Almere, the Netherlands(GMT+1, GMT+2 in summer)
Your red dragon to be has mail. Stop switching id's so much, or check them all regularly!



Lady Divinia Cecil, Combat Medic; Frederique Moriana, Dragon Avalanche; Amber, redhead Bandit Mascotte; Khaelindra, Mystic Archer
AbominationFascination: "Powergaming without RP is masturbatory and RP without combat and growth is fluffy poseurism."
Gary Gygax wrote:
A Master role player is one who is willing and able to bend their character concept to make the game more enjoyable for all involved.
Everybody Loves Paula (tm)
AbominationFascination: "Powergaming without RP is masturbatory and RP without combat and growth is fluffy poseurism."
Gary Gygax wrote:
A Master role player is one who is willing and able to bend their character concept to make the game more enjoyable for all involved.
Everybody Loves Paula (tm)
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
- Talwin Hawkins
- Team Member; Retired with Honors
- Posts: 3980
- Joined: Fri Aug 27, 2004 7:56 pm
- Timezone: GMT+1
- Location: London - England GMT
OOooOOoo. Could be!! should of thought, i had a small argument first time i met her hehe.
Woodsmaster Talon Blade
Battle Sergeant of Le'Nofaythen'T'Nanshi
Former Hero of of Lonovanen'Hirefya
____________________
Battle Sergeant of Le'Nofaythen'T'Nanshi
Former Hero of of Lonovanen'Hirefya
____________________
http://twitter.com/AJDSullivanDeider wrote: Michelle Pfeiffer - I'd drink her bathwater.
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
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*Nesara wrote:[offtopic]
Funny how you started being so interested in shifters suddenly, just about the time Krystal showed up too. Interesting.
[/offtopic]
Serineth "Wildmane" Swiftpaw
-
- Team Member; Retired with Honors
- Posts: 6261
- Joined: Fri May 14, 2004 4:59 pm
- Location: VA (GMT -4)
- Contact:
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.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...
- Serineth Swiftpaw
- Apprentice Scholar
- Posts: 914
- Joined: Tue Dec 28, 2004 2:13 am
SPELL1 SPELL2 SPELL3!dougnoel wrote: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.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...
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?
Serineth "Wildmane" Swiftpaw