Jump to content
  • 0
Sign in to follow this  
xienne15

Effects using script isntead of browedit

Question

- script EP7_lightanim -1,{

 

OnLight:

donpcevent "#ep7effectAby1::OnAction";

 

sleep2 1000;

donpcevent "EP7_lightanim::OnLight";

end;

}

//===============

ars_fild58,95,103,0 script #ep7effectAby1 139,{

OnAction:specialeffect 14;end;

}

 

im using this one,but it doesnt do anything at all. Do i need to do something first for it to trigger? seems likes its not.....please help

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

What triggers it is the presence of an OnInit: label. If it's not present the NPC will wait to be clicked when loaded but it's invisible. This means if you change all occurrences of the OnLight label to OnInit it should work. Or if you want, you could add the OnInit label just before or after the OnLight label, whatever solution you find more appropriate.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.