PDA

View Full Version : A few questions.


Darth_Robinson
04-26-2006, 06:41 PM
Ok, I just reinstalled the game and have started modding again. A few old problems that I never got around to fixing have once again reared their ugly heads. First, how do I change automatic Force powers. I want to give Jedi characters the Shii-Cho lightsaber form (Form I) at level 5 instead of 10, but I can't figure it out. Second, I modded Hanharr's dialog, but in one line where there was supposed to be no sound, it played the Wookie bellow anyway. It seems that Hanharr makes noise even without a VO file. Third, I made a mod that allows the player to choose cyan and bronze as their Mandalorian-era saber, but to test it would mean playing all the way through Telos and starting all over from Peragus if it doesn't work. Can I warp to the end of Telos, and if so, how? Thanks.

DarthMaul v.1/2
04-26-2006, 09:59 PM
Ok, I just reinstalled the game and have started modding again. A few old problems that I never got around to fixing have once again reared their ugly heads. First, how do I change automatic Force powers. I want to give Jedi characters the Shii-Cho lightsaber form (Form I) at level 5 instead of 10, but I can't figure it out. Second, I modded Hanharr's dialog, but in one line where there was supposed to be no sound, it played the Wookie bellow anyway. It seems that Hanharr makes noise even without a VO file. Third, I made a mod that allows the player to choose cyan and bronze as their Mandalorian-era saber, but to test it would mean playing all the way through Telos and starting all over from Peragus if it doesn't work. Can I warp to the end of Telos, and if so, how? Thanks.
Hey there, Darth Robinson! :dmaul3:

Well, being new to MODding, I can't give you a good answer to your lightsaber form question, other than I think I heard something along these lines before - that the saber forms are hard-coded and can't be cheated or altered - though I am not 100% sure about that one.

As for why Hanhaar keeps 'Wookie-talking' you: Also, no clue - though I bet that one of the knowledgeable MODders around here is going to ask you to list a little more detail about which files you MODded in Hanhaar's dialog, so they can get a clearer idea of what is causing this to happen.

Ah! One that I can be of assistance with: you MUST play until the point where Atton asks you what happened to your saber (when you first go aboard the Ebon Hawk and are introduced to the galaxy map) - you should save your game right before you talk to him (for the purpose of multiple testing); to test if your MOD works, YOU MUST play to this point - there are a couple of MODs that get you thru Peragus sooner - and on board the 'Hawk. Once you have talked to Atton about your saber (i.e. you tell him what color it was/is), your choice of cyan or bronze should display with the other color selections the game already lists - "It was redder than a laigrek's eye" -or- "It was orange like the sunsets on Hassak" - your MODded options should appear here as well I'd imagine, or how would the MOD work? If you do make it this far, all you have to do after telling Atton what color it is, is warp to Atris' Hidden Academy - to do this you type ~warp262TEL - exactly like that and BAM! You are at the Academy and will be led to Atris where the cutscene with her showing you your old saber. :dsaber:

Wish I could be of more help!

- DM.005

Darth_Robinson
04-27-2006, 12:09 AM
Thanks, I have never tried to warp before.

Also, I don't want to change the saber form at all, only change the level at which Jedi acquire it. It sounds like a simple thing to do but I can't for the life of me figure it out.

LiquidZoo
04-27-2006, 12:23 AM
My first guess would be that this is in a 2da file somewhere, though I have no idea which one it might be in.

Tupac Amaru
04-27-2006, 05:41 AM
Second, I modded Hanharr's dialog, but in one line where there was supposed to be no sound, it played the Wookie bellow anyway. It seems that Hanharr makes noise even without a VO file.For aliens, the game uses the Emotion field to select a VO file. By default, it is set to a medium generic comment. If you want no voice change it to 'Silence'. The 'Sound Exists' field should be deselected for aliens.

In case you want to use some of the other emotions, you should check alienvo.2da first to see if there is a VO file for it. Not every emotion will work for all the different alien races.

stoffe
04-27-2006, 05:56 AM
First, how do I change automatic Force powers. I want to give Jedi characters the Shii-Cho lightsaber form (Form I) at level 5 instead of 10, but I can't figure it out.

I don't think you can. From what I have been able to determine, the automatic handout of "force powers" (such as the saber/force forms which are implemented as passive powers and the Jedi Master / Sith Lord special powers) is hardcoded, unlike feats.

However, if you don't want to alter this granting of powers, only give others at certain levels, you can do it through scripting. You can use GetHitDice() to get the level of a character, and GrantSpell() with the spells.2da line number to give a force power/form to the player or an NPC.


Third, I made a mod that allows the player to choose cyan and bronze as their Mandalorian-era saber, but to test it would mean playing all the way through Telos and starting all over from Peragus if it doesn't work. Can I warp to the end of Telos, and if so, how?

Be careful with warping, since it can cause a lot of trouble when things are done out of the intended sequence at times. Generally speaking it's fairly risky to use for debugging since you don't know which of any potential problems were caused by the warping rather than bugs in the module. :)

Anyway, you can use the console to warp. If by the end of Telos you mean the Polar Academy you can use warp 261TEL to jump to just outside it. Or if you mean the scene when you are leaving Telos, with everyone gathered in the main hold, it would be warp 950COR.

However, you may want to save yourself some time and simply make a debug script that prints out the values of variables the game use to determine that which saber to use has been set properly in the dialog with Atton. And then another one that sets those values to the ones you want to test before running the scene. That way you won't have to warp or play through the whole of Citadel Station and Telos. The GlobalNumber variables, and the standard meaning of the values are:

003EBO_PC_Lightsaber
0 = cyan
1 = red
2 = green
3 = blue
4 = yellow
5 = purple
6 = orange
7 = silver
8 = bronze
9 = viridian

003EBO_PC_Hilt
0 = normal
1 = short
2 = doublebladed

Darth_Robinson
04-27-2006, 09:43 AM
Ah ha! Thanks guys. The Hanharr thing seems pretty simple, I guess I just never tried that before. For the saber form, do you think that if I used a 'GrantSpell()' script that I could just set it to give the Form at a lower level? It's in 'spells.2da', so all I would have to do is find the right number. Probably not going to work, but I thought I would ask.

I had actually almost figured out for myself what the variables for the sabers were, except I had 8 for cyan and 10 for bronze. Thanks for posting the variables.

Up, up and away!

stoffe
04-27-2006, 11:05 AM
For the saber form, do you think that if I used a 'GrantSpell()' script that I could just set it to give the Form at a lower level? It's in 'spells.2da', so all I would have to do is find the right number. Probably not going to work, but I thought I would ask.

You can use GrantSpell to give out saber/force-forms to the player (or any other NPC for that matter) whenever you wish. (I use this in modified Combat AI scripts for example to grant saber forms to all lightsaber wielders in the game.)

If you want to give out the form earlier it should work to do it this way without any problems. The problem would be to make it appear later, or not be given out at all.