Talk:In hardcore: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
New page: This totally needs a better example. Currently: <code> if(in_hardcore()) { buy(3,$item[hot hi mein]); } </code> This will never work in real life. If you're in hardcore, y...
(No difference)

Revision as of 21:05, 17 January 2008

This totally needs a better example.

Currently:

if(in_hardcore()) 
  {
  buy(3,$item[hot hi mein]);
  }

This will never work in real life. If you're in hardcore, you can't simply buy things like hi meins. I'd be inclined to just make it !in_hardcore(), but really it should be can_interact() for this example (which checks for ronin). The example should probably be something completely different. I'll replace it if I come up with something clean and simple. --Degrassi 13:05, 17 January 2008 (PST)