Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Cheat reaction not working, did I do anything wrong?  (Read 689 times)

jetex1911

  • Bay Watcher
  • [MAXAGE:∞]
    • View Profile
Cheat reaction not working, did I do anything wrong?
« on: July 31, 2012, 10:01:32 am »

I was thinking of making a reaction that gave me free materials, but whenever I try to use it, it doesn't work.  Did I do anything wrong?

Code: [Select]
[REACTION:CHEAT_BASALT]
[NAME:create basalt]
[BUILDING:SMELTER:NONE]
[PRODUCT:100:1:STONE:NO_SUBTYPE:INORGANIC:BASALT][PRODUCT_DIMENSION:150]
[SKILL:SMELT]

I did add to the entity file that the dwarves could use it.
Logged
Put into this light, Dr. Robotnik and Armok could easily have been roommates.


Known as That_Kobold on BYOND

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: Cheat reaction not working, did I do anything wrong?
« Reply #1 on: July 31, 2012, 11:29:51 am »

Define 'doesn't work.'

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Cheat reaction not working, did I do anything wrong?
« Reply #2 on: July 31, 2012, 11:33:41 am »

Pre-existing save? or fresh gen right after the addition? Because that reaction is gold, all except it will make 150 basalt boulders in 1 go
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Cheat reaction not working, did I do anything wrong?
« Reply #3 on: July 31, 2012, 11:55:42 am »

all except it will make 150 basalt boulders in 1 go
Are you sure that the game won't just ignore the PRODUCT_DIMENSION because it's not an item type that makes use of it?
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Hugo_The_Dwarf

  • Bay Watcher
  • Modding Mentor
    • View Profile
    • Regeneration: Forced Evolution
Re: Cheat reaction not working, did I do anything wrong?
« Reply #4 on: July 31, 2012, 12:27:40 pm »

all except it will make 150 basalt boulders in 1 go
Are you sure that the game won't just ignore the PRODUCT_DIMENSION because it's not an item type that makes use of it?
Did a quick test, Seems the game does ignore PD if the ITEM doesn't have dimensions. At least in Adv. Mode but i'd safely assume Toady has the same functions for both game modes reguarding how reactions work.
Logged

jetex1911

  • Bay Watcher
  • [MAXAGE:∞]
    • View Profile
Re: Cheat reaction not working, did I do anything wrong?
« Reply #5 on: July 31, 2012, 07:03:26 pm »

Well, I regened a world, and was getting ready to see if it worked now, but I found something I'd like to share:

Spoiler (click to show/hide)
Logged
Put into this light, Dr. Robotnik and Armok could easily have been roommates.


Known as That_Kobold on BYOND

LordSlowpoke

  • Bay Watcher
    • View Profile
Re: Cheat reaction not working, did I do anything wrong?
« Reply #6 on: July 31, 2012, 07:06:24 pm »

You took the BC, turned them into an entity capable of going on adventures, and threw [INTELLIGENT] on them so you could learn how to kick. Correct?

Because that would explain this entire ordeal.
Logged

jetex1911

  • Bay Watcher
  • [MAXAGE:∞]
    • View Profile
Re: Cheat reaction not working, did I do anything wrong?
« Reply #7 on: July 31, 2012, 07:14:23 pm »

Thanks for the help, it's working now.

You took the BC, turned them into an entity capable of going on adventures, and threw [INTELLIGENT] on them so you could learn how to kick. Correct?

My brother apparently threw that in when he was on the computer I'm using right now, I didn't even know that was in there until now.  ::)
Logged
Put into this light, Dr. Robotnik and Armok could easily have been roommates.


Known as That_Kobold on BYOND

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Cheat reaction not working, did I do anything wrong?
« Reply #8 on: July 31, 2012, 08:47:11 pm »

You took the BC, turned them into an entity capable of going on adventures, and threw [INTELLIGENT] on them so you could learn how to kick. Correct?

Because that would explain this entire ordeal.
Well, then
My brother
evidently overdid it. Specifically, if the entity was supposed to be A-M only, there's no need to give it biome info or site info or spawning info or anything like that.
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.