Posted by JM on November 11, 1998 at 08:03:13:
In Reply to: Cog Question posted by Nightmare on November 10, 1998 at 22:24:12:
: Ok, here's what I'm trying to do. I want to take a power up, say, a CR. I don't want it to respawn in the same place all the time. That way, I can hide stuff really well without giving an unfair advantage to people who know the level. I'm working on a cog to do this, but I'm having some trouble. I made a template, just like a normal CR except it has no respawn time. It's pretty simple to make a cog create the new one at a random ghost when the item is taken, except I don't know how to make the cog know when the CR is grabbed. Since I'm creating the item by cog verb, it's stored as an int instead of a thing [powerup=CreateThing(item, ghost0)]. I need to find a way to promote the item to a "thing" symbol instead of an "int", or find some way other than the "taken" message to trigger the new randomly placed powerup. Anyone have any ideas?
: Nightmare
Use touched. When a powerup is touched, its taken... after its touched, pause, then destroy it. then create the new one. And, forget about int... just use thing... all thing is is ints that point to a template number...