Aller au contenu

Photo

Adding an ability when plot flag is triggered


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
ITSSEXYTIME

ITSSEXYTIME
  • Members
  • 1 201 messages
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? 

#2
Ashmaran

Ashmaran
  • Members
  • 52 messages
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);

Modifié par Ashmaran, 17 décembre 2009 - 06:40 .


#3
Hammer Fang

Hammer Fang
  • Members
  • 78 messages
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

Modifié par Hammer Fang, 17 décembre 2009 - 06:38 .