EVENT_TYPE_CLICK problem
#1
Posté 07 août 2010 - 05:51
I've tried to make a simple scripting that shows a simple message in the game when clicking on anything!
I've associated it with an area, but it seems that EVENT_TYPE_CLICK does nothing. Does it even fire at all?
What did i do wrong?
case EVENT_TYPE_CLICK:
{
DisplayFloatyMessage(GetEventTarget(ev), "This is a message", FLOATY_MESSAGE, 8777215, 2.0)
break;
}
#2
Posté 08 août 2010 - 08:03
#3
Posté 08 août 2010 - 08:23
#4
Posté 08 août 2010 - 11:18
Proleric1 wrote...
That's a placeable event, so it needs to go in your placeable script.
THX, how do I know which event are for objects which are for placeables or which are for creatures etc?
Another question. How do i solve the first problem? Example I have a man and i want to create a floating message when i click on him: "He appears to be speechless" ?
#5
Posté 08 août 2010 - 11:42
About events: it isn't always clearly documented how events are used; looking through Bioware's scripts will give you an idea after a while of what is used where. It can be educational to just look through things like creature_core, rules_core, placeables_core, etc. to see how various events are used. Another way is to look at events_h, which does have some comments about some events.
#6
Posté 08 août 2010 - 01:24
FergusM wrote...
What you want to do for that is have an ambient conversation. Basically, create a conversation and find/check the 'ambient line' box. Then give this conversation to the creature. When you click on him to initiate conversation, if his lines are ambient they will just appear above his head rather than launching a full conversation.
About events: it isn't always clearly documented how events are used; looking through Bioware's scripts will give you an idea after a while of what is used where. It can be educational to just look through things like creature_core, rules_core, placeables_core, etc. to see how various events are used. Another way is to look at events_h, which does have some comments about some events.
BIG THANKS. I think these will help.
#7
Posté 09 août 2010 - 06:00





Retour en haut






