Jump to content

Photo

I am soo lost


  • Please log in to reply
5 replies to this topic

#1
Mister Chupa

Mister Chupa
  • Members
  • 2 posts
 I apparently have no idead how to use script to createa quest... i made my plot with conditions and actions easy enough and put them to the conversation but writting the script to run the plot flagsis almost alien to me Ive tried the tutorial on the wiki and the final result wont save because of a "variable undefined" i think. So any help so i can set up a quest period would help me a ton thanks

#2
MerAnne

MerAnne
  • Members
  • 1,157 posts
What are you trying to do? I'm guessing that you are setting the flag in the conversation, but what are you trying do after you set the flag?

Variable undefined means that you haven't defined a variable as an int, float, object, etc

#3
dr.drummie

dr.drummie
  • Members
  • 51 posts
take demo module and play with it.. just open it and see how it's made..
also, you have Sunjammer's demo modules like deep roads courier and rats in the cellar, it is very good stuff to learn some things about scripting, plots, la-la-la..

#4
Sunjammer

Sunjammer
  • Members
  • 925 posts
We all start off lost: my first attempt at using plot flags was a bit of a disaster (and we had to demo it in front of a bunch of guys at BioWare). I jotted down some notes which you might find useful.

Also if you post your script we might be able to tell you what the issue is. Make sure you wrap the code in [code] and [/code] tags.

Edited by Sunjammer, 16 December 2013 - 08:43 AM.

  • DarthGizka likes this

#5
rosey1579

rosey1579
  • Members
  • 250 posts

You're further than I am



#6
DarthGizka

DarthGizka
  • Members
  • 867 posts

Sometimes you get the 'undefined variables' message if you forgot to #include the plot file or some other header file, like "events_h".

 

You can switch the identifier pick list at the right of the script window to "C" for "constants" and type a fragment like "nt_ty" to quickly see all "EVENT_TYPE_" constants, for example. If you cannot see your identifier there then you haven't included the proper file for it.