I'm trying to have a custom spell added when a specific quest plot flag is triggered however I know almost nothing when it comes to scripting and have no idea where to start. I'm also not sure what I should use to reference the spell in the script, as there's the ABI_base.xls ID #, Label, the guitypes.xls ID and Label and a 2da_constant_h ID number.
Can anyone point me to any tutorials to learn some basic scripting or give me an idea what I'm supposed to do?
Adding an ability when plot flag is triggered
Débuté par
ITSSEXYTIME
, déc. 17 2009 12:59
#1
Posté 17 décembre 2009 - 12:59
#2
Posté 17 décembre 2009 - 06:37
Well basically you need to write a script that adds the ability to the player, and decide when to trigger that script. Is it from dialogue, or killing a particular enemy? The dialogue way is easiest since you can just make the script run as an action on a line of dialogue. Otherwise you will need to create a module script that catches events and fires your add ability script.
This isn't a bad place to start:
http://social.biowar...ipting_tutorial
For your add ability script you should use the AddAbility() function as detailed here: http://social.biowar....php/AddAbility
You use the ID of your new ability in ABI_Base.xls
e.g if your ability ID is 123456 and you want to notify the player of their new ability:
object oHero = GetHero();
AddAbility(oHero,123456, TRUE);
This isn't a bad place to start:
http://social.biowar...ipting_tutorial
For your add ability script you should use the AddAbility() function as detailed here: http://social.biowar....php/AddAbility
You use the ID of your new ability in ABI_Base.xls
e.g if your ability ID is 123456 and you want to notify the player of their new ability:
object oHero = GetHero();
AddAbility(oHero,123456, TRUE);
Modifié par Ashmaran, 17 décembre 2009 - 06:40 .
#3
Posté 17 décembre 2009 - 07:59
also, if you look in your DA:O game folder, you'll find a file called ...
dascript.chm,
it list all the functions and that good stuff
dascript.chm,
it list all the functions and that good stuff
Modifié par Hammer Fang, 17 décembre 2009 - 06:38 .





Retour en haut






