Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Nosol

Registered:
Posts: 8
Reply with quote  #1 
I'm trying to get something working with the space whales, but it involves me being able to remove them on command.  I can't seem to get destroy, or destroy_named to function with the space whales.  Is there a command to clear out space whales?  Or is there something not obvious about how to get the destroy commands to apply to them, like a pod number reference or something.

Thanks
Nosol

Registered:
Posts: 8
Reply with quote  #2 
...   aaaaand after spending nearly an hour trying to find the solution online somwehre, and posting this, within minutes I figured out that I needed to name the whale on creation to get the destroy command to work.  Dumb oversight on my part in the first place, but I got it working now!
Xavier Wise

Registered:
Posts: 1,362
Reply with quote  #3 
Hello, you have already found the solution, but here's an extra bit of info.
Whales often come in pods of 3 or more. You don't have to name each whale differently to create a destroy command for them, as long as there is one destroy command PER whale. The example below should help clarify:
In event 1, I 'Create' three whales, each named Xeno. All three whales have an identical name.
In another event, I want to clear these whales, so I add in 'Destroy object named Xeno'. As there are three whales, I need three 'Destroy' commands.
This trick works for any named object, for which you have defined the name (another good example is multiple monsters)

__________________
Fleet Captain Xavier Wise - TSN Sabre
Link to TSN RP Community Website

Want to follow development of the TSN Sandbox? Head here:
https://ko-fi.com/xavierwise
Nosol

Registered:
Posts: 8
Reply with quote  #4 
That makes plenty of sense.  I'll need to think about if this'll make sense for what I'm trying to set up.  I may need to re-work some of my naming.  Thanks for the tip.
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.