Code Search for Developers
 
 
  

m_hitPot.lua from palisma2d at Krugle


Show m_hitPot.lua syntax highlighted

-- This script tests to see if the player has the mission
-- to hit this pot.  If he has this mission, and hits the pot
-- it is marked as a success.


-- Definitions --
NOTASSIGNED = -1;
INPROGRESS  = 0;
COMPLETED   = 1; 
FAILED      = 2;


-- bind the player
player.Init();

-- test if the player has this mission --
if ( player.HasMission("data/scripts/test_mission/m_hitPot") )
then
	player.SetMissionStatus( "data/scripts/test_mission/m_hitPot", COMPLETED );
	console.Exec("echo Mission update!" );
end


	



See more files for this project here

palisma2d

The University of Wisconsin-Parkside Developers Union first product. More info to come. Code name Palisma.

Project homepage: http://code.google.com/p/palisma2d/
Programming language(s): C,C++
License: gpl2

  HitPotSetup.lua
  m_hitPot.dialog
  m_hitPot.lua
  m_hitPot.msn
  m_hitPot_inprogress.dialog
  m_hitPot_reward.lua
  reward.dialog