Jump to content


Photo

linking kit IDS name with weapprof column


18 replies to this topic

#16 subtledoctor

subtledoctor
  • Modders
  • 2448 posts
  • Gender:Male

Posted 26 December 2017 - 07:41 PM

Alright, I hate to do this, but can anyone spot the problem here?  I've built the .BAF script, compiled it, and I have an innate ability that uses opcode 177 (EA/anyone) to summon a creature, and the creature's override script is this:

Spoiler

 

That should kick me into the dialogue with local variables in place to represent my proficiency limits... but the dialogue never starts.  I summon the creature, and after the duration of the ability, the creature is unsummoned.  Tested with ajanti4.cre, after using AddKit to change him to a Cavalier, and with Khalid4.cre after using AddKit to change him to a Berserker.

 

Why isn't my invisible creature talking to me??

 

(Incidentally, the .CRE file itself is cloned from another one which is used to perform the AddKit action, and that works perfectly.  All I did was change the clone's override script the the above script.  So I don't think it's a problem with the .CRE file, or with the innate ability which as I said does successfully summon the .CRE.)


Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#17 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6575 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 27 December 2017 - 02:56 AM

ActionOverride(LastSummonerOf(Myself),StartDialogOverride("d5profx",Myself))

the last Myself ... should likely be LastSummonerOfMyself.

Or you might try 168, interact(PC).


Edited by Jarno Mikkola, 27 December 2017 - 03:07 AM.

Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#18 subtledoctor

subtledoctor
  • Modders
  • 2448 posts
  • Gender:Male

Posted 27 December 2017 - 03:59 AM

No, the first part of the line - ActionOverride(LastSummonerOf) - means we're now talking about the summoner. Then what should happen with that person? StartDialogueOverride. I want the LastSummonerOf to start the dialogue, not the invisicre, because the dialogue uses (myself) to refer to the NPC, not the invisicre.

That works perfectly every other time I've used it... so I don't know why it would fail here.  It seems like one of three things is happening:

 

1) The script is not running at all (but why would that be?)

 

2) The script is running, but looping in an early block and never reaching a point where something happens

 

3) The script is running, but nothing returns true so it just finishes with no effect.  But, it seems like

IF
    NumTimesTalkedTo(0)
    Global("D5_PROFX","GLOBAL",0)
    Kit(LastSummonerOf(Myself),CAVALIER)
THEN
    RESPONSE #100
    ...

...should be returning true when the ability is used by a Cavalier...


Edited by subtledoctor, 27 December 2017 - 12:18 PM.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#19 subtledoctor

subtledoctor
  • Modders
  • 2448 posts
  • Gender:Male

Posted 27 December 2017 - 08:42 PM

Solved!  The script is actually fine*, the problem was the conditional at the beginning of the dialogue had a typo in it and was returning false.

 

Thanks folks, move along, nothing to see here...

 

* (Well actually those local variables are wrong, they need to be inside an ActionOverride to be set on the summoner.)

 

This is working beautifully now.  Almost ready for release.  Just need to write up some code to add a parent resource to all of the 233 effects on joinable NPCs' .CRE files.


Edited by subtledoctor, 27 December 2017 - 08:43 PM.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users