Latest topics
» Help with trigger_usescript
Thu Sep 22, 2016 8:16 am by flanagon

» New Lugormod U# (Windows + Linux)
Thu Sep 22, 2016 7:03 am by Ufo

» Single Round Team Quest
Thu Jul 23, 2015 10:39 pm by agent6141

» iobject terminal
Thu Sep 25, 2014 2:39 pm by flanagon

» Usefull Downloads
Thu Aug 07, 2014 12:35 am by Kimmeh

» Television
Thu Jan 09, 2014 2:25 am by Mr. Swister

» Lugormod U# on server
Wed Jan 08, 2014 11:08 pm by Shadow

» Teleporter with effects
Thu Jan 02, 2014 5:51 am by Pierry

» Some possibly useful addons
Thu Jan 02, 2014 5:50 am by Pierry


Collectable Crystals - Written by Weapon_X, Modified by Zkyo

View previous topic View next topic Go down

Collectable Crystals - Written by Weapon_X, Modified by Zkyo

Post by Zkyo on Sat Apr 03, 2010 9:42 pm

This makes a quest where you can collect crystals and sell them.

Note: There were a few errors and un-needed entities, so i edited it a bit

Crystal 1
Code:
place trigger_multiple 0 maxs,50 50 50,mins,-50 -50 -50,targetname,crystal1Trig,spawnflags,132,target,crystalHacked,target2,crystal1,speed,-1,usetime,4000
place lmd_door 0 model,map_objects/mp/crystal_blue,movement,0 0 -150,targetname,crystal1,modelscale,2,openTarget,actcrystal1Trig,target2,deactcrystal1Trig,spawnflags,13,dmg,-1,speed,9999
place target_relay * targetname,crystal,target,crystal1
place target_activate * targetname,actcrystal1Trig,target,crystal1Trig
place target_deactivate * targetname,deactcrystal1Trig,target,crystal1Trig

Crystal 2
Code:
place trigger_multiple 0 maxs,50 50 50,mins,-50 -50 -50,targetname,crystal2Trig,spawnflags,132,target,crystalHacked,target2,crystal2,speed,-1,usetime,4000
place lmd_door 0 model,map_objects/mp/crystal_blue,movement,0 0 -150,targetname,crystal2,modelscale,2,openTarget,actcrystal2Trig,target2,deactcrystal2Trig,spawnflags,13,dmg,-1,speed,9999
place target_relay * targetname,crystal,target,crystal2
place target_activate * targetname,actcrystal2Trig,target,crystal2Trig
place target_deactivate * targetname,deactcrystal2Trig,target,crystal2Trig

Crystal 3
Code:
place trigger_multiple 0 maxs,50 50 50,mins,-50 -50 -50,targetname,crystal3Trig,spawnflags,132,target,crystalHacked,target2,crystal3,speed,-1,usetime,4000
place lmd_door 0 model,map_objects/mp/crystal_blue,movement,0 0 -150,targetname,crystal3,modelscale,2,openTarget,actcrystal3Trig,target2,deactcrystal3Trig,spawnflags,13,dmg,-1,speed,9999
place target_relay * targetname,crystal,target,crystal3
place target_activate * targetname,actcrystal3Trig,target,crystal3Trig
place target_deactivate * targetname,deactcrystal3Trig,target,crystal3Trig

Crystal 4
Code:
place trigger_multiple 0 maxs,50 50 50,mins,-50 -50 -50,targetname,crystal4Trig,spawnflags,132,target,crystalHacked,target2,crystal4,speed,-1,usetime,4000
place lmd_door 0 model,map_objects/mp/crystal_blue,movement,0 0 -150,targetname,crystal4,modelscale,2,openTarget,actcrystal4Trig,target2,deactcrystal4Trig,spawnflags,13,dmg,-1,speed,9999
place target_relay * targetname,crystal,target,crystal4
place target_activate * targetname,actcrystal4Trig,target,crystal4Trig
place target_deactivate * targetname,deactcrystal4Trig,target,crystal4Trig

you can make more crystals ...

Messages
Code:
place target_print * targetname,crystalHacked,spawnflags,8,message,^5Crystal -- ^1A crystal was mined!
place target_print * targetname,crystalRDM,spawnflags,8,message,^5Crystal -- ^3A crystal has spawned!

The Inventory Object
Code:
place lmd_iobject * name,^3Crystal@Kor2,type,upcount,property,crystalKor2,max,4,count,1,targetname,crystalHacked

A delay to wait 10 seconds before respawning crystal
Code:
/place target_delay * targetname,crystalHacked,target,crystalRDM,wait,1-

A random to choose what crystal to spawn randomly
Code:
place target_random * targetname,crystalRDM,target,crystal

When map starts spawn a random Crystal
Code:
place trigger_once * targetname,initial_entity,target,crystalRDM

Zkyo
Admin
Admin

Posts : 384
Join date : 2010-03-29
Age : 23
Location : Grand Rapids, Michigan, USA

View user profile http://lugorhelp.forumotion.com

Back to top Go down

Re: Collectable Crystals - Written by Weapon_X, Modified by Zkyo

Post by Guest on Fri Aug 17, 2012 4:21 am

actually it was me re-writting this, also weapon x gave it to me not you lol. afro afro afro

Guest
Guest


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum