The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> Protagonist Spell Only
Rabain
post Mar 8 2007, 04:56 PM
Post #1


GOD


Retired team member
Posts: 1728
Joined: 14-July 04
From: Ireland




I want to create a spell that only the protagonist can cast. If anyone else tries to cast it they will get a message.

So far I have tried casting a spell that sets a global. In a script if have the following:

CODE
IF
    Global("PConly","GLOBAL",1)
    Class(Player1,MAGE_ALL)
    IsActive(Player1)
THEN
    RESPONSE #100
        ActionOverride(Player1,ForceSpellRES("MyPConlyspell",Myself))         ActionOverride(Player1,DisplayStringHead(Myself,8538))
        SetGlobal("PConly","GLOBAL",2)
END


Ignore the DisplayStringHead..thats just for testing.

What is happening is that even if someone else in the party casts the first spell my Player1 starts casting "MyPConlySpell"

I can't seem to find a valid script command that specifies PC only.

I will also need a command that will work if someone not the PC casts the spell. I can use this in a second script block.
Go to the top of the page
 
Quote Post
 
Start new topic
Replies
Rabain
post Mar 12 2007, 11:42 AM
Post #2


GOD


Retired team member
Posts: 1728
Joined: 14-July 04
From: Ireland




Yeah its weird, I've tried other spells Stoneskin and MirrorImage as the trigger and it works fine.

If I try to use Find Familiar it doesn't work.

Edit: If i try to modify any spell and add a new entry in spell.ids it doesn't work! For example I renamed Stoneskin to SPWI450.spl (which doesn't exist) and added a new entry to spell.ids "2450 WTP_FAMILIAR", changed the baldur.bcs to use WTP_FAMILIAR instead of WIZARD_STONESKIN...result = nothing happens!
Go to the top of the page
 
Quote Post

Posts in this topic


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 2nd November 2025 - 07:02 PM