Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Create a players group, pass in players
- p1 = players( 1 )
- -- Create a death counter for a specific type
- dc = deathcounter( "Alan Schezar (Goliath)" )
- -- The player of a death counter can be changed at any time
- dc:setplayer( 1 )
- -- Example of creating a trigger
- -- The user (users of LIT, meaning you) must always manually call
- -- conditions( ) and actions( ) upon a player object
- p1:conditions( )
- always( )
- p1:actions( )
- dc:add( 1 )
- -- Create another trigger
- p1:conditions( )
- dc:exactly( 64 )
- p1:actions( )
- text( "print this" )
- dc:setto( 0 )
- -- Create a new players group
- p34 = players( 3, 4 )
- acc = accumulate( 1 )
- -- Another simple trigger example
- p34:conditions( )
- acc:exactly( 1, ore )
- p34:actions( )
- centerview( "Anywhere" )
- -- Example of making a Lua function to do some slightly
- -- heavier lifting! Original idea from Kaias
- function cleartext( )
- for i = 0, 11 do
- text( "" )
- end
- end
- p34:conditions( )
- always( )
- p34:actions( )
- cleartext( )
- -- Hyper triggers with looping example
- p78 = players( 7, 8 )
- for i = 0, 3 do
- p78:conditions( )
- always( )
- p78:actions( )
- for i = 0, 64 do
- preserve( )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement