Jump to content

Creating a menu but it opens twice


javaplaza

Recommended Posts

I'm creating a messagebox menu thats pretty extensive, so when it opens twice it seems way more confusing than it actually is.

 

I put the script on a magic effect (Fire and Forget on Self) and put that onto a spell.

 

 

The Script:

Event OnEffectStart(Actor akTarget, Actor akCaster)
	if akTarget == game.getplayer()
		MenuMain()
	endif
endEvent

Anyone know why this would fire twice in a row? Or how I can prevent that? Thanks

 

 

EDIT:: As a test, I changed things around and put the script on a ring. When you equip the ring the menu works perfectly. Something is going wrong with my OnEffectStart... i would prefer to use it so any help would be much appreciated!

Edited by javaplaza
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...