another moving problem
im having a problem with this script....
i want the guard to move but it doesnt the part where the problem is after: say_stop("`#arrrrrghhh fine u may pass becose of ur stupiddity.", ¤t_sprite);
PS- i know tkhat the diallogue is crappy
void main( void )
{
void talk( void )
{
freeze(1);
choice_start();
"Hello"
"wat r u doin there"
(&story == 0) "can u let me go in?"
(&story == 1) "could u move too?"
"Leave"
choice_end();
if (&result == 1)
{
freeze(1);
say_stop("Hello.", 1);
wait(200);
say_stop("`#Hello.", ¤t_sprite);
unfreeze(1);
}
if (&result == 2)
{
freeze(1);
say_stop("wat r u doin tehre", 1);
wait(200);
say_stop("`#to keep people like u out.", ¤t_sprite);
unfreeze(1);
}
if (&result == 3)
{
if (&story == 0)
{
unfreeze(1);
say_stop("can u let me go by?", 1);
wait(200);
say_stop("`#no u have to say the magic word?", ¤t_sprite);
wait(200);
say_stop("I have no idea.",1);
wait(200);
say_stop("`#Perhaps you could say please?", ¤t_sprite);
wait(200);
say_stop("What woman?", 1);
wait(200);
say_stop("`#ur realy dum!!.", ¤t_sprite);
wait(200);
say_stop("Sure, why not. I could use a walk.", 1);
wait(200);
say_stop("`#arrrrrghhh fine u may pass becose of ur stupiddity.", ¤t_sprite);
int &crap = sp(5);
move_stop(&crap, 4, 85, 1);
move_stop(&crap, 8, 45, 1);
say_stop("`#tehre u go.", ¤t_sprite);
wait(200);
say_stop("thanks!!", 1);
wait(200);
say_stop("`#<wat an idiot>.", ¤t_sprite);
}
}
unfreeze(1);
&story = 1;
if (&result == 3)
{
if (&story == 1)
{
say_stop("can u move too??", 1);
wait(200);
say_stop("`#sure", ¤t_sprite);
wait(200);
move_stop(¤t_sprite, 4, 49, 1);
move_stop(¤t_sprite, 8, 45, 1);
unfreeze(1);
}
}
}
}
i want the guard to move but it doesnt the part where the problem is after: say_stop("`#arrrrrghhh fine u may pass becose of ur stupiddity.", ¤t_sprite);
PS- i know tkhat the diallogue is crappy
void main( void )
{
void talk( void )
{
freeze(1);
choice_start();
"Hello"
"wat r u doin there"
(&story == 0) "can u let me go in?"
(&story == 1) "could u move too?"
"Leave"
choice_end();
if (&result == 1)
{
freeze(1);
say_stop("Hello.", 1);
wait(200);
say_stop("`#Hello.", ¤t_sprite);
unfreeze(1);
}
if (&result == 2)
{
freeze(1);
say_stop("wat r u doin tehre", 1);
wait(200);
say_stop("`#to keep people like u out.", ¤t_sprite);
unfreeze(1);
}
if (&result == 3)
{
if (&story == 0)
{
unfreeze(1);
say_stop("can u let me go by?", 1);
wait(200);
say_stop("`#no u have to say the magic word?", ¤t_sprite);
wait(200);
say_stop("I have no idea.",1);
wait(200);
say_stop("`#Perhaps you could say please?", ¤t_sprite);
wait(200);
say_stop("What woman?", 1);
wait(200);
say_stop("`#ur realy dum!!.", ¤t_sprite);
wait(200);
say_stop("Sure, why not. I could use a walk.", 1);
wait(200);
say_stop("`#arrrrrghhh fine u may pass becose of ur stupiddity.", ¤t_sprite);
int &crap = sp(5);
move_stop(&crap, 4, 85, 1);
move_stop(&crap, 8, 45, 1);
say_stop("`#tehre u go.", ¤t_sprite);
wait(200);
say_stop("thanks!!", 1);
wait(200);
say_stop("`#<wat an idiot>.", ¤t_sprite);
}
}
unfreeze(1);
&story = 1;
if (&result == 3)
{
if (&story == 1)
{
say_stop("can u move too??", 1);
wait(200);
say_stop("`#sure", ¤t_sprite);
wait(200);
move_stop(¤t_sprite, 4, 49, 1);
move_stop(¤t_sprite, 8, 45, 1);
unfreeze(1);
}
}
}
}
void main( void )
{
//nothing here, just leave it out completely, or at least use a closing bracket
}
void talk( void )
{
//dialogue with choices and all that...
}
Now beware, you've made a mistake with your choice things. Let's take a closer look:
choice_start();
"Hello"
"wat r u doin there"
(&story == 0) "can u let me go in?"
(&story == 1) "could u move too?"
"Leave"
choice_end();
You added two
if (&result == 3)
lines in it. The answer, don't.
"Hello" --> &result is 1
"wat r u doin there" --> &result is 2
"can u let me go in?" --> &result is 3
"could u move too?" --> &result is 4
"Leave" --> &result is 5
The value of &result depends on the choice if all choices would be visible, so if all the conditions are true.
Fix these things first, and then see if it works
{
//nothing here, just leave it out completely, or at least use a closing bracket
}
void talk( void )
{
//dialogue with choices and all that...
}
Now beware, you've made a mistake with your choice things. Let's take a closer look:
choice_start();
"Hello"
"wat r u doin there"
(&story == 0) "can u let me go in?"
(&story == 1) "could u move too?"
"Leave"
choice_end();
You added two
if (&result == 3)
lines in it. The answer, don't.
"Hello" --> &result is 1
"wat r u doin there" --> &result is 2
"can u let me go in?" --> &result is 3
"could u move too?" --> &result is 4
"Leave" --> &result is 5
The value of &result depends on the choice if all choices would be visible, so if all the conditions are true.
Fix these things first, and then see if it works

Okay, this should be pretty easy. Get rid of int &crap = sp(5);, as it is completely unnecessary (and generally a pretty bad way to do things).
Change
move_stop(&crap, 4, 85, 1);
move_stop(&crap, 8, 45, 1);
to
move_stop(¤t_sprite, 4, 85, 1);
move_stop(¤t_sprite, 8, 45, 1);
Change
move_stop(&crap, 4, 85, 1);
move_stop(&crap, 8, 45, 1);
to
move_stop(¤t_sprite, 4, 85, 1);
move_stop(¤t_sprite, 8, 45, 1);
I did both things but didnt work, this is wat the script looks like now,
note- desided to show the script cus i wanted to know if i did the rite changes
void main( void )
{
void talk( void )
{
freeze(1);
choice_start();
"Hello"
"wat r u doin there"
(&story == 0) "can u let me go in?"
(&story == 1) "could u move too?"
"Leave"
choice_end();
if (&result == 1)
{
freeze(1);
say_stop("Hello.", 1);
wait(200);
say_stop("`#Hello.", ¤t_sprite);
unfreeze(1);
}
if (&result == 2)
{
freeze(1);
say_stop("wat r u doin tehre", 1);
wait(200);
say_stop("`#to keep people like u out.", ¤t_sprite);
unfreeze(1);
}
if (&result == 3)
{
if (&story == 0)
{
unfreeze(1);
say_stop("can u let me go by?", 1);
wait(200);
say_stop("`#no u have to say the magic word?", ¤t_sprite);
wait(200);
say_stop("I have no idea.",1);
wait(200);
say_stop("`#Perhaps you could say please?", ¤t_sprite);
wait(200);
say_stop("What woman?", 1);
wait(200);
say_stop("`#ur realy dum!!.", ¤t_sprite);
wait(200);
say_stop("Sure, why not. I could use a walk.", 1);
wait(200);
say_stop("`#arrrrrghhh fine u may pass becose of ur stupiddity.", ¤t_sprite);
move_stop(¤t_sprite, 4, 85, 1);
move_stop(¤t_sprite, 8, 45, 1);
say_stop("`#tehre u go.", ¤t_sprite);
wait(200);
say_stop("thanks!!", 1);
wait(200);
say_stop("`#<wat an idiot>.", ¤t_sprite);
}
}
unfreeze(1);
&story = 1;
if (&result == 4)
{
if (&story == 1)
{
say_stop("can u move too??", 1);
wait(200);
say_stop("`#sure", ¤t_sprite);
wait(200);
move_stop(¤t_sprite, 4, 49, 1);
move_stop(¤t_sprite, 8, 45, 1);
unfreeze(1);
}
}
}
}
note- desided to show the script cus i wanted to know if i did the rite changes
void main( void )
{
void talk( void )
{
freeze(1);
choice_start();
"Hello"
"wat r u doin there"
(&story == 0) "can u let me go in?"
(&story == 1) "could u move too?"
"Leave"
choice_end();
if (&result == 1)
{
freeze(1);
say_stop("Hello.", 1);
wait(200);
say_stop("`#Hello.", ¤t_sprite);
unfreeze(1);
}
if (&result == 2)
{
freeze(1);
say_stop("wat r u doin tehre", 1);
wait(200);
say_stop("`#to keep people like u out.", ¤t_sprite);
unfreeze(1);
}
if (&result == 3)
{
if (&story == 0)
{
unfreeze(1);
say_stop("can u let me go by?", 1);
wait(200);
say_stop("`#no u have to say the magic word?", ¤t_sprite);
wait(200);
say_stop("I have no idea.",1);
wait(200);
say_stop("`#Perhaps you could say please?", ¤t_sprite);
wait(200);
say_stop("What woman?", 1);
wait(200);
say_stop("`#ur realy dum!!.", ¤t_sprite);
wait(200);
say_stop("Sure, why not. I could use a walk.", 1);
wait(200);
say_stop("`#arrrrrghhh fine u may pass becose of ur stupiddity.", ¤t_sprite);
move_stop(¤t_sprite, 4, 85, 1);
move_stop(¤t_sprite, 8, 45, 1);
say_stop("`#tehre u go.", ¤t_sprite);
wait(200);
say_stop("thanks!!", 1);
wait(200);
say_stop("`#<wat an idiot>.", ¤t_sprite);
}
}
unfreeze(1);
&story = 1;
if (&result == 4)
{
if (&story == 1)
{
say_stop("can u move too??", 1);
wait(200);
say_stop("`#sure", ¤t_sprite);
wait(200);
move_stop(¤t_sprite, 4, 49, 1);
move_stop(¤t_sprite, 8, 45, 1);
unfreeze(1);
}
}
}
}
You don't need the &story checks within the &result checks, but they shouldn't be causing the problem. Next up, I still see the void main( void ). Get rid of it. You shouldn't nest two procedures (things like void main( void ), void talk( void ), etc). In your case, the talk procedure (void talk( void )) is inside the main procedure (void main( void )).
By the way, what is
unfreeze(1);
&story = 1;
doing between result 3 and 4?
Meh, except for those things, I see no real scripting error just now.
By the way, what is
unfreeze(1);
&story = 1;
doing between result 3 and 4?
Meh, except for those things, I see no real scripting error just now.
The guy doesn't have sp_base_walk(); or sp_speed();
Without the latter he won't move at all, and without the first he won't have a walk animation.
Without the latter he won't move at all, and without the first he won't have a walk animation.
to scratcher,
but the sprite i want to move is a sprite i made in the editor so why would i need to add that
update!!
i figured it out thanks scratcher, i didnt add the base walk and speed in the editor
thank u every one for the input
but the sprite i want to move is a sprite i made in the editor so why would i need to add that
update!!
i figured it out thanks scratcher, i didnt add the base walk and speed in the editor

another problem,
i got the people to move but when they move there hard box stays where it
i got the people to move but when they move there hard box stays where it
ok did it but it didn't work should it look like this??....................
move_stop(¤t_sprite, 4, 85, 1);
move_stop(¤t_sprite, 8, 45, 1);
Put draw_hard_sprite(¤t_sprite);
move_stop(¤t_sprite, 4, 85, 1);
move_stop(¤t_sprite, 8, 45, 1);
Put draw_hard_sprite(¤t_sprite);
You don't actually put the word "Put," heh. it's just "draw_hard_sprite(¤t_sprite);" without quotations.
lol im and idiot
thnx
by the way i am a disgrace to this website
thnx
by the way i am a disgrace to this website