Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Avenger_teambg
« on: October 25, 2005, 03:33:35 AM »

Guess you renamed your spell to follow the SPIN*** convention and added it to spells.ids
But you haven't really shared that info :)
Posted by: ServantofAuril
« on: October 14, 2005, 12:16:56 PM »

Just wanted to drop in an update here to this thread pertaining to my now solved problem.

After extensive testing with regards to what was suggested and information given to me by you fine members of this modding communuity, I finally managed to get my custom spell working properly.  Not to mention gain a better understanding of the IE in the process.  My thanks to you all.

Here is the code I used in the Class script of the NPC:


Code: [Select]
IF

   See(NearestEnemyOf(Myself))

THEN
   RESPONSE #100

  ForceSpell(Myself, INNATE_SUMMON_GIRL)
END


Success!  Everything worked like clockwork, as they say.  I also got the chance while I was frustrated with this little problem to check out other mods of the community (including Tutu which was mentioned earlier) that increased my understanding of modding even more.


So thanks again everyone.  I'll keep you posted on the mod I am doing, though I don't know how to go about sharing it on this site since there doesn't appear to be a files section.  Oh well, still I'll cross that bridge when I get to it.

:) 



Posted by: Avenger_teambg
« on: October 14, 2005, 11:14:30 AM »

My notes also say that pst and bg1 can also accept the *RES actions/triggers.
But i have to admit, i don't remember if i tested it.
Posted by: balduran
« on: October 14, 2005, 04:14:15 AM »



Code: [Select]
IF
   See(NearestEnemyOf(Myself))

THEN
   RESPONSE #100
     
   Spell(Myself, INNATE_SUMMON_GIRL)
END


How come the script fails to recognize me putting this custom line in the SPELL.IDS file?




Here's how your code will work:
Quote
IF
   See(NearestEnemyOf(Myself))
   
THEN
   RESPONSE #100
     ForceSpellRes(Myself,myspell)
END

Where 'myspell' is the name of the spell without the .spl extension. Though you'd need to append ForceSpellRes to the Action.ids if you do not habe ToB.
Posted by: cirerrek
« on: October 13, 2005, 07:50:43 PM »

I haven't personally tried it, but in my scripting notes I have a comment that says that the the SpellRES actions and triggers are potentially portable to all versions of the infinity engine.

You'd have to add them to the triggers and action.ids files then compile the scripts using the newly added triggers. 

Worth a shot at least.   Let us know if it works :)
Posted by: ServantofAuril
« on: October 13, 2005, 03:20:16 PM »

Great, thanks to you both.  You are all my heroes as of now!  :D
Posted by: Ghreyfain
« on: October 13, 2005, 02:21:08 PM »

Oh, hey, you're right.  I can't believe I'm not pimping Tutu.

Mod for Tutu!  It's great!

http://www.pocketplane.net/tutu
Posted by: jcompton
« on: October 13, 2005, 02:09:55 PM »

Hmm let me get this straight in my head first off before I proceed:  So Ghreyfain is saying to use "SpellRES" instead of just "Spell" but since I am using BG1 I cannot do this?  It sounds a whole lot better than referencing the ID imo.

That's the short version of why some people find developing new content for Tutu more appealing than developing new content for BG1. The engine got a lot more accessible in that ~3 year span.
Posted by: Ghreyfain
« on: October 13, 2005, 01:58:08 PM »

No, 3999 would become SPIN999.  3 is for INnate, 2 is for WIzard, 1 is for PRiests, and 4 is for CLass abilities.  That's mean you have SPIN(nate)*.spl, SPWI(zard)*.spl, etc., with * being the 2nd-4th numbers in the IDS field.
Posted by: ServantofAuril
« on: October 13, 2005, 01:34:34 PM »

Hmm let me get this straight in my head first off before I proceed:  So Ghreyfain is saying to use "SpellRES" instead of just "Spell" but since I am using BG1 I cannot do this?  It sounds a whole lot better than referencing the ID imo.

Also CamDawg is saying to use the naming convention already in place, so would I simply change my spell name filename which is right now GRLSUM to maybe SPINXXX?  I still can't understand how this naming scheme thing works.  Anyway, what my point is, do I change the filename of the spell, or do I leave the filename the same and just change the SPELL ID in the .IDS file?

Such as:  3999 INNATE_SUMMON_GIRL becomes SPIN01 or something?

Posted by: Ghreyfain
« on: October 13, 2005, 01:13:55 PM »

Oh, yes.  Maybe I should pay attention instead of skimming.
Posted by: CamDawg
« on: October 13, 2005, 01:11:27 PM »

Except that this is for BG, which doesn't have the RES actions available. :) You'll need to use the naming conventions, unfortunately.
Posted by: Ghreyfain
« on: October 13, 2005, 01:05:54 PM »

You can't call GRLSUM or anything other than SPIN/WI/PR/CL* from the spell.ids file.  What you need is the SpellRES() set of actions and triggers.  They even work in SoA if you add them to action.ids manually.

Basically, where before you'd have Spell(Player1,WIZARD_MAGIC_MISSILE) you'd have SpellRES("spwi113",Player1). Magic Missile might be something other than spwi113.spl, but you get the idea.  It's the filename you use, not an IDS entry.

So for your spell, you'd have SpellRES("grlsum",Player1).
Posted by: ServantofAuril
« on: October 13, 2005, 12:49:06 PM »

spell.ids has a specific naming convention, which I can not recall offhand. The first number determines the type (SPCL, SPPR, SPWI, SPIN) and the rest is the actual spell number. So basically the engine sees you invoking INNATE_SUMMON_GIRL, which it looks up in spell.ids as 3999. Then it goes looking for spin999 (or spwi999 or sppr999 or spcl999 or whatever the 3 represents) and can't find it.

edit: Found it; 3xxx are SPIN spells. So it's looking for SPIN999.spl.


Ok, I think I am beginning to understand a little bit how this works.  However, if I did a custom spell called "GRLSUM" how would I go about putting that in the SPELL.IDS?  Since this is a custom spell I am trying to use, or would I just follow the naming convention of SPELL.IDS and change 3999 to something else similar to the original spell I edited which was Monster Summoning?

BTW - heh thanks for catching that one for me Ghreyfain.  I meant "tp2" as opposed to "tbp".  Caffeine can sometimes make one delirious at times.  :P



Posted by: Ghreyfain
« on: October 13, 2005, 12:41:34 PM »

What's a .TBP file, btw?