Jump to content

Daxtreme

Modders
  • Posts

    238
  • Joined

  • Last visited

Posts posted by Daxtreme

  1. Yeah I corrected that LOCALS vs GLOBAL part.

    IF
    	HasItem("MINHP1",Myself)  // No such index
    	Global("TSFired","GLOBAL",1)
    THEN
    	RESPONSE #100
    		DestroyItem("MINHP1")  // No such index

     

  2. Hey guys,

    I have this small problem with a creature. I gave her MINHP1.itm for quest purposes but when a certain state has been reached, I want to remove MINHP1

    It's a VERY simple script and yet... it doesn't work.

    So first the creature is created in dimension door during a cutscene

    CreateCreatureDoor("mage18z",[738.419],S)

    Then I try to remove MINHP1 with this, which is in the OVERRIDE script for mage18z completely at the top:

    IF
    	OnCreation()
    	Global("TSFired","LOCALS",1)
    THEN
    	RESPONSE #100
    		SetGlobal("test","GLOBAL",12)
    		DestroyItem("MINHP1")  // No such index
    END

    MINHP1 never gets removed.

    Now I've tried switching TSFired from local to global to check it in-game with console, and it says it's equal to 1 before mage18z gets created, so the condition should be ok.

    Moreover, the test global I'm setting.... it's never set to 12, ever. Which means it never gets to the RESPONSE #100 in the first place!

    Anyone knows what's going on? Maybe OnCreation() never runs because the creature was created in a cutscene?

    Thanks!

  3. Hey guys,

    In my mod I'm making a new enemy spellcaster, and I was wondering... I'd like for it to have vanilla scripts if the player is playing vanilla, and SCS scripts if the player is playing with SCS. But the problem is, SCS is generally installed last.

    It'd be lame if someone were to install SCS but then steamroll over my spellcaster because it uses the terrible vanilla scripts.

    Anything I can do? Does SCS overwrite general spellcaster scripts? If yes, I could assign one of those to my spellcaster and SCS would overwrite it if installed?

    Thanks!

  4. I have to say, David, you're amazing, and thank you for working on such a huge, complicated, and awesome mod such as this one.

    Truly a blessing to this community, thanks!

    Awesome mod. SCS is a must, and I approve of all the changes you made. I remember being visited by 5 cowled wizards with SCS 30 and instantly getting swarmed with fiends everywhere, that definitely felt dumb. Now it's fixed, one of MANY awesome fixes. This new SCS seems like ... ideal! Good job 

  5. I disagree that Energy Blades is bad.

     

    And you're not "wasting" a spell slot, all HLAs are free to cast once per day once you learn them. Cast them or not, but you always have them once per day. So in a sense, your single cast of Energy Blades is free and isn't comparable to any other casting because it can't be switched for something else. It just exists.

     

    And I love Energy Blades, it's highly useful against spellcasters as unless they're protected by absolute immunity or PfMW, most of the time either the damage or the lightning damage make it through and interrupt their spells. It's also very good to wipe out those pesky summoned fiends like Cornuggons or weaker summons without much effort. Also gives you uber movespeed which is definitely useful.

     

    I'm pretty sure Spellstrike has a radius already now. In the "Arcane spells" thread pinned to this forum it says there is a 10' radius, don't know if it's still there or been removed.

  6. OR: maaaaybe give the True Sight caster opcode 100 protection against illusionary creatures - he disbelieves them, so they can't hurt him! This would be nice against the IWD Shadow Monsters spells, and would really give you a leg up against PI clones (which makes sense if you have True Sight).

     

     

    That's very interesting! Is that something that's possible?

  7. if I do that though, isn't there a risk that the Time Stop will fire twice?

     

    What about using a timer?

     

    Here's what I came up with:

    IF
    	GlobalTimerExpired("zalladlg","LOCALS")
    	!Global("zallaout1", "LOCALS",1)
    THEN
    	RESPONSE #100
    	SetGlobal("zallaout1", "LOCALS",1)
    		StartDialogueNoSet(LastSeenBy(Myself))
    END
    
    
    IF
    	HPLT(Myself,15)
    	!Global("TSFired","LOCALS",1)
    THEN
    	RESPONSE #100
    		SetGlobal("TSFired","LOCALS",1)
    		ReallyForceSpell(Myself,WIZARD_TIME_STOP)  // SPWI909.SPL (Time Stop)
    		SetGlobalTimer("zalladlg","LOCALS",2)
    		Wait(2)
    END
    

    The dialog seems to work all the time, however the Wait period is a bit unpredictable. Sometimes she waits, sometimes she doesn't :p

×
×
  • Create New...