May I request some script?
I am requesting an ice combo that makes Link slide as far as possible in the direction he is traveling. The motion can only be stopped by Link crashing into an object or Link leaving the ice. Such a combo would be useful in puzzles.
Ice Combos
Started by
Disdyakis Triacontahedron
, Aug 08 2010 01:16 AM
6 replies to this topic
#1
Posted 08 August 2010 - 01:16 AM
#2
Posted 17 August 2010 - 02:51 AM
UPDATE/BUMP: I will be using the standard "slow walk" ice as a graphic.
#3
Posted 21 August 2010 - 12:40 AM
EDIT: I would like pushed blocks on the surface of ice combos to slide as far as possible in the given direction, as well. Is that possible?
#4
Posted 21 August 2010 - 02:22 AM
#5
Posted 21 August 2010 - 02:41 AM
Gotta love scripts written in build 311!
First draft should allow sliding across ice that has no solid combos in the middle of it, and is surrounded by walkable combos.
If it works, I'll start to add the more complicated parts.
CODE
const int CF_ICE = 98; //CF_SCRIPT1
global script Active
{
void run()
{
while(true)
{
Ice();
Waitframe();
}
}
}
bool onIce = false;
void Ice()
{
if(!ComboFI(Link->X + 8, Link->Y + 8, CF_ICE))
{
if(onIce)
{
onIce = false;
}
return;
}
if(!onIce)
{
onIce = true;
}
if(Link->Dir == DIR_UP) Link->Y -= 2;
else if(Link->Dir == DIR_DOWN) Link->Y += 2;
else if(Link->Dir == DIR_LEFT) Link->X -= 2;
else if(Link->Dir == DIR_RIGHT) Link->X += 2;
NoAction();
}
global script Active
{
void run()
{
while(true)
{
Ice();
Waitframe();
}
}
}
bool onIce = false;
void Ice()
{
if(!ComboFI(Link->X + 8, Link->Y + 8, CF_ICE))
{
if(onIce)
{
onIce = false;
}
return;
}
if(!onIce)
{
onIce = true;
}
if(Link->Dir == DIR_UP) Link->Y -= 2;
else if(Link->Dir == DIR_DOWN) Link->Y += 2;
else if(Link->Dir == DIR_LEFT) Link->X -= 2;
else if(Link->Dir == DIR_RIGHT) Link->X += 2;
NoAction();
}
First draft should allow sliding across ice that has no solid combos in the middle of it, and is surrounded by walkable combos.
If it works, I'll start to add the more complicated parts.
#6
Posted 26 August 2010 - 03:52 PM
This script would go perfectly with my ice wand, once I finish it
I'd like to see the end result. Also, for the "Drifting", you could use a counter and decrement it by .1 per frame. Probably not clear in the least bit but... I'm not sure how to explain it. Let me get my thinker going and I'll try and explain better XD
I'd like to see the end result. Also, for the "Drifting", you could use a counter and decrement it by .1 per frame. Probably not clear in the least bit but... I'm not sure how to explain it. Let me get my thinker going and I'll try and explain better XD
#7
Posted 27 August 2010 - 05:48 AM
Oh yeah, drifting ice would be a lot less fun to do.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users