Jump to content

Need help with script that causes a spell effect to be placed on a guy


Recommended Posts

Hi, it would be fair to say I am a noob with scripting. That being said I have had a hard time finding Oblivion scripting guides for people just starting off that are able to be understood by people who are just starting off. Could someone help me find a guide to scripting that would be understandable by someone who is on day one of there learning, yet could be comprehensive enough help for intermediate to possibly advanced scripting.

 

I am basically wanting to script a Cuirass that when the player is struck if a filled soul gem is in the players inventory to feed the cuirass the attacker gets a small shock damage.

Edited by CountryRoberts
Link to comment
Share on other sites

I am also trying to make a pair of stealth boots . I made some custom boots, spell, and enchantment with script effect linked to the script.

I figured since enchantment on armor is constant effect it would start my script Why will it not work.

 

i had my script like this

 

scn BootsMagicScript
Begin ScriptEffectFinish
If Player.IsSneaking == 1
Cast BootsMagic Player
endif
End
So the boots are because i thought it would be easier than the vest, and my goal is to have a pair of boots that cast invisibility on my player when i enter sneak mode with a time limit so that when i am no longer sneaking i am visible.
Edited by CountryRoberts
Link to comment
Share on other sites

Hi, it would be fair to say I am a noob with scripting. That being said I have had a hard time finding Oblivion scripting guides for people just starting off that are able to be understood by people who are just starting off. Could someone help me find a guide to scripting that would be understandable by someone who is on day one of there learning, yet could be comprehensive enough help for intermediate to possibly advanced scripting.

I think these two come closest to that: https://cs.elderscrolls.com/index.php?title=Scripting_Tutorial:_My_First_Script and https://cs.elderscrolls.com/index.php?title=Scripting_Tutorial:_My_Second_Script (You can also look up scripting functions and what they do on that wiki.)

 

For the thing with the boots, it's probably easier to change and attach that script for the boots item directly, instead of having it be a magic effect (scripted magic effects work quite differently to "normal" magic effects).

Edited by mixxa77
Link to comment
Share on other sites

Thanks so much mixxa77 you really got my noodle going in a different direction. I also used OBSE Command Documentation (silverlock.org) as well it took me all day to do this. Y'all Let me know what you think. :dance: Remember mixxa77 that you are responsible for creating a future Modding madman.

 

Ovad's Awesome Stealth Boots at Oblivion Nexus - mods and community

Link to comment
Share on other sites

I think the idea is very cool really, Chamelon while sneaking and normal when not :D Simple and brilliant :D

 

Otherwise, starting with scripting? It do have a lot in common with other script and program languages so if you learned one, it is so easy to learn another so starting with scripting without that base must be like being smashed in the face with a hammer... I did start with Line Basic 1987 on a 8-bit and continued with other later on and that have helped some for sure. Keep it up... ;)

Link to comment
Share on other sites

I think the idea is very cool really, Chamelon while sneaking and normal when not :D Simple and brilliant :D

 

Otherwise, starting with scripting? It do have a lot in common with other script and program languages so if you learned one, it is so easy to learn another so starting with scripting without that base must be like being smashed in the face with a hammer... I did start with Line Basic 1987 on a 8-bit and continued with other later on and that have helped some for sure. Keep it up... :wink:

Hey Thanks, I have had some other programming before but not games, Ladder Logic PLC's mostly Allen Bradley but it has been a while small amount of C# and Visual Basic. Th problem I am having with the scripting is finding decent understandable guides for better explaining functions variable etc. with just a little more info and less vagueness. all it took for me to figure out quite a lot was about this project was when mixxa77 stated "For the thing with the boots, it's probably easier to change and attach that script for the boots item directly, instead of having it be a magic effect (scripted magic effects work quite differently to "normal" magic effects)." I found nothing that would explain why having an enchant script effect would not work, the guides I been finding while doing research seem to give the basic vague instruction of type the function this way without explaining the whys. I still think that 50% of this is due to my being new to this level of modding, and 99% that I know enough to be dangerous but not enough to know what syntax o use when searching for research material. I am grateful for your taking the time to post a reply and look forward to more grading on future mods. :smile:

Link to comment
Share on other sites

Cool. Then it will most likely not be a big problem for you to make more fun scripts later on. :)

 

The best source of inforamtion is really to look at how others solved their scripts beside OBSE doc and CS Wiki and it is not only for scripting, but everything like quests, dialogues and so on. First of all, there's so many functions now with OBSE but but in the other hand, all languages tofay have extremely many functions, not as basic as it was when I started for sure as it is a bloody jungle and I also did as you, learned Ansi C (compiled with C++) and Visual Basic and also some Perl.

 

I did took a 10 year break from modding and had to start all over again when I picked up Morrowind before I reinstalling Oblivion again. As soon as we take a break, we will slowly forget everything. Not only scripting but filestructures and other stuff but my scripts are better optimized now then ever before and we have to thank the OBSE team for it as they sure made scripting 100 times easier and funnier and just such a simple basic thing like creating separate functions makes the code even more optimized. Something I did miss 12 years ago was arrays and I use them a lot now and the code can suddenly get extremely optimized. :) So I am slowly peeking at the OBSE documentation myself and implement new stuff time to time when I am in need of it. CS Wiki is so damn great as well as source but sometimes it is not clear how to use a specific function but then we can always do a trial and error or peek at how other modders used it... For that reason, I include my scripts as textfiles, in the tes4 format for Notepad++ and this one is only one of 5-6 different ones. :) CS Enhanced do have highlighting as well but it will not work if you use ENB I read so I have not installed it.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...