Aller au contenu

Photo

plots


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

#1
bowlie1

bowlie1
  • Members
  • 51 messages
i cant figure out how to set a plot flag outside conversation. i need a plot flag after he has killed some monsters. how do i do this? thanks

Modifié par bowlie1, 18 avril 2010 - 07:08 .


#2
ponozsticka

ponozsticka
  • Members
  • 453 messages
I believe you can find the answer here.



http://social.biowar.../Plot#Scripting



not sure if its all you need but you need to create a script for that. If you need more info, you can always search through demo module in your toolset, the very first quest you are given is to kill some monsters, so there should be the script youre searching for.

#3
Sonmeister

Sonmeister
  • Members
  • 167 messages
This script is the most popular example out there. Hope it helps.





#include "events_h"

#include "plt_kill_monster" //put your plot name here

#include "wrappers_h"



void main ()

{

event ev = GetCurrentEvent();

int nEventType = GetEventType(ev);



switch(nEventType)

{

case EVENT_TYPE_TEAM_DESTROYED: // Make sure your monster is on team 1

{

if(GetEventInteger(ev,0) == 1) // Again this is why you want your monster on team 1

{

WR_SetPlotFlag(PLT_KILL_MONSTER, MONSTER_SLAIN, TRUE); // put plot name and then monster flag name and set to true

}

break;

}

}

HandleEvent (ev, RESOURCE_SCRIPT_AREA_CORE);

}

#4
bowlie1

bowlie1
  • Members
  • 51 messages
ok great, thanks. ive just done m first quest lol

Modifié par bowlie1, 19 avril 2010 - 04:44 .


#5
bowlie1

bowlie1
  • Members
  • 51 messages
how do you give money after people have done quests? do i do it during the conversation for the final flag? if so how? thanks/ and sorry for the stupid questions this is my first mod ever lol

#6
Proleric

Proleric
  • Members
  • 2 361 messages
The easiest way to give money, items or XP is to modify the rewards 2DA table. Then re-open the toolset, open the plot, and associate your new reward with the final flag. WR_SetPlotFlag will do the business.

#7
bowlie1

bowlie1
  • Members
  • 51 messages
ok thanks. that sounds complicated. i think i will wait a bit untill i have done all the quests first

#8
Proleric

Proleric
  • Members
  • 2 361 messages
It's fairly easy - you add a row to the speadsheet rewards.xls. The wiki entry for 2DA gives general guidance on how to change these tables. Much easier than scripting, and worth learning, because there are many things you can customise in DAO just by tweaking the tables.

#9
bowlie1

bowlie1
  • Members
  • 51 messages
ok thanks. where are these 2da files stored because i see alot of references to them.

#10
ponozsticka

ponozsticka
  • Members
  • 453 messages
.../Dragon Age/tools/Sources/2DA

many many files, your pick :)

#11
Proleric

Proleric
  • Members
  • 2 361 messages
Yes, the sheer number of tables can be bewildering. As a tip, if you can't find the relevant table, search the entire folder contents for keywords (e.g. "reward"). If (like me) you have a duff operating system (Vista) that doesn't support text search within files, try Free Commander.

Modifié par Proleric1, 22 avril 2010 - 06:20 .