Chloes weapons killiing their owner
#1 -Lucretia-
Posted 10 July 2010 - 05:34 AM
I just downloaded the latest mode for Chloe (v1.5) because i wanted to see the improvements made in it.
I had version 1.2 before i made the change and had no problems with it, but since i installed this one, everytime i load my current game Chloe get instantly crushed by a ray of light and dies.
When i revived her she was fine, except that she claimed for her weapons by giving me angry looks, so i had no choice but giving them back to her. But at the moment where she took them in her hands the ray of light came back down to kill her instantly.
I searched i little bit in the forum but i didn't find anyone having the same issue, could someone help me please ?!
#2
Posted 13 July 2010 - 07:46 AM
The behavior you describe sounds like the script does not identify Chloe as Chloe, so she gets the treatment anyone except her gets. The coding targets each player slot in turn. It shouldn't fire if her DV is correct and detected - the blocks all look like this:
IF !HasItemEquiped("CHLOSW4","RChloe") HasItemEquiped("CHLOSW4",Player6) THEN RESPONSE #100 DisplayStringHead(Player6,@1301) // ~Only a chosen of Lathander can wield this weapon. You have commited sacriledge~ CreateVisualEffectObject("SPSCHGI",Player6) CreateVisualEffectObject("SPHOLYWD",Player6) CreateVisualEffectObject("SPHOLYMT",Player6) CreateVisualEffectObject("SPGENHLA",Player6) CreateVisualEffectObject("SKYBOLT",Player6) CreateVisualEffectObject("SPFIREPI",Player6) CreateVisualEffectObject("SPFIRSDI",Player6) ActionOverride(Player6,ReallyForceSpell(Player6,WIZARD_FIREBALL)) Kill(Player6) END
I just checked the file, and I don't see any mistargetting, assuming Chloe has "RChloe" assigned...
but if it is something that is about fast processors or lag or something, someone could doublecheck the DV in code, by adding a name check
IF !Name("RChloe",Player2) !HasItemEquiped("CHLOSW1","RChloe") HasItemEquiped("CHLOSW1",Player2) THEN RESPONSE #100 DisplayStringHead(Player1,@1300) // ~Only a chosen of Akadia can wield this weapon. You have commited sacriledge~ CreateVisualEffectObject("SPSCHGI",Player2) CreateVisualEffectObject("SPHOLYWD",Player2) CreateVisualEffectObject("SPHOLYMT",Player1) CreateVisualEffectObject("SPGENHLA",Player1) CreateVisualEffectObject("SKYBOLT",Player1) CreateVisualEffectObject("SPFIREPI",Player1) CreateVisualEffectObject("SPFIRSDI",Player1) ActionOverride(Player1,ReallyForceSpell(Player1,WIZARD_FIREBALL)) Kill(Player1) ENDbut I think that is overkill.
So, two things - open up ShadowKeeper or NI or DLTCEP and see if Chloe is named correctly, or if the .cre is named something else. And 2, open up the DPLAYER3.BCSin NI or DLCEPT and see wat is going on with all those blocks that are looking at Chloe to see if she doesn't have her stuff and then looking at the player slots to see if they have it equipped, and see what went wrong
and a typo report, I think - "commited sacriledge" - is that the way it is spelled? Looks odd to me.
#3
Posted 13 July 2010 - 08:09 AM
Both words are misspelled; it should be "committed sacrilege."and a typo report, I think - "commited sacriledge" - is that the way it is spelled? Looks odd to me.
#4
Posted 13 July 2010 - 09:43 AM
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
#5
Posted 13 July 2010 - 03:36 PM
so, recommendation for next version would be all of the blocks looking at Player2 -> Player6 modified to the general format of...
IF !Name("RChloe",Player2) // dv check for slot "Player2", skips the block if Chloe is Player2 !HasItem("CHLOSW1","RChloe") // checks Chloe for the item, skips if she has it HasItemEquiped("CHLOSW1",Player2) // if Player2 put their grubby little larcenous paws on it THEN RESPONSE #100 DisplayStringHead(Player2,@1300) // ~Only a chosen of Akadia can wield this weapon. You have commited sacriledge~ // someone fix the typo in .tra CreateVisualEffectObject("SPSCHGI",Player2) CreateVisualEffectObject("SPHOLYWD",Player2) CreateVisualEffectObject("SPHOLYMT",Player2) CreateVisualEffectObject("SPGENHLA",Player2) CreateVisualEffectObject("SKYBOLT",Player2) CreateVisualEffectObject("SPFIREPI",Player2) CreateVisualEffectObject("SPFIRSDI",Player2) ActionOverride(Player1,ReallyForceSpell(Player2,WIZARD_FIREBALL)) Kill(Player2) // smite Player2 with the Wrath of Modder END... I think. Unless someone sees a more efficient way of doing the same basic thing in a more efficient way (NOT using PartyHasItem() or those that check bags of holding and containers and therefore slow stuff down massively when we fill one up). Player1 blocks might need some modification, too.
Edited by cmorgan, 13 July 2010 - 03:37 PM.
#6
Posted 13 July 2010 - 05:30 PM
!HasItem("itemcode","RChloe")
HasItem("itemcode",PlayerX)
If you really want to fry someone who isn't Chloe for having the sword in their inventory.
I'm not sure if HasItem() checks will return true if the item is in a bag of holding in player X's inventory. Not sure.
"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde
berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum
#7 -Lucretia-
Posted 14 July 2010 - 09:28 PM
It took me half an hour just to understand what you want me to do and to figure out that i have no clue where i could find NI, DLCEPT (or DLTCEP?) and even less how to use them.
Sorry for beeing so newbish
Nevertheless i tried to install it again, following the idea that the weapons in her 3 other warrior slots where responsible for the burning light. So i removed all weapons except her original ones before installing version 1.5.
I'm glad to say that she didn't get burnt to ashes again, but a new problem came out... now she acts like i want to remove her from my party, saying she won't leave without her weapons (while carrying those in her own hands...). It seems i can't do anything to avoid that, there are no dialogs available, she just keep saying i waste her time or that she won't go away without her precious swords.
I know i'm pretty annoying but could you eventually give me a solution that requires less experience, or maybe take me by the hand and guide me a little ?