Aller au contenu

Photo

#include for GetEventObject()?


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

#1
Rolenka

Rolenka
  • Members
  • 2 257 messages
As well as the other GetEvent functions.

I've trying looking at other scripts which include the function, but there is no include that they all have in common. I've tried opening likely scripts and searching, but to no avail.

Any ideas?

#2
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
shouldn't this stuff be in the documentation? i'm not saying that it is but i think it should be somewhere.

#3
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
double post

Modifié par gordonbrown82, 06 janvier 2010 - 10:29 .


#4
elys

elys
  • Members
  • 458 messages
There is no need for include, they are part of the native (hardcoded) functions.

#5
Craig Graff

Craig Graff
  • Members
  • 608 messages
Are you asking what each one represents? That should be in the wiki for each event type - where it is not, feel free to point it out and I or someone else will try to update it. A more concerted effort to expand and correct the documentation will hopefully be starting soon.
social.bioware.com/wiki/datoolset/index.php/Category:Event_types

#6
Rolenka

Rolenka
  • Members
  • 2 257 messages
Bleh, I should have written GetEventCreator. I had to come downstairs to feed my son and I don't have the toolset on the laptop.

My problem is that when I use:

object oDamager = GetEventCreator(ev);
int nAbility = GetEventInteger(ev, 1);
float fDamage = GetEventFloat(ev, 0);

They all generate compiler errors saying "variable defined without type." Which is of course wrong, but it sometimes appears when the include for the function is missing, so I thought that was the case.

Modifié par Rolenka, 07 janvier 2010 - 12:00 .


#7
elys

elys
  • Members
  • 458 messages
have you declared:



event ev;



?

#8
Craig Graff

Craig Graff
  • Members
  • 608 messages
You are using ev, most likely without declaring event ev = GetCurrentEvent();

#9
Sunjammer

Sunjammer
  • Members
  • 925 messages
Out posted!

Modifié par Sunjammer, 07 janvier 2010 - 12:07 .


#10
Rolenka

Rolenka
  • Members
  • 2 257 messages
lol thanks. I wonder how long that would have taken me....



*blush*

#11
elys

elys
  • Members
  • 458 messages
The sad thing is that generally after a while the more you read the same script missing the problem again and again, you will keep missing it as your mind is clearly not focused on where the real problem is hehe Posted Image

If that happens to me, I usually take a break, or work on something else, and then when I go back at analyzing the evil script, it's like "dang, how could I miss that ".

Modifié par elys, 07 janvier 2010 - 12:16 .


#12
Rolenka

Rolenka
  • Members
  • 2 257 messages
Ain't that the truth...