The Dink Network

Reply to Re: Bookshelf

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
October 30th 2012, 04:04 AM
slimeg.gif
metatarasal
Bard He/Him Netherlands
I object 
I'll answer number 3 right now as it is relatively unanswered compared to the other two.

You can check whatever weapon has hit your object by:

int &var = compare_weapon("<script>");

This will return 1 when the object was hit by a weapon with the script <script>. So, for example when Dink would need to hit something with his fist <script> would be item-fst. You can use the &story variable to check if the story requirement is met to get something like this:

void hit(void)
{
if (&story == 2)
{
int &var = compare_weapon("item-fst");
if (&var == 1)
{
//Do whatever you want here...
&story += 1;
}
}
}


This script would then be attached to the object Dink has to hit with his fists.

EDIT: Also, feel free to ask in this thread about all your questions. I won't always have time to answer every question by PM, but I don't mind answering some questions here from time to time.