Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Change the parent of an instance

by chromatic (Archbishop)
on May 11, 2004 at 18:26 UTC ( [id://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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-06-21 09:56 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.