Scripting
By ikslm, on October 11 2006 at 11:27 :: #26 :: rss
Script convertor almost finished
I have almost finished the script convertor only some minor details are to be done. This convertor will convert DK scripts to LUA scripts. Here's a sample of this conversion:
The original DK script:
IF_ACTION_POINT(2,PLAYER0)
if(player_good,thief == 0)
QUICK_OBJECTIVE(11,"The Heroes' castle lies out of reach on the far bank of the lava flow. Use bridges to connect your land to the north bank and seek out this nest of virtue.",player0)
TUTORIAL_FLASH_BUTTON(18, -1)
ROOM_AVAILABLE(PLAYER0,BRIDGE,1,1)
SET_TIMER(PLAYER_GOOD,TIMER1)
ENDIF
endif
And the converted one: (they look very similar, i'm happy about that
)
if ( action_point(2,player0) ) then
if ( get_value(player_good,thief ) == 0) ) then
quick_objective(11,"the heroes' castle lies out of reach on the far bank of the lava flow. use bridges to connect your land to the north bank and seek out this nest of virtue.",player0)
tutorial_flash_button(18, -1)
room_available(player0,bridge,1,1)
set_timer(player_good,timer1)
end
end
Comments
1. On October 23 2006 at 16:35, by Emblem
2. On October 23 2006 at 17:37, by IKSLM
Add a comment
Comments are unavailable for this article.