Louis T Steinhil 4 Posted August 7, 2013 Is it possible that a function checks if it is night then an additional bonus on an item will trigger? if(night == 1){ move speed + 20%}; something like that... just a pseudo code* Quote Share this post Link to post Share on other sites
0 Mumbles 193 Posted August 7, 2013 The correct syntax would be isnight(). if (isnight()) bonus bSpeedRate, 20; Quote Share this post Link to post Share on other sites
0 Louis T Steinhil 4 Posted August 7, 2013 oh thank you for the reply, but is it possible to incorporate that syntax inside the item script or maybe will use a function? Quote Share this post Link to post Share on other sites
0 Mumbles 193 Posted August 7, 2013 oh thank you for the reply, but is it possible to incorporate that syntax inside the item script or maybe will use a function? Yes, it is possible; give it a try. If you need a more elaborate script to run, you might wanna use a callfunc after the expression is found true. Quote Share this post Link to post Share on other sites
Is it possible that a function checks if it is night then an additional bonus on an item will trigger?
something like that... just a pseudo code*
Share this post
Link to post
Share on other sites