Jump to content


Photo

Spells via Weidu


  • Please log in to reply
5 replies to this topic

#1 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 22 June 2003 - 01:50 PM

Easy enough to get them into a game via TP2 installation I know BUT I was wondering if I need to amend any 2da files.

Lets look at Accension for an example. All of Balthazar's innate abilities are named Balth01-12/ This defies the naming convention I beleive, as they are innate. However, I was led to beleive that in order to use them in an AI script as he does, they need to be listed under the spell IDS or whatnot.

So, what do I need to amend to allow usage of my own spells/abilities in BGII?

Cheers

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#2 -Sim-

-Sim-
  • Guest

Posted 22 June 2003 - 01:51 PM

Use SpellRES actions.




[EDIT] And wow, there's a tutorial here. That's strangely convenient. :D

#3 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 22 June 2003 - 02:03 PM

I recalled that afterwards actually! Am looking at it now!

In regards to Acension, how did they get away with naming the innates 'BALTH'

Now, quoting from the guide directly
"For example, using the example of SPWI999.SPL, first we would add the following line to SPELL.IDS:
2999 Example_Custom_Spell "

You mention the ApplySpell(), function as a manner of getting this listed to the spell IDS. Can this be done at installation?

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#4 -Sim-

-Sim-
  • Guest

Posted 22 June 2003 - 02:05 PM

Hehe, carry on looking until you get to:

Method 3
The method definitely applies to BG2: SoA and ToB; it may work with other IE games, but has not been tested. It has, however, been confirmed that does not work with BG1.
In BG2:ToB, there are a number of RES actions that can be used in scripts:

31 SpellRES(S:RES*,O:Target*)
95 SpellPointRES(S:RES*,P:Target*)
113 ForceSpellRES(S:RES*,O:Target)
114 ForceSpellPointRES(S:RES*,P:Target)
160 ApplySpellRES(S:RES*,O:Target)
181 ReallyForceSpellRES(S:RES*,O:Target)
191 SpellNoDecRES(S:RES*,O:Target*)
192 SpellPointNoDecRES(S:RES*,P:Target*)
240 ReallyForceSpellDeadRES(S:RES*,O:Target)
318 ForceSpellRangeRES(S:RES*,O:Target)
319 ForceSpellPointRangeRES(S:RES*,P:Target)
337 ReallyForceSpellPointRES(S:RES*,P:Target*)
To be usable in scripts, these must be present in ACTION.IDS. They will only be present if you have ToB installed. However, they also work with just SoA; simply copy and paste the above list into ACTION.IDS, and save it.

In addition to these actions, HaveSpellRES(S:Spell*) is also a valid trigger which can be used in the same way.

With the RES actions, the spell does not have to be added to SPELL.IDS; the filename of the spell can be used instead. Note, however, that with these actions, the order of spell and target is reversed from what it is normally in the spell actions.

Based on this, with the now infamous example spell, SPWI999, we would simply use the following action to do the same as the example in the method above:
ApplySpellRES("SPWI999",Myself)

The RES actions are a far more efficient way of using spells in scripts than to add each one to SPELL.IDS.


Hope that helps.

#5 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 22 June 2003 - 02:07 PM

Hmm, the art of getting to the end of the document has still to be learned LOL

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#6 Alan M.C.

Alan M.C.

    What I can have a title?

  • Member
  • 327 posts

Posted 22 June 2003 - 02:10 PM

SpellRES

I needed to copy my TOB action.ids from override to script compiler folder before using SpellRES. Then you can use it with in any script file. No further action is required, just name your spell Balth01.spl copied bia TP2 in override and use SpellRES("BATLH01",Myself) in your baf, bcs.