Jump to content

Home

Force powers other than push/pull trigger scripts.


riceplant

Recommended Posts

Can it be done? I want to have some shallow water, and when the player uses lightning on it, it kills everything in it. Or possibly having the player use lightning to start a machine that's out of power. As it is, I can only have events triggered by push/pull, and mind trick on NPCs.

 

EDIT: I just realised, this is the 7th thread in a row that I've started. Is that OK? It says in the rules you shouldn't be able to look at a page and see you started most of the threads.

Link to comment
Share on other sites

You are officially Champion of stating the bleedin' obvious. But seriously, how? Scripts have to be run from a scriptrunner, which in turn must be triggered by a trigger (Big surprise there). I can't find a trigger that is triggered by force powers (Other than func_static for push/pull). However, not all entities are in the menus (misc_camera, for example), and I hope that someone knows a way it can be done.

Link to comment
Share on other sites

Well, there is the boolean data type command SET_LIGHTNING among the set_x script commands, so I suppose you could try to check whether it's true with an if statement, possibly launching the check script when a func_usable is being damaged, so that there would be a reasonable chance the force lightning was the reason for the func_usable taking damage.

 

Obviously, I have no idea if you actually can check the set_lightning like that, but you never know until you try. I'm 87% certain nobody has ever tried it before. You could be the first one. Be sure to report here what happened.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...