Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Looking for a cog that 'conjures' pickups
Looking for a cog that 'conjures' pickups
2004-05-27, 3:07 AM #1
Hello, all.

I'm looking for a cog that 'conjures' pickups on touching a thing or a surface. So for example, you touch a statue and a revive appears. I think a cog like this already exists, I remember seeing a gametable that produced armour upon activating it.

Anyone know where to get a cog like this? Is it already in the original JK cogs perhaps?

Oh, and most importantly, it's for my MultiPlayer level, so it should work for clients' comps too.

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I
2004-05-27, 3:52 AM #2
Code:
# Simple script to 'conjure' an item upon touch.
#
# 05/2004 gbk
Symbols
Message Touched
Thing Touchee
Thing Ghost
Template Item
End
Code
Touched:
Creatething(Item, Ghost);
Stop;
End


Im *very* rusty, so that may not work . . . but there ya go... [http://forums.massassi.net/html/tongue.gif]

------------------
I used to believe that we must fight the future, lest change come without our consent. I was wrong. The truth is that we must embrace the future, for only with change can we remain the same.
:wq
And when the moment is right, I'm gonna fly a kite.
2004-05-27, 6:11 AM #3
Thanks nonetheless [http://forums.massassi.net/html/biggrin.gif]

I'll check it out!

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I
2004-05-27, 4:37 PM #4
Well, it worked, but not exactly right, lol.

I noticed that it gives an item anytime you are in touch with it. So if you jump on the thing, or even just 'bump' it, you'll get an item. If you 'activate' the thing, you will get multiple items in one place. In fact, it's not possible to get a 'single' item. It gives multiple items and what more... there seems to be a client/server problem, because sometimes the pickup only shows up on the client side =\. Weird eh? It should be easy to solve (I think), lol. I'm sure someone knows how to code it right. [http://forums.massassi.net/html/smile.gif]

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I
2004-05-27, 4:53 PM #5
Quote:
<font face="Verdana, Arial" size="2">Originally posted by ORJ_JoS:
...I'm sure someone knows how to code it right. [http://forums.massassi.net/html/smile.gif]</font>


...What am I, a freakin' n00b? [http://forums.massassi.net/html/confused.gif]


Code:
# Simple script to 'conjure' an SINGLE item upon touch.
#
# 05/2004 gbk
Symbols
Message Touched
Thing Touchee
Thing Ghost
Template Item
Int D=0 Local
End
Code
Touched:
If(D) Stop;
D=1;
Creatething(Item, Ghost);
Stop;
End


There, now you only get one.

------------------
I used to believe that we must fight the future, lest change come without our consent. I was wrong. The truth is that we must embrace the future, for only with change can we remain the same.
:wq
And when the moment is right, I'm gonna fly a kite.
2004-05-27, 10:34 PM #6
Do I sense GBK's blood pressure just went through the cog cave's roof? [http://forums.massassi.net/html/wink.gif]

You've just got to love GBK and his reactions [http://forums.massassi.net/html/wink.gif] - I'm sure ORJ didn't mean to cause offence GBK - ORJ has only started here and probably doesn't know of your legendary cogging status [http://forums.massassi.net/html/smile.gif]

Happy now, GBK [http://forums.massassi.net/html/wink.gif] [http://forums.massassi.net/html/biggrin.gif]

-Jackpot

------------------
"lucky_jackpot is the smily god..." - gothicX

"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
("Ye Wearie Wayfarer" - by Adam Lindsay Gordon)

And he's finally off the starting grid --> Zooooom -@%
"lucky_jackpot is the smily god..." -gothicX
"Life is mostly froth and bubble, but two things stand in stone,
Kindness in another's trouble, courage in your own"
- "Ye Wearie Wayfarer"
|| AI Builder: compatible with both JK & MotS || My website ||
2004-05-30, 7:03 AM #7
Whooooooops, sorry! I meant no offense at all. Lol, I just didn't want to bother GBK again, 'cause he said he was rusty. And yeah, i'm pretty new on the massassi forums...

Thanks a lot GBK, sorry for late reaction, but I had a two day party in the weekend, so I was away.

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I
2004-05-30, 8:19 AM #8
Quote:
<font face="Verdana, Arial" size="2">Originally posted by ORJ_JoS:
...I just didn't want to bother GBK again, 'cause he said he was rusty. And yeah, i'm pretty new on the massassi forums...
</font>


Rusty, yes; spring chicken, no. Ive actully been contiplating making a comeback.... [http://forums.massassi.net/html/wink.gif]

------------------
I used to believe that we must fight the future, lest change come without our consent. I was wrong. The truth is that we must embrace the future, for only with change can we remain the same.
:wq
And when the moment is right, I'm gonna fly a kite.
2004-05-31, 1:23 PM #9
Alright, I tested it. Touching the thing doesn't seem to 'conjure' the pickup now. The pickup just appears on the ghost position every 2 minutes or so. When I touch the thing, the pickup won't appear, it just appears 'by itself' from time to time.

The way I see it, it should conjure the pickup everytime the thing is activated. So, (for example) activating it twice should conjure two pickups. Also, it's not meant to do it when you 'bump' the thing. (I'm not even sure if it's still doing that, since the pickup just respawns and respawns (after you pick it up ofcourse))

Sorry for being so difficult...I think I didn't really make it clear in the first place. :S

Getting tired of me yet? [http://forums.massassi.net/html/wink.gif]

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I
2004-05-31, 2:35 PM #10
In GBK's original cog (the first one he posted), change both "touched" keywords to "activated".

------------------
for(i = 0; i < 00; i = i + 1) Print("massassi is good");
PrintInt(i); //print the integer value of infinity
May the mass times acceleration be with you.
2004-05-31, 4:11 PM #11
Make sure its the origanal cog, cause the second will only put out one powerup.

Quote:
<font face="Verdana, Arial" size="2">Originally posted by GBK:
Ive actully been contiplating making a comeback.... [http://forums.massassi.net/html/wink.gif]
</font>


Maybe I should too..... ya think GBK? [http://forums.massassi.net/html/wink.gif] Cause noone remembers me.... [http://forums.massassi.net/html/tongue.gif]

------------------
Major projects working on:
SATNRT
JK Pistol Mod
Aliens TC

[This message has been edited by Descent_pilot (edited May 31, 2004).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2004-05-31, 5:01 PM #12
Alright, thanks. I did that. I took the original and replaced 'touched' with 'activated', and it worked partly. I get the pickup everytime it is activated now, but when I pick it up, the pickup will reappear after some time, without activating the thing.

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I
2004-05-31, 8:00 PM #13
I believe the problem isn't the cog. You're probably attempting to conjure a respawning item. Items have attached cogs which I believe are called 'class cogs' (Anyone care to correct?). These cogs are then executed. So if you conjure a respawning item, I believe the class cog, which causes it to respawn, same as if you just placed the item in your level, then activates. So in short, change the template. (It might be something else in there as well...)

------------------
_ _ _____________ _ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
_ _ _____________ _ _
Wolf Moon
Cast Your Spell On Me
Beware
The Woods At Night
The Wolf Has Come
2004-06-01, 2:32 AM #14
Yeah, it's a revive I'm trying to conjure. I know how to open the master.tpl, but I have no idea what to change and where.

I HAVE AN IDEA! What if I used the 'rrevivepack', instead of the 'revivepack'. The rrevivepack does not respawn! That should fix it! Hopefully it can still be 'conjured' multiple times, but anyways, it shouldn't respawn!

*is going to try it out right away*

------------------
*There is no death, there is the Force*

[This message has been edited by ORJ_JoS (edited June 01, 2004).]
ORJ / My Level: ORJ Temple Tournament I
2004-06-01, 5:24 AM #15
w00000t! [http://forums.massassi.net/html/biggrin.gif] It worked!

I took GBK's original cog, replaced all instances of the word 'touched' with 'activated', and I made the conjured pickup the 'rrevivepack' instead of the normal 'revivepack'. I suddenly remembered that the 'rrevivepack' doesn't respawn. Now it works neatly. [http://forums.massassi.net/html/smile.gif] I get it everytime I activate the thing, and it doesn't respawn by itself [http://forums.massassi.net/html/biggrin.gif]

Thanks guys! *adds some names to the credits list* [http://forums.massassi.net/html/wink.gif]

------------------
*There is no death, there is the Force*
ORJ / My Level: ORJ Temple Tournament I

↑ Up to the top!