First Mod

Post » Sat Jul 16, 2011 3:18 am

Okay so I am working on a mod, which activates a new quest. Before the quest is activated though I want a message to pop up on the players screen if they are level 35 or higher. I am having issues the the message coming up, here is the code I have.
ScriptName VH_KvatchRebuiltMessage		Short DoOnce		Begin GameMode			If ( Player.GetLevel >=35 ) && ( DoOnce == 0)			MessageBox "People are talking about Kvatch being rebuilt. If the rumors are they are looking for a new Count. Maybe I should go check it out.", "Okay" 			Set DoOnce to 1		ElseIf ( Player.GetLevel <=34 )				Return		EndIf	end


[Edit] Please disregard the grammar mistake in the MessageBox lol
User avatar
Tamika Jett
 
Posts: 3301
Joined: Wed Jun 06, 2007 3:44 am

Post » Sat Jul 16, 2011 12:17 am

I think it's probably because you're missing a space in your condition function.

If ( Player.GetLevel >= 35 ) && ( DoOnce == 0)


You should also probably get rid of the elseif stuff, because they're unnecessary.
User avatar
Rachel Eloise Getoutofmyface
 
Posts: 3445
Joined: Mon Oct 09, 2006 5:20 pm

Post » Sat Jul 16, 2011 4:40 am

Okay thanks I'll check it out.
User avatar
Charlie Sarson
 
Posts: 3445
Joined: Thu May 17, 2007 12:38 pm


Return to IV - Oblivion