Server Totals
Wilderness - (2)
Elysia - (1)
Ferrell - (0)
Le'Or - (0)
M'Chek - (0)
Deglos - (0)
Visimontium - (0)
Underdark - (0)
Mikona - (0)
Total players: 3
Gallery
  • Elysia updates
    Album name: DM Events
    Uploaded by: Ronan
    Uploaded: Fri Jun 05, 2015 3:13 am

Links Menu

Odd item creation

Moderators: Nighthawk4, Dungeon Masters

Odd item creation

PostAuthor: Serineth Swiftpaw » Mon Mar 28, 2005 9:07 pm

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.
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: Mistcaller » Mon Mar 28, 2005 10:01 pm

One way I can think of, is to apply a proper hide and then remove it.
User avatar
Mistcaller
Team Member; Retired with Honors
 
Posts: 5481
Joined: Sun Feb 09, 2003 3:42 pm
Location: Athens, Greece (GMT +2)

PostAuthor: Serineth Swiftpaw » Mon Mar 28, 2005 10:06 pm

Could you give me an example on how to do this as I have no idea where to start...
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: Serineth Swiftpaw » Thu Mar 31, 2005 10:53 am

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));
}
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: Serineth Swiftpaw » Thu Mar 31, 2005 11:13 am

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.
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: Mistcaller » Thu Mar 31, 2005 11:17 am

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.
User avatar
Mistcaller
Team Member; Retired with Honors
 
Posts: 5481
Joined: Sun Feb 09, 2003 3:42 pm
Location: Athens, Greece (GMT +2)

PostAuthor: Serineth Swiftpaw » Thu Mar 31, 2005 11:33 am

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.
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: Krator » Thu Mar 31, 2005 11:39 am

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
User avatar
Krator
Elder Sage
 
Posts: 4947
Joined: Thu Jun 10, 2004 6:44 pm
Location: Amsterdam
Timezone: GMT

PostAuthor: Serineth Swiftpaw » Thu Mar 31, 2005 11:52 am

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?
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: Krator » Thu Mar 31, 2005 11:58 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
User avatar
Krator
Elder Sage
 
Posts: 4947
Joined: Thu Jun 10, 2004 6:44 pm
Location: Amsterdam
Timezone: GMT

PostAuthor: Serineth Swiftpaw » Thu Mar 31, 2005 12:26 pm

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*.
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: Mistcaller » Thu Mar 31, 2005 12:51 pm

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. :wink:
User avatar
Mistcaller
Team Member; Retired with Honors
 
Posts: 5481
Joined: Sun Feb 09, 2003 3:42 pm
Location: Athens, Greece (GMT +2)

PostAuthor: Serineth Swiftpaw » Thu Mar 31, 2005 1:21 pm

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. :wink:


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...
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: Sathsarrion » Thu Mar 31, 2005 1:24 pm

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
User avatar
Sathsarrion
Sage
 
Posts: 2632
Images: 1
Joined: Sun Aug 22, 2004 5:56 pm
Location: Sydney
Timezone: GMT+10

PostAuthor: Serineth Swiftpaw » Thu Mar 31, 2005 1:32 pm

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...
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: dougnoel » Thu Mar 31, 2005 5:13 pm

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.

dougnoel
Team Member; Retired with Honors
 
Posts: 6265
Joined: Fri May 14, 2004 4:59 pm
Location: VA (GMT -4)

PostAuthor: Serineth Swiftpaw » Fri Apr 01, 2005 12:24 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...
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: Khaelindra » Fri Apr 01, 2005 10:39 am

Your red dragon to be has mail. Stop switching id's so much, or check them all regularly! :P :roll:
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)
User avatar
Khaelindra
Contributor
 
Posts: 7007
Joined: Tue May 13, 2003 3:02 pm
Location: Almere, the Netherlands(GMT+1, GMT+2 in summer)
Timezone: GMT+1

PostAuthor: Serineth Swiftpaw » Fri Apr 01, 2005 10:55 am

Khaelindra wrote:Your red dragon to be has mail. Stop switching id's so much, or check them all regularly! :P :roll:


FYI, I'm not Krystal, I'm doing this for her :roll:
She's one of the AOL type...
*ducks incoming objects*
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: Nesara » Fri Apr 01, 2005 1:00 pm

[offtopic]

Funny how you started being so interested in shifters suddenly, just about the time Krystal showed up too. Interesting. :o

[/offtopic]
User avatar
Nesara
Squire of Babble
 
Posts: 35
Joined: Fri Mar 25, 2005 1:45 am
Location: GMT +2

PostAuthor: Talwin Hawkins » Fri Apr 01, 2005 1:02 pm

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
____________________
Deider wrote:Michelle Pfeiffer - I'd drink her bathwater.

http://twitter.com/AJDSullivan
User avatar
Talwin Hawkins
Team Member; Retired with Honors
 
Posts: 3981
Joined: Fri Aug 27, 2004 7:56 pm
Location: London - England GMT
Timezone: GMT+1

PostAuthor: Serineth Swiftpaw » Fri Apr 01, 2005 1:06 pm

Nesara wrote:[offtopic]

Funny how you started being so interested in shifters suddenly, just about the time Krystal showed up too. Interesting. :o

[/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*
Serineth "Wildmane" Swiftpaw
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

PostAuthor: dougnoel » Fri Apr 01, 2005 4:34 pm

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.

dougnoel
Team Member; Retired with Honors
 
Posts: 6265
Joined: Fri May 14, 2004 4:59 pm
Location: VA (GMT -4)

PostAuthor: Micah » Fri Apr 01, 2005 5:58 pm

*appears keenly interested in this thread, but toddles off and stares angrily at the scripting box, frusterated that he can't deliver*
voidHamlet sneaks up to Micah's skirt, minding the penguin

One does not simply walk into Texas.
User avatar
Micah
Lead Producer
 
Posts: 6905
Joined: Sun Sep 05, 2004 7:15 pm
Location: Houston, TX
Timezone: GMT-5
DM Avatar: Pelar

PostAuthor: Serineth Swiftpaw » Fri Apr 01, 2005 9:27 pm

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 :P
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
User avatar
Serineth Swiftpaw
Apprentice Scholar
 
Posts: 914
Joined: Tue Dec 28, 2004 2:13 am

Next

Return to NWN Scripting

Who is online

Registered users: Bing [Bot], Blackravenfeather, Google [Bot]