He-Boulder script help

Rapped Scallion

New member
I'm trying to build a simple script that looks to see if the he-boulder's Everything Looks Yellow effect is active, and if not then it uses a turtle totem until the he-boulder's eyes glow yellow, then points to disintegrate an enemy.

Here's what I have so far, cribbed together from someone else's script

Code:
[ monster name here ]
try to steal an item
special action
skill transcendent olfaction
if (get_counters("Major Yellow Recharge", 0, 999) != "")
	{
		attack with weapon 
	}

	if (!contains_text(pageText, "yellow eye") ) 
		{
			throw_item ( $item[turtle totem] );
		}
	use_skill ( $skill[Point at your opponent] );

Could I simply the language here so I can just say "skill point at your opponent" and stuff like that? Can I even use ASH in the Custom Combat setup, or do I need to make a script with the ASH code and call it somehow? (If so, could someone explain how?)

Thanks for any help.
 

Bale

Minion
Another error: There is no longer a yellow recharge counter, that was a feature that got dropped because of a change to KoL. Now "Everything Looks Yellow" is an effect for you to check instead.
 

Rapped Scallion

New member
How about this?

Code:
void main(string pageTextOne, string pageTextTwo)
{
if (contains_text(pageTextOne, "Everything Looks Yellow") )
	{
	if (contains_text(pageTextTwo, "yellow eye") ) 
		{
		use_skill ( $skill[Point at your opponent] );
		}
	else throw_item ( $item[seal tooth] );
	}
else cli_execute("attack with weapon");
}
 

heeheehee

Developer
Staff member
This wiki page mentions that a consult script should have a main method that looks like
Code:
void main(int round, monster mob, string combat)
.

Also, you'll want to check for the presence of an effect. That is, have_effect($effect[Everything Looks Yellow])==0. If you want to use ASH, I'd really suggest glossing over the relevant wiki pages.
 
Top