More random script fun
As long as there are mods, makers will have questions! Thanks to all in advance if you could help sort out this dilema:
I figured out how to make Dink start with the "God Sword of Doom", and I even got him to say something whenever he equips it. :o Instead of just one thing, however, I'd like him to say a few random things every time he pulls it out. The code I tried hasn't worked:
void armmovie(void)
{
&pap = random(5, 1);
if (&pap == 1)
{
say("Ah, I have armed my God Sword of Doom! Mwahaha!", 1);
}
if (&pap == 2)
{
say("I love my God Sword of Doom!", 1);
}
if (&pap == 3)
{
say("Its time to kick ass and chew bubblegum!", );
wait(1000);
say("And I'm all outta gum!", 1);
}
if (&pap == 4)
{
say("Come get some!", 1);
}
if (&pap == 5)
{
say("Hiya!", 1);
}
}
I also have a script at the top of the page:
void main( void )
{
int &pap;
}
could anyone help me with this? or is it impossible?
Also, if anyone could help me in making a pushable object, I would be much grateful!
I looked at the script for the pushable rock in the Dink directory, but it didn't help much...
I figured out how to make Dink start with the "God Sword of Doom", and I even got him to say something whenever he equips it. :o Instead of just one thing, however, I'd like him to say a few random things every time he pulls it out. The code I tried hasn't worked:
void armmovie(void)
{
&pap = random(5, 1);
if (&pap == 1)
{
say("Ah, I have armed my God Sword of Doom! Mwahaha!", 1);
}
if (&pap == 2)
{
say("I love my God Sword of Doom!", 1);
}
if (&pap == 3)
{
say("Its time to kick ass and chew bubblegum!", );
wait(1000);
say("And I'm all outta gum!", 1);
}
if (&pap == 4)
{
say("Come get some!", 1);
}
if (&pap == 5)
{
say("Hiya!", 1);
}
}
I also have a script at the top of the page:
void main( void )
{
int &pap;
}
could anyone help me with this? or is it impossible?
Also, if anyone could help me in making a pushable object, I would be much grateful!
I looked at the script for the pushable rock in the Dink directory, but it didn't help much...