HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help making a Riddle.

06-25-2003, 01:44 PM#1
NavARXIDA
I need help making a riddle... anyone can help ???

I'm makeing my first RPG map and i need your help setting up a riddle.

in the picture you can see a circle of power, a glowing pillar and two power generators.

I display the riddle to the users and their are said to enter the circle and speak the password.

what i want to do is ...

a hero enters (or gets really close) to the circle and speaks the password in the chat windows (that is done because triggers already do this in WE)

what i need help with is ...

a hero enters (or gets really close) to the circle and speaks the WRONG password in the chat windows. when this is done the power generators fire up an cinematic effect like the frost trap and damage the unit in the circle...

I have to say that i dont know a lot about programming but read your tutorials anyway ...

If i get this right ... this trigger needs to change


----------------------------------------------------------------------------

function Trig_GolemRiddle_Conditions takes nothing returns boolean
if ( not ( IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true ) ) then
return false
endif
return true
endfunction



-------------------------------------------------------------------------------

function Trig_GolemRiddle_Actions takes nothing returns nothing
call CameraSetupApplyForPlayer( true, gg_cam_GolemCam1, GetOwningPlayer(GetTriggerUnit()), 0 )
call CreateItemLoc( 'texp', GetRectCenter(gg_rct_GolemArea) )
endfunction


---------------------------------------------------------------------------------


//===========================================================================
function InitTrig_GolemRiddle takes nothing returns nothing
set gg_trg_GolemRiddle = CreateTrigger( )
call TriggerRegisterUnitInRangeSimple( gg_trg_GolemRiddle, 50.00, gg_unit_ncop_0381 )
call TriggerRegisterPlayerChatEvent( gg_trg_GolemRiddle, GetOwningPlayer(GetTriggerUnit()), "water", true )
call TriggerAddCondition( gg_trg_GolemRiddle, Condition( function Trig_GolemRiddle_Conditions ) )
call TriggerAddAction( gg_trg_GolemRiddle, function Trig_GolemRiddle_Actions )
endfunction

----------------------------------------------------------------------------------

so please help me so i can finish this map which is taking forever ...

PS. if you done it in any other don't even try fixing mine...

TIA
NavARXIDA