Difference between revisions of "Manual:DIL Manual/killedit"

From DikuMUD Wiki
Jump to navigation Jump to search
(XML import)
 
(XML import)
 
Line 1: Line 1:
 +
<span id="bpkilledit"></span>
  
 +
'''Function:  '''<i><!--CODE-->killedit ;</i><!--ENDCODE-->
 +
This function is used to kill the editor on a PC if it needs to
 +
stop editing before the PC is done editing.  An example of when this is needed
 +
is when a player is killed while editing or is transfered away from a place where he was editing.
 +
You can let them finish but it may be wierd for a person to finish
 +
posting in one room while in another.
 +
'''Example'''
 +
<i><!--CODE-->
 +
---~---~---~---~---~---~---~---~---
  
 +
dilbegin editextra (arg:string);
 +
code
 +
dilend
 +
 +
---~---~---~---~---~---~---~---~---
 +
 +
</i><!--ENDCODE-->
 +
 +
 +
 +
---~---~---~---~---~---~---~---~---
 
<span id="bpkilledit"></span>
 
<span id="bpkilledit"></span>
  
Line 15: Line 36:
 
  dilbegin editextra (arg:string);
 
  dilbegin editextra (arg:string);
 
  code
 
  code
{
+
dilend
interrupt (SFB_DEAD,self==activator,int_quit);
 
        beginedit (self);
 
        wait(SFB_EDIT,self==activator) ;
 
        temp := textformat(argument);
 
addextra (self.outside.extra ,{"graphitee"},temp);
 
quit;
 
:int_quit:
 
killedit;
 
quit;
 
}
 
dilend
 
  
 
  ---~---~---~---~---~---~---~---~---
 
  ---~---~---~---~---~---~---~---~---

Latest revision as of 22:33, 4 December 2025

Function:  killedit ;
This function is used to kill the editor on a PC if it needs to
stop editing before the PC is done editing.  An example of when this is needed
is when a player is killed while editing or is transfered away from a place where he was editing.
You can let them finish but it may be wierd for a person to finish
posting in one room while in another.
Example

---~---~---~---~---~---~---~---~---
dilbegin editextra (arg:string);
code

dilend

---~---~---~---~---~---~---~---~---


---~---~---~---~---~---~---~---~---

Function:  killedit ;
This function is used to kill the editor on a PC if it needs to
stop editing before the PC is done editing.  An example of when this is needed
is when a player is killed while editing or is transfered away from a place where he was editing.
You can let them finish but it may be wierd for a person to finish
posting in one room while in another.
Example

---~---~---~---~---~---~---~---~---
dilbegin editextra (arg:string);
code

dilend

---~---~---~---~---~---~---~---~---


---~---~---~---~---~---~---~---~---