Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
 I am trying to compile smaugfuss1.8
Yesterday, 11:18 am
By Tyro
Resets not working.
May 19, 2013, 5:57 am
By Remcon
Compendium of bugs in SmaugFUSS
May 18, 2013, 8:42 am
By Remcon
SIGCONT?
May 13, 2013, 9:49 am
By Aurin
Try/Catch function?
May 10, 2013, 10:36 am
By Zeno
QSF Portal
Author: QSF Portal Team
Submitted by: Samson
Raspberry Pi Diff File
Author: Dretzile
Submitted by: Dretzile
Replacement mp_*_passage funcs
Author: Andril
Submitted by: Andril
g++ 4.6 unused variables patch
Author: diff
Submitted by: Andril
LOP 1.43
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Google, MercedesB, KennyOCW, BenitoPur, Angelo70W, Yandex, AutumnMon, Exalead, LavonMcfa

Members: 7
Guests: 34
Stats
Files
Topics
Posts
Members
Newest Member
440
3,577
18,328
3,959
Marlon875
Today's Birthdays
Gabriela6 (77), NicholeHu (83)
Related Links
Smaug Building Institute
» SmaugMuds.org » General » Building » death_prog on item?
Forum Rules | Mark all | Recent Posts

death_prog on item?
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Aug 14, 2010, 11:57 am
Go to the top of the page
Go to the bottom of the page

pentair
Fledgling
GroupMembers
Posts17
JoinedMar 18, 2009

was looking through an area and say an item that had a death program on it. thought it was the builder mistaking a sac_prog. what does a death_prog on an item do? :headbang:
       
Post is unread #2 Aug 15, 2010, 10:49 am
Go to the top of the page
Go to the bottom of the page

Conner
Sorcerer
GroupMembers
Posts870
JoinedMay 8, 2005

It triggers when a player dies in the room if it's used on a room. If it's used on an item it triggers when the person holding it dies. If it's used on a mob it triggers when the mob dies. At least, that's what the help file entries indicate.
       
Post is unread #3 Aug 16, 2010, 7:25 am
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

What Conner says is what I remember too. It would be pretty easy to find out by searching for occurrences of, IIRC, oprog_death_trigger and seeing where it gets called.
       
Post is unread #4 Aug 16, 2010, 1:31 pm   Last edited Aug 16, 2010, 3:35 pm by ayuri
Go to the top of the page
Go to the bottom of the page

ayuri
Magician
GroupMembers
Posts212
JoinedJun 13, 2008

Just a quick example, one of my builders implemented a "Halo flood" infection. Here is what it looks like:
death_prog 100~
mpe &Cthe carrier explodes and a group of infection forms appear.&W
mpmload 20999
mpmload 20999
mpmload 20999
mpmload 20999
mpmload 20999


Now the intresting bit goes more indepth:
death_prog 40~
mpecho a combat form grows and grows and gets back up to its feet as a carrier form.
mpmload 20997


And my favorite part....
entry_prog 100~
if otypehere(Corpse)
mppurge corpse
mpecho an infection form jumps into a corpse
if rand(40)
mpecho and turns it into a shiraqui combat  form.
mpmload 20998
mpgoto 6300
say purge
else
if rand(100)
mpecho and turns it into a shiraqui carrier  form.
mpmload 20997
mpgoto 6300
say purge
else
endif
endif
endif


I know with out more detail is hard to see whats going on, but you should be able to get the idea of death progs (at least on npc's).

Note, I do think the "if otypehere(corpse_pc)" does work.... so be careful with that if you use it. Been awhile since I've used this however.

**EDIT If you look at the swfote limbo.are file for the arena you can see an example of death_prog in a room, however I don't recall if I've ever seen it work. :shrug:
*** Edit again: I'm still looking for a death_prog on an item... So far nothing.
ayuri
       
Pages:<< prev 1 next >>

 
Contact Us