• Welcome to Freedom Reborn Archive.
 

EZScript and custom python

Started by GogglesPizanno, November 02, 2008, 11:41:20 AM

Previous topic - Next topic

GogglesPizanno

I think I already know the answer but I'll throw it out anyway. Is there a way from within EZScript to call a custom python function if that function was part of the mission script? So lets say in an EZScript encounter a certain outcome happens, at that point in addition to being able to trigger a new encounter, you could also trigger a custom python function as well.

I have some slightly less interactive ways to sort of accomplish what i want, but I figured I would make sure its not one of those cool functions that M25 hid in there.

M25

There is a special encounter type that calls a user-specified custom python function.  It may do what you want. 

Encounter: XYZ
Type: User Function
Function: myfunction()



GogglesPizanno

Awesome, that's exactly what I was looking for...

yell0w_lantern

Now I'm interested. What can you do with that?