Reply to Re: Scripting Help
If you don't have an account, just leave the password field blank.
Touch script:
void main(void)
{
sp_touch_damage(¤t_sprite,-1);
}
void touch(void)
{
if (&story < 3)
{
say("Now way i'm not going there!",1);
}
}
To use visions... Well I don't like visions, but if you do plan to use them do it like this:
- Set the vision of the thing you want to be visible only when you choose to and give it a vision (not 0)
- In a script attached to the room set the vision, like when you've set the vision for the object to 5, do this:
void main(void)
{
&vision = 5;
}
And you should be fine, I do believe sprites with a vision need to be of the normal type, using background or invisible causes problems.
void main(void)
{
sp_touch_damage(¤t_sprite,-1);
}
void touch(void)
{
if (&story < 3)
{
say("Now way i'm not going there!",1);
}
}
To use visions... Well I don't like visions, but if you do plan to use them do it like this:
- Set the vision of the thing you want to be visible only when you choose to and give it a vision (not 0)
- In a script attached to the room set the vision, like when you've set the vision for the object to 5, do this:
void main(void)
{
&vision = 5;
}
And you should be fine, I do believe sprites with a vision need to be of the normal type, using background or invisible causes problems.