SpireofSouls on 27/10/2004 at 05:02
Where can i get more informations on scripting?
Wonder if you can change attack speed on weapon in scripts? (i.e. based on your Speed, Agility and Marksman can increases attack speed on bows). Note some more powerful bows like Deadric req. descent Strength so it may not be possible to do alot of attack per round unless have well balance attributes, kinda complex as hell.
Been trying to balance bows, all i can do is change the speed on bows thru editor but wanna do more realistic thru scripting.
Never use TES before until now, so scripting seem pretty samn as programming in C/C++. All i need it full details on how far programming got to offer on scripting.
37637598 on 28/10/2004 at 03:22
I would suggest making a global weapon script, and like 8 items for each weapon. if you want to make bows with stats that depend on the players stats, then do the followind.
1. make 8 new objects. (bows.) name them, LongBow_001_001, LongBow_001_002, LongBow_001_003, LongBow_001_004, LongBow_001_005, LongBow_001_006, LongBow_001_007, LongBow_001_008.
...
2. set the weapon speed for each bow. make the weapon speed gradually increase (cooresponding with the last two digits). for example...
LongBow_001_001-weapon speed == 1.10
LongBow_001_002-weapon speed == 1.20
LongBow_001_003-weapon speed == 1.30
etc.
make a global script that is constantly detecting the players marksmans skill...
*****************************************************
Begin _MarksmanSkill_001
Short state
Short DoOnce
set Marksman to ( GetPCMarksman )
if ( GetPCMarksman != Marksman )
set DoOnce to 0
endif
if ( State == 0 )
if ( getPCMarksman <= 10 )
set state to 10
if ( State == 0 )
elseif ( getPCMarksman <= 20 )
set state to 20
if ( State == 0 )
elseif ( getPCMarksman <= 30 )
set state to 30
if ( State == 0 )
elseif ( getPCMarksman <= 40 )
set state to 40
if ( State == 0 )
elseif ( getPCMarksman <= 50 )
set state to 50
if ( State == 0 )
elseif ( getPCMarksman <= 60 )
set state to 60
if ( State == 0 )
elseif ( getPCMarksman <= 70 )
set state to 70
if ( State == 0 )
elseif ( getPCMarksman <= 80 )
set state to 80
endif
endif
if ( DoOnce == 0 )
if ( State == 10 )
Player->AddItem "LongBow_001_001" 1
Player->RemoveItem "LongBow_001_002" 1
Player->RemoveItem "LongBow_001_003" 1
Player->RemoveItem "LongBow_001_004" 1
Player->RemoveItem "LongBow_001_005" 1
Player->RemoveItem "LongBow_001_006" 1
Player->RemoveItem "LongBow_001_007" 1
Player->RemoveItem "LongBow_001_008" 1
Set State to 0
Set DoOnce to 1
elseif ( State == 20 )
Player->AddItem "LongBow_001_002" 1
Player->RemoveItem "LongBow_001_001" 1
Player->RemoveItem "LongBow_001_003" 1
Player->RemoveItem "LongBow_001_004" 1
Player->RemoveItem "LongBow_001_005" 1
Player->RemoveItem "LongBow_001_006" 1
Player->RemoveItem "LongBow_001_007" 1
Player->RemoveItem "LongBow_001_008" 1
Set State to 0
Set DoOnce to 1
elseif ( State == 30 )
Player->AddItem "LongBow_001_003" 1
Player->RemoveItem "LongBow_001_001" 1
Player->RemoveItem "LongBow_001_002" 1
Player->RemoveItem "LongBow_001_004" 1
Player->RemoveItem "LongBow_001_005" 1
Player->RemoveItem "LongBow_001_006" 1
Player->RemoveItem "LongBow_001_007" 1
Player->RemoveItem "LongBow_001_008" 1
Set State to 0
Set DoOnce to 1
elseif ( State == 40 )
Player->AddItem "LongBow_001_004" 1
Player->RemoveItem "LongBow_001_002" 1
Player->RemoveItem "LongBow_001_001" 1
Player->RemoveItem "LongBow_001_003" 1
Player->RemoveItem "LongBow_001_005" 1
Player->RemoveItem "LongBow_001_006" 1
Player->RemoveItem "LongBow_001_007" 1
Player->RemoveItem "LongBow_001_008" 1
Set State to 0
Set DoOnce to 1
elseif ( State == 50 )
Player->AddItem "LongBow_001_005" 1
Player->RemoveItem "LongBow_001_002" 1
Player->RemoveItem "LongBow_001_003" 1
Player->RemoveItem "LongBow_001_004" 1
Player->RemoveItem "LongBow_001_001" 1
Player->RemoveItem "LongBow_001_006" 1
Player->RemoveItem "LongBow_001_007" 1
Player->RemoveItem "LongBow_001_008" 1
Set State to 0
Set DoOnce to 1
elseif ( State == 60 )
Player->AddItem "LongBow_001_006" 1
Player->RemoveItem "LongBow_001_002" 1
Player->RemoveItem "LongBow_001_003" 1
Player->RemoveItem "LongBow_001_004" 1
Player->RemoveItem "LongBow_001_005" 1
Player->RemoveItem "LongBow_001_001" 1
Player->RemoveItem "LongBow_001_007" 1
Player->RemoveItem "LongBow_001_008" 1
Set State to 0
Set DoOnce to 1
elseif ( State == 70 )
Player->AddItem "LongBow_001_007" 1
Player->RemoveItem "LongBow_001_002" 1
Player->RemoveItem "LongBow_001_003" 1
Player->RemoveItem "LongBow_001_004" 1
Player->RemoveItem "LongBow_001_005" 1
Player->RemoveItem "LongBow_001_006" 1
Player->RemoveItem "LongBow_001_001" 1
Player->RemoveItem "LongBow_001_008" 1
Set State to 0
Set DoOnce to 1
elseif ( State == 80 )
Player->AddItem "LongBow_001_008" 1
Player->RemoveItem "LongBow_001_002" 1
Player->RemoveItem "LongBow_001_003" 1
Player->RemoveItem "LongBow_001_004" 1
Player->RemoveItem "LongBow_001_005" 1
Player->RemoveItem "LongBow_001_006" 1
Player->RemoveItem "LongBow_001_007" 1
Player->RemoveItem "LongBow_001_001" 1
Set State to 0
Set DoOnce to 1
endif
endif
end
*******************************************
if that doesn't work, I don't know what else will...
hope that helps.
cyrano on 28/10/2004 at 04:33
Quote Posted by SpireofSouls
Where can i get more informations on scripting?
I don’t believe there are any game settings that can be adjusted to alter the speed at which weapons are wielded, and even if there were, game settings cannot be manipulated through scripts. The factors that control the reload time for missile weapons appear to be hard-coded. I believe there is an algorithm that improves reload time as the player’s related skills and attributes rise, but I don’t know what that may be; again it is probably hard-coded. The only thing that one can do is change the speed of a particular weapon, as you have discovered.
For a general reference to the capabilities and syntax for the editor, I would recommend GhanBuriGhan’s (
http://www.euro-morrowind.com/index.php?section=plugin&code=05&id=4656) Morrowind Scripting for Dummies. There are other modder sites across the web that have information, tutorials and active forums that can assist you. A search will turn up a number of possibilities. Do not overlook the (
http://www.elderscrolls.com/forums/index.php?) Official site.
SpireofSouls on 28/10/2004 at 06:51
Well thx alot for trying to help me here, i may check it out later on sometime this week. At the meantime im trying to figure out which programs to use to make modelling except using 3D Max, isnt free tho.
PS: just made a nice little bow, which you have to find it. Also add a treasure map (book) to give you a clue where the bow is. BTW the bow does around 1-35 damage plus gives 3x attack per rds/sec, quite fast little bow and i enjoy it.
37637598 on 28/10/2004 at 07:01
sounds cool!
the only program you can use is 3dsmax v4.0
i have v.6.0, but it won't work. srry. looks like your in my situation... should i pay 1k+ for a program that i'lll noly use for this game??? hmmm... Yeah!
SpireofSouls on 28/10/2004 at 15:24
Well if i can figured out which format 3D Max using for modelling then download that exporter into .nif. Only programs i have is that old Bryce 4, Poser 3 and just download DAZ Studio.
Bryce 4 is pretty good modelling but havent use it for along time.
It is possible having that format with other programs to get around that 3D Max software, was told it is not cheap.
Prehap i could find someone willing to do it for me... the bow i wanted is the one came from Lords of Magic by Serria. Seen some really nice artifacts in there also have screenshots of them.
37637598 on 28/10/2004 at 23:33
that would work... only problem is, the exporter is a plugin for 3dsmax V4.0. if you do find a way, please tell me!>!. i'm looking for a non-$1500 way to make 3d modeling in morrowind.
SpireofSouls on 28/10/2004 at 23:57
Dont think it can be done, only those who make more programs to handle all that translations. And i wouldnt pay that much for 3D modelling, i rather spend $50 on TES IV than 3D Max Studios.
Just wish the toolset come with the modelling, yeah it would be very nice!
AND about that scripting for increases/decreases attack speed while ingame, its not possible. There is no function/variables for that actions. You can make a template or something that giving a meaning but the program itself will not understand it. Pretty much it would go into a loop over and over AND that can causes LAGSPIKES!
Let wait and see how TES IV come out, we all hoping it will be better than Morrowind has to offers.
Thank for sharing/helping me guys. :)