Changing Kits
#1
Posted 26 July 2004 - 03:36 PM
Thanks.
-Me
"It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived."
- General George S. Patton
#2
Posted 26 July 2004 - 07:05 PM
(Thank You IESDP)274 AddKit(I:Kit*KIT)
This removes the creatures current kit, and then add the specified kit. Abilities from any previous kit are removed.
AddKit(0) will remove a creatures current kit.
Class restrictions apply for kits. When attempting adding an invalid kit, the existing kit (if any) will be replied.
This could be done as such:
IF
InParty(Myself)
Global("KitGlobal","LOCALS",0)
Global("EventGlobal","GLOBAL",1)
THEN
RESPONSE #100
AddKit(KitName)
ReallyForceSpellRES("kitname",Myself)
SetGlobal("KitGlobal","LOCALS",1)
END
(I shamelessly took that from the NPCKIT Mod, and I sadly have no idea what ReallyForceSpellRES does, as the IESDP just says (Ref,Target)).
(To Add, you just EXTEND_BOTTOM the Character in questions personal script)
Edited by DevilishPope, 26 July 2004 - 07:06 PM.
#3
Posted 27 July 2004 - 07:15 AM
I just don't understand is why the spell needs to be forced.
The only problem with running the script from the chararcter is that scripts can be changed, and protaginists don't have overrides, methinks.
-Me
"It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived."
- General George S. Patton
#4
Posted 27 July 2004 - 11:26 AM
289 AddSuperKit(I:Kit*KIT)
This will set the creatures kit to the kit specified. Abilities from any previous kits are kept.
Class restrictions apply for kits. When attempting adding an invalid kit, the existing kit (if any) will be replied.
ack....erm....lets hope someone comes up with an answer to how to attach scripts to work on the protagonist? I'll look into it, the one that comes to mind is the script that forces the player to slayer change. :S
#5
Posted 27 July 2004 - 05:30 PM
-Me
"It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived."
- General George S. Patton
#6
Posted 28 July 2004 - 03:55 AM
You can, from memory, attach a script to the protagonist by EXTENDing PLAYER1.BCS . Don't quote me on that, though.
To do it in dialogue, you use a line of this format:
IF ~stuffhashapped()~ THEN DO ~makemorestuffhappen()~ <TRANSITION>
You will mostly just use AddKit() and AddSuperKit(), I *think*, although if this is the case, I cannot think what NPCKit would use the spell casting for...
#7
Posted 28 July 2004 - 04:20 AM
dplayer.bcs always runs on the protagonist, however, AI must be on for it to work. I suggest extending baldur.bcs if you want to affect the PC.
#8
Posted 28 July 2004 - 06:51 AM
-Me
"It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived."
- General George S. Patton
#9
Posted 28 July 2004 - 11:19 AM
#10
Posted 01 August 2004 - 09:07 AM
...but assigned to nobody... so you must always specify the object of action/trigger etc.Baldur.bcs? Is that a global, always active script?