Rangery: Difference between revisions

From CLUMP
Jump to navigationJump to search
m (added mention of advanced morph macro.)
m (added advanced morph macro)
Line 1: Line 1:
See [[morph.txt]] for multiple creature morph macro…
Scroll down for Multi-Morph Macro
 
  //Rangery by Noivad
  //Rangery by Noivad
  f3 call Shieldstone //modify this to your chosen hotkey
  f3 call Shieldstone //modify this to your chosen hotkey
Line 121: Line 120:
  setglobal morphed 0
  setglobal morphed 0
  end if
  end if
}
==Multi-Creature Morph Macro==
I recommend mapping the increment/decrement to your scroll wheel. this is usable with Rangery if you delete/comment out the morph macro from Rangery
f8 call incrementMorph
f9 call decrementMorph
  /**** Morphing — note falls & spirit runouts need to be scanned for to "setglobal morphed 0" if @textLog < "you return to your normal form"****/
set morphed 0 //[DO NOT ALTER] toggle used to tell if you are morphed "1" or not "0"
set totalMorphs 1 //set this to the total number of morphs—notice
set morph[1] "Sky Bison" //change and add your morphs
set morph[2] ""
set morph[3] ""
set morph[4] ""
set morph[5] ""
set morph[6] ""
set mindex 1 // "Morph Index"
set verbose 1
morph
{
if morphed == 0
"/useitem belt /shape " morph[mindex] "\r"
setglobal morphed 1
else
"/useitem belt /return \r"
setglobal morphed 0
end if
}
incrementMorph
{
if mindex == totalMorphs
setglobal mindex 1
else
setglobal mindex + 1
end if
call whichMorph
}
decrementMorph
{
if mindex == 1
setglobal mindex totalMorphs
else
setglobal mindex - 1
end if
call whichMorph
}
whichMorph
{
if verbose == 1
message "*Morph Selected:" morph[mindex]
end if
  }
  }

Revision as of 00:09, 7 February 2017

Scroll down for Multi-Morph Macro

//Rangery by Noivad
f3 call Shieldstone //modify this to your chosen hotkey
shift-f3 call UnShieldstone //modify this to your chosen hotkey

f4 call Heartwood //modify these to your chosen hotkey/etc
wheelup call Heartwood //works with trackpads that support 2 finger touch up

wheeldown call Heartslow //works with trackpads that support 2 finger touch down

f6 call reflection //modify this to your chosen hotkey

set shso 0

Shieldstone
{
if shso == 1
	goto OFF
end if

if @my.finger_item == "Shieldstone"
	goto ON
end if

label equip
"/equip shieldstone\r"

label ON
"/useitem finger\r"
pause 1

label CHECK
if @env.textLog >= "Your Shieldstone goes inert"
	goto equip
end if

label TIMER
pause 1
setglobal shso 1
goto END

label OFF
"/useitem finger /cancel\r"
setglobal shso 0
label END
}

UnShieldstone
{
"/unequip finger\r"
setglobal shso 0
}

Heartwood
{
if @my.left_item != "Heartwood Charm"
	"/equip heartwood\r"
end if
"/useitem left\r"
}

Heartslow
{
	"/useitem heartwood charm /slow\r"
}
 
"/judge" call judge

judge
{
"/useitem belt /judge " @text "\r"
}

"/reflect" call reflection

reflection
{
"/useitem belt /reflect\r"
}

"/be"
{
"/usei belt /befriend\r"
"/pose bless\r"
}

"/con"
{
"/usei belt /control\r"
"/pose sal\r"
}

"/dis"
{
"dismissing\r"
"/pose surprised\r"
pause 3
"/usei belt /dismiss\r"
}

"/unm" call unmorph

unmorph
{
	"/useitem /belt /return\r"
}

 //Alternate Simple 1 creature morph
click3 call morph
f11	call morph

set morphed 0
morph
{
	if morphed == 0
		"/useitem belt /shape *creature name* \r" //insert creature name
		setglobal morphed 1
	else
		"/useitem belt /return \r"
		setglobal morphed 0
	end if
}

Multi-Creature Morph Macro

I recommend mapping the increment/decrement to your scroll wheel. this is usable with Rangery if you delete/comment out the morph macro from Rangery

f8 call incrementMorph 
f9 call decrementMorph
 /**** Morphing — note falls & spirit runouts need to be scanned for to "setglobal morphed 0" if @textLog < "you return to your normal form"****/

set morphed 0 //[DO NOT ALTER] toggle used to tell if you are morphed "1" or not "0" 

set totalMorphs 1 //set this to the total number of morphs—notice
set morph[1] "Sky Bison" //change and add your morphs
set morph[2] ""
set morph[3] ""
set morph[4] ""
set morph[5] ""
set morph[6] ""

set mindex 1 // "Morph Index"
set verbose 1

morph
{
	if morphed == 0
		"/useitem belt /shape " morph[mindex] "\r"
		setglobal morphed 1
	else
		"/useitem belt /return \r"
		setglobal morphed 0
	end if
}

incrementMorph
{
if mindex == totalMorphs
	setglobal mindex 1
else 
	setglobal mindex + 1
end if
call whichMorph
}

decrementMorph
{
if mindex == 1
	setglobal mindex totalMorphs
else 
	setglobal mindex - 1
end if
call whichMorph
}

whichMorph
{
if verbose == 1
	message "*Morph Selected:" morph[mindex]
end if
}