Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Change the parent of an instance

by chromatic (Archbishop)
on May 11, 2004 at 18:26 UTC ( #352528=note: print w/replies, xml ) Need Help??


in reply to Change the parent of an instance

Now here's the problem: when the player kills a foe called "a male elf soldier", it should turn into an item called "the corps of a male elf soldier". Therefor, I need to change the parent of this particular instance of Foe to Item.

Perhaps you'd find it easier to create a new Item, copying over the appropriate data from the Foe. That's what I'd do anyway.

Replies are listed 'Best First'.
Re: Re: Change the parent of an instance
by muba (Priest) on May 11, 2004 at 18:30 UTC
    Hmm... that tought has passed my mind in one way or another but I just didn't see the way how to do it. Now you've stated it like a simple thing, I indeed see how simple it is. I'll condsider it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://352528]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2016-10-01 20:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.