admin管理员组

文章数量:1532476

2024年1月21日发(作者:)

localgameData =gpGlobals:getGameDatalocalplayerRoles =gameData:getPlayerRoleslocalrgParty =gpGlobals:nequippedItem =wItem--------------------------------localbg_w,bg_h =_w,_hlocalsize =bg_w *bg_hbufBackground =ByteVector(size)palcommon:MKFDecompressChunk(bufBackground,size, EQUIPMENU_BACKGROUND_FBPNUM,fpFBP)localbufImage =ByteVector( 2048)--------------------------------localiCurrentPlayer =0localbSelectedColor =MENUITEM_COLOR_SELECTED_FIRSTlocaldwColorChangeTime =lua_GetTicks +( 600/MENUITEM_COLOR_SELECTED_TOTALNUM)------------------------------------------------------------------------------------localdwKeyPress-------------------------localdst,item,objlocalw,item_id,text,curr_flaglocalbColorwhiletruedowItem =nequippedItemitem =gameData:getObject(wItem):getItempalcommon:FBPBlitToSurface(bufBackground,gpScreen)dst =palcommon:MKFReadChunk(bufImage, 2048,p,fpBALL)ifdst >0thenpalcommon:RLEBlitToSurface(bufImage,gpScreen,palcommon:pal_XY( 16, 16))end

end--VIDEO_UpdateScreen(nil)--print('stop')--util:delay(1000000000)obj =rgParty:at(iCurrentPlayer)w =rRolefori =0,MAX_PLAYER_EQUIPMENTS doitem_id =playerRoles:getEquipmentItem(i,w)ifitem_id ==0thenelsetext =PAL_GetWord(item_id)PAL_DrawText(text,palcommon:pal_XY( 130, 11+i *22),MENUITEM_COLOR, TRUE, FALSE)endend----------------------------PAL_DrawNumber(PAL_GetPlayerAttackStrength(w), 4, palcommon:pal_XY( 260, 14),kNumColorCyan, kNumAlignRight)PAL_DrawNumber(PAL_GetPlayerMagicStrength(w), 4, palcommon:pal_XY( 260, 36),kNumColorCyan, kNumAlignRight)PAL_DrawNumber(PAL_GetPlayerDefense(w), 4, palcommon:pal_XY( 260, 58),kNumColorCyan, kNumAlignRight)PAL_DrawNumber(PAL_GetPlayerDexterity(w), 4, palcommon:pal_XY( 260, 80),kNumColorCyan, kNumAlignRight)PAL_DrawNumber(PAL_GetPlayerFleeRate(w), 4, palcommon:pal_XY( 260, 102),kNumColorCyan, kNumAlignRight)-----------------------------------PAL_CreateBox(palcommon:pal_XY( 2, 95), rtyMemberIndex, 2, 0, FALSE)

-----------------------------fori =0,rtyMemberIndex doobj =rgParty:at(i)w =rRolecurr_flag =(kItemFlagEquipableByPlayerRole_First,w)ifiCurrentPlayer ==i then--curr (,curr_flag ) ==0thenbColor =MENUITEM_COLOR_SELECTED_INACTIVEelsebColor =(,curr_flag ) ==0thenbColor =MENUITEM_COLOR_INACTIVEelsebColor =MENUITEM_COLORendendPAL_DrawText(PAL_GetWord(playerRoles:get_rgwName(w)),palcommon:pal_XY( 15, 108+18*i), bColor, TRUE, FALSE);end-- draw select equip item name and countifwItem ==0thenelsePAL_DrawText(PAL_GetWord(wItem), palcommon:pal_XY( 5, 70),MENUITEM_COLOR_CONFIRMED, TRUE, FALSE);PAL_DrawNumber(PAL_GetItemAmount(wItem), 2, palcommon:pal_XY( 65, 73),

kNumColorCyan, kNumAlignRight);end--updateVIDEO_UpdateScreen( nil)--accept inputPAL_ClearKeyStateutil:delay( 1)localitem,obj,curr_flagprint( 'run in PAL_EquipItemMenuV20001')whiletruedo--print('run in PAL_EquipItemMenuV20002')PAL_ProcessEvent--print('run in PAL_EquipItemMenuV200021',dwColorChangeTime)--change the highlight coloriflua_GetTicks >dwColorChangeTime thenifbSelectedColor +1>=(MENUITEM_COLOR_SELECTED_FIRST +MENUITEM_COLOR_SELECTED_TOTALNUM) thenbSelectedColor =MENUITEM_COLOR_SELECTED_FIRSTelsebSelectedColor =bSelectedColor +1enddwColorChangeTime =lua_GetTicks +( 600/MENUITEM_COLOR_SELECTED_TOTALNUM)--Redraw the selected item if needed.w =rgParty:at(iCurrentPlayer).wPlayerRoleitem =gameData:getObject(wItem):getItemcurr_flag =(kItemFlagEquipableByPlayerRole_First,w)(,curr_flag ) ==0then

(,curr_flag ) ==0thenelsePAL_DrawText(PAL_GetWord(playerRoles:get_rgwName(w)),palcommon:pal_XY( 15, 108+18*iCurrentPlayer), bSelectedColor, TRUE, TRUE)endend--print('run in PAL_EquipItemMenuV200022')ifg_ress ==0thenelseprint( 'run in PAL_EquipItemMenuV200024')breakend-- print('run in PAL_EquipItemMenuV200023')util:delay( 1)endprint( 'run in PAL_EquipItemMenuV20007')--print('stop')--util:delay(1000000000)ifwItem ==0thenreturnendprint( 'run in PAL_EquipItemMenuV20008')dwKeyPress =g_(dwKeyPress,(kKeyUp ,kKeyLeft ) ) ~=0theniCurrentPlayer =iCurrentPlayer -1ifiCurrentPlayer <0theniCurrentPlayer =0

endprint( 'run in PAL_EquipItemMenuV20009')(dwKeyPress,(kKeyDown ,kKeyRight ) ) ~=0theniCurrentPlayer =iCurrentPlayer +1ifiCurrentPlayer >rtyMemberIndex theniCurrentPlayer =rtyMemberIndexendprint( 'run in PAL_EquipItemMenuV200010')(dwKeyPress,kKeyMenu ) ~=0thenprint( 'run in PAL_EquipItemMenuV200011')(dwKeyPress,kKeySearch ) ~=0thenprint( 'run in PAL_EquipItemMenuV200012')obj =rgParty:at(iCurrentPlayer)item =gameData:getObject(wItem):getItemw =rRolecurr_flag =(kItemFlagEquipableByPlayerRole_First,w)print( 'run in PAL_EquipItemMenuV200013')(,curr_flag ) ==0thenelseprint( 'run in PAL_EquipItemMenuV200014')ip =PAL_RunTrigger(ip,rRole)endend

localgpGlobals =alslocalgameData =gpGlobals:getGameDatalocalplayerRoles =gameData:getPlayerRoleslocalrgParty =gpGlobals:getPartylocalexp =gpGlobals:getExp--------------------------------------------------------localrgEquipPos ={ { 190, 0}, { 248, 40}, { 252, 102}, { 202, 134}, { 142, 142}, { 82, 126} }localbg_w,bg_h =_w,_hlocalsize =bg_w *bg_hbufBackground =ByteVector(size)--STATUS_BACKGROUND_FBPNUMpalcommon:MKFDecompressChunk(bufBackground,size, EQUIPMENU_BACKGROUND_FBPNUM,fpFBP)localbufImage =ByteVector( 16384) --role image--------------------------------localwMaxPartyMemberIndex =rtyMemberIndexlocaliCurrent =0localobj,item,value,level,poslocalcurr_exp,oklocalwwhile(iCurrent >=0andiCurrent <=wMaxPartyMemberIndex ) doobj =rgParty:at(iCurrent)iPlayerRole =rRole--draw bgpalcommon:FBPBlitToSurface(bufBackground,gpScreen)--exp,level,hp,mp ...PAL_DrawText(PAL_GetWord(STATUS_LABEL_EXP),palcommon:pal_XY( 6, 6), MENUITEM_COLOR, TRUE,FALSE)PAL_DrawText(PAL_GetWord(STATUS_LABEL_LEVEL),palcommon:pal_XY( 6, 32), MENUITEM_COLOR, TRUE,

PAL_DrawText(PAL_GetWord(STATUS_LABEL_LEVEL),palcommon:pal_XY( 6, 32), MENUITEM_COLOR, TRUE,FALSE)PAL_DrawText(PAL_GetWord(STATUS_LABEL_HP),palcommon:pal_XY( 6, 54), MENUITEM_COLOR, TRUE,FALSE)PAL_DrawText(PAL_GetWord(STATUS_LABEL_MP),palcommon:pal_XY( 6, 76), MENUITEM_COLOR, TRUE,FALSE)PAL_DrawText(PAL_GetWord(STATUS_LABEL_ATTACKPOWER),palcommon:pal_XY( 6, 98),MENUITEM_COLOR, TRUE, FALSE)PAL_DrawText(PAL_GetWord(STATUS_LABEL_MAGICPOWER),palcommon:pal_XY( 6, 118),MENUITEM_COLOR, TRUE, FALSE)PAL_DrawText(PAL_GetWord(STATUS_LABEL_RESISTANCE),palcommon:pal_XY( 6, 138), MENUITEM_COLOR,TRUE, FALSE)PAL_DrawText(PAL_GetWord(STATUS_LABEL_DEXTERITY),palcommon:pal_XY( 6, 158), MENUITEM_COLOR,TRUE, FALSE)PAL_DrawText(PAL_GetWord(STATUS_LABEL_FLEERATE),palcommon:pal_XY( 6, 178), MENUITEM_COLOR,TRUE, FALSE)-- player namePAL_DrawText(PAL_GetWord(playerRoles:get_rgwName(iPlayerRole)),palcommon:pal_XY( 110, 8), MENUITEM_COLOR_CONFIRMED, TRUE, FALSE)----------------------------------curr_exp =exp:getExpItem( "rgPrimaryExp",iPlayerRole)PAL_DrawNumber(curr_, 5,palcommon:pal_XY( 58, 6), kNumColorYellow, kNumAlignRight);level =playerRoles:get_rgwLevel(iPlayerRole)value =gameData:getLevelUpExp(level)PAL_DrawNumber(value , 5, palcommon:pal_XY( 58, 15), kNumColorCyan, kNumAlignRight);PAL_DrawNumber(level, 2,palcommon:pal_XY( 54, 35), kNumColorYellow, kNumAlignRight);palcommon:pal_RLEBlitToSurface(palcommon:pal_SpriteGetFrame(gpSpriteUI, SPRITENUM_SLASH),gpScreen,palcommon:pal_XY( 65, 58))palcommon:pal_RLEBlitToSurface(

palcommon:pal_RLEBlitToSurface(palcommon:pal_SpriteGetFrame(gpSpriteUI, SPRITENUM_SLASH),gpScreen,palcommon:pal_XY( 65, 80))PAL_DrawNumber(playerRoles:get_rgwHP(iPlayerRole), 4, palcommon:pal_XY( 42, 56),kNumColorYellow, kNumAlignRight);PAL_DrawNumber(playerRoles:get_rgwMaxHP(iPlayerRole), 4, palcommon:pal_XY( 63, 61),kNumColorBlue, kNumAlignRight);PAL_DrawNumber(playerRoles:get_rgwMP(iPlayerRole), 4, palcommon:pal_XY( 42, 78),kNumColorYellow, kNumAlignRight);PAL_DrawNumber(playerRoles:get_rgwMaxMP(iPlayerRole), 4, palcommon:pal_XY( 63, 83),kNumColorBlue, kNumAlignRight);PAL_DrawNumber(PAL_GetPlayerAttackStrength(iPlayerRole), 4,palcommon:pal_XY( 42, 102), kNumColorYellow, kNumAlignRight);PAL_DrawNumber(PAL_GetPlayerMagicStrength(iPlayerRole), 4,palcommon:pal_XY( 42, 122), kNumColorYellow, kNumAlignRight);PAL_DrawNumber(PAL_GetPlayerDefense(iPlayerRole), 4,palcommon:pal_XY( 42, 142), kNumColorYellow, kNumAlignRight);PAL_DrawNumber(PAL_GetPlayerDexterity(iPlayerRole), 4,palcommon:pal_XY( 42, 162), kNumColorYellow, kNumAlignRight);PAL_DrawNumber(PAL_GetPlayerFleeRate(iPlayerRole), 4,palcommon:pal_XY( 42, 182), kNumColorYellow, kNumAlignRight);fori =0,MAX_PLAYER_EQUIPMENTS -1dow =playerRoles:getEquipmentItem(i,iPlayerRole)ifw ==0thenelseitem =gameData:getObject(w):getItemok =palcommon:MKFReadChunk(bufImage, 16384,p,fpBALL)

ifok >0thenpos =rgEquipPos[i +1]--draw imagepalcommon:RLEBlitToSurface(bufImage,gpScreen,palcommon:pal_XY(pos[ 1],pos[ 2]))--draw textPAL_DrawText(PAL_GetWord(w),palcommon:pal_XY(pos[ 1] +5,pos[ 2] +38),STATUS_COLOR_EQUIPMENT,TRUE,FALSE)endendendok =palcommon:MKFReadChunk(bufImage, 16384,playerRoles:get_rgwAvatar(iPlayerRole),fpRGM)ifok >0thenpalcommon:RLEBlitToSurface(bufImage, gpScreen, palcommon:pal_XY( 110, 30))end---draw all poisonsy =58fori =0,MAX_POISONS -1dow =gpGlobals:getPoisonStatusItem(i,iCurrent).wPoisonIDitem =gameData:getObject(w):getPoisonifw ~=nLevel <=3thenPAL_DrawText(PAL_GetWord(w),palcommon:pal_XY( 185, y), +10, TRUE, FALSE)-------y =y +18

endendVIDEO_UpdateScreen( nil)PAL_ClearKeyStatewhiletruedoutil:delay( 1)--PAL_ProcessEvent-------------------------------------dwKeyPress =g_(dwKeyPress,kKeyMenu) ~=0theniCurrent =-(dwKeyPress,( kKeyLeft,kKeyUp) ) ~=0theniCurrent =iCurrent -(dwKeyPress,(kKeyRight,kKeyDown,kKeySearch) ) ~=0theniCurrent =iCurrent +1breakendendend--VIDEO_UpdateScreen(nil)end更新PAL_SearchV2部分,这下 菜单操作的部分基本完成了。localfunctionName ='PAL_SearchV2'class_t[functionName] =function(self,d,small_env)

localitem_menu_helper =_menu_helperlocalpalcommon =monlocalmenu_helper =_helperlocalbit =alutil =calgpGlobals =alslocalgameData =gpGlobals:getGameDatalocalrgParty =gpGlobals:getParty------------------------------localrgPos ={}localx, y, xOffset, yOffsetlocalviewport,partyoffset =rt,ffsetx =palcommon:get_X(viewport) +palcommon:get_X(partyoffset)y =palcommon:get_Y(viewport) +palcommon:get_Y(partyoffset)print(( "%x,%x,%x,%x",x,y,viewport,partyoffset))localwPartyDirection =Direction--logic error--if (wPartyDirection,kDirNorth,kDirEast) FALSE thenifwPartyDirection ==kDirNorthorwPartyDirection ==kDirEast thenxOffset =16elsexOffset =-16end--logic error--if (wPartyDirection,kDirEast,kDirSouth)~=FALSE thenifwPartyDirection ==kDirEast

orwPartyDirection ==kDirSouth thenyOffset =8elseyOffset =-8endrgPos[ 0] =palcommon:pal_XY(x,y)--get 4 player pos in the partyfori =0, 3dorgPos[i *3+1] =palcommon:pal_XY(x +xOffset, y +yOffset)rgPos[i *3+2] =palcommon:pal_XY(x, y +yOffset *2)rgPos[i *3+3] =palcommon:pal_XY(x +xOffset, y)x =x +xOffsety =y +yOffsetend-------------------localposlocaldx, dy, dhlocalex, ey, ehlocalp--------------------localwMaxPartyMemberIndex =rtyMemberIndexlocalwNumScene,wEventObjectIndex,curr_scene,next_sceneprint( 'run PAL_SearchV2 004')fori =0, 12dopos =rgPos[i]dx =( palcommon:get_X(pos) /32)dy =(palcommon:get_Y(pos) /16)

dy =(palcommon:get_Y(pos) /16)ifpalcommon:get_X(pos) %32==0thendh =0elsedh =1end--loop through all event objects-----------------------------wNumScene =enecurr_scene =gameData:getScene(wNumScene -1)next_scene =gameData:getScene(wNumScene)--wEventObjectIndex=curr_ObjectIndexfork =curr_ObjectIndex,next_ObjectIndex -1do---------------------------------------p =gameData:getLprgEventObject(k)ex =(p.x /32)ey =(p.y /16)ifp.x %32~=0theneh =1elseeh =0end--[[print(i,k,(<=0),((dx - ex)<=0.5 ),((dy - ey)<=0.5) ,dx,ex,dy,ey)

]]if( <=0) or(erMode >=kTriggerTouchNear) or(erMode *6-4ntFrameNum ntFrameNum =tion =(Direction +2) %4forl =0,wMaxPartyMemberIndex do--All party members should face the event objectrgParty:at(l).wFrame =wPartyDirection *3endPAL_MakeSceneVIDEO_UpdateScreen( nil)end--Execute theprint( 'er=',er)er =PAL_RunTrigger(er, k +1)--Clear inputs and delay for a short timeutil:delay( 50)PAL_ClearKeyStateprint( 'run PAL_SearchV2 stop')

--print('PAL_GameUpdateV2 00 zero')localitem_menu_helper =_menu_helperlocalpalcommon =monlocalmenu_helper =_helperlocalscene_helper =_helperlocalbit =alutil =calgpGlobals =alslocalgameData =gpGlobals:getGameDatalocalrgParty =gpGlobals:getParty------------------------------localt =small_env or{}localfTrigger =erlocalwEventObjectID, wDir,p,cnt -- LPEVENTOBJECT p;localcurr_scene,next_scenelocalwNumScenelocalviewport,partyoffset,dx,dy,px,pylocalxOffset,yOffsetlocalpos,x,y--print('PAL_GameUpdateV2 001')iffTrigger ingScene ~=FALSE ingScene =FALSEcnt =ene -1curr_scene =gameData:getScene(cnt)curr_er =PAL_RunTrigger( curr_er, 0xFFFF)ingScene ~=FALSE

tart ~=FALSE then-- Don't go further as we're switching to another scenereturnendPAL_ClearKeyStatePAL_MakeSceneend--print('PAL_GameUpdateV2 002')-- Update the vanish time for all event objectsforwEventObjectID =0,Object -1dop =gameData:getLprgEventObject(wEventObjectID)hTime ~=hTime

next_ObjectIndex do----------------------------------------error before is no -1p =gameData:getLprgEventObject(wEventObjectID -1)-- print('PAL_GameUpdateV2 00321')hTime ==0then-- print('PAL_GameUpdateV2 0033')viewport =rtpartyoffset =ffsetdx =palcommon:get_X(viewport)dy =palcommon:get_Y(viewport)px =palcommon:get_X(partyoffset)py =palcommon:get_Y(partyoffset)--print('PAL_GameUpdateV2 004') <0thenifp.x dx +320orp.y dy +320then--error py> =()ntFrameNum =0--print('PAL_GameUpdateV2 0000000')end--This event object can be triggered without manually >erMode >=kTriggerTouchNear (dx +px -p.x) +(dy +py -p.y) *2

(dx +px -p.x) +(dy +py -p.y) *2<((erMode -kTriggerTouchNear) *32+16) then--Player is in the trigger zone--print('PAL_GameUpdateV2 006')eFrames ==ntFrameNum =0xOffset =dx +px -et =dy +py -fset >0thenifyOffset >tion =tion =kDirNorthendelseifyOffset >tion =tion =kDirWestendend-- Redraw the scenePAL_UpdatePartyGestures(FALSE)PAL_MakeSceneVIDEO_UpdateScreen( nil)-- print('PAL_GameUpdateV2 007')end--Execute the

--print(("%d 0x%x",er,wEventObjectID ),)er =PAL_RunTrigger(er,wEventObjectID)--print('run ------------0001b',er,wEventObjectID ,)PAL_ClearKeyState-- print('PAL_GameUpdateV2 008')ingScene ~=tart ~=FALSE then-- Don't go further as we're switching to another scenereturnendendelse--if wEventObjectID==16 then-- print(,erMode>= kTriggerTouchNear)--end--else print(-- wEventObjectID,-- >0, erMode>= kTriggerTouchNear,-- (dx+px -p.x) +(dy+py-p.y)*2 ,-- (erMode-kTriggerTouchNear* 32 + 16)-- )endelse--continueendendend

--print('PAL_GameUpdateV2 009')--Run auto for each event objectswNumScene =enecurr_scene =gameData:getScene(wNumScene -1)next_scene =gameData:getScene(wNumScene)localwOnEnterforwEventObjectID =curr_ObjectIndex +1,next_ObjectIndex do-----------------------------------------------p =gameData:getLprgEventObject(wEventObjectID -1)--print('PAL_GameUpdateV2 0010') >hTime ==0then--print(wEventObjectID,p.x,p.y,)wOnEnter =fwOnEnter ~=0then--print('PAL_GameUpdateV2 00102',wOnEnter, wEventObjectID)--print('run ------------00011',) =PAL_RunAuto(wOnEnter, wEventObjectID)--print('run ------------00012', )--print('PAL_GameUpdateV2 001021')ingScene ~=tart ~=FALSE then--print('PAL_GameUpdateV2 00103')-- Don't go further on scene switching ,look this changed wordreturnendend

endend--print('PAL_GameUpdateV2 0010')--Check if the player is in the wayviewport =rtpartyoffset =ffsetdx =palcommon:get_X(viewport)dy =palcommon:get_Y(viewport)px =palcommon:get_X(partyoffset)py =palcommon:get_Y(partyoffset)iffTrigger ~= >=eNum ~=(p.x -dx -px) +(p.y -dy -py) *2<=12then--Player is in the way, try to move a step------------------wDir =(tion) %4--print('PAL_GameUpdateV2 00111k')fori =0, 4-1dox =palcommon:get_X(rt) -palcommon:get_X(ffset)y =palcommon:get_Y(rt) -palcommon:get_Y(ffset)ifwDir ==kDirWest orwDir ==kDirSouth thenx =x -16elsex =x +16endifwDir ==kDirWest orwDir ==kDirNorth theny =y -16elsey =y +16

localpalcommon =monlocalmenu_helper =_helperlocalbit =alutil =calgpGlobals =alslocalgameData =gpGlobals:getGameDatalocalrgParty =gpGlobals:getPartylocalg_InputState =d.g_InputState------------------------------localt =small_env or{}--local fTrigger=er--------------------------------------localxSource, ySource, xTarget, yTarget, xOffset, yOffsetlocaldir =g_--Has user pressed one of the arrow keys?localviewport,partyoffsetlocalcurr_trail--print('run 11')ifdir ~=kDirUnknown thenifdir ==kDirWestordir ==kDirSouth thenxOffset =-16elsexOffset =16end---------------------ifdir ==kDirWestordir ==kDirNorth then

yOffset =-8elseyOffset =8end-- print('run 12')---------------------viewport,partyoffset =rt,ffset-- print('run 121')xSource =palcommon:get_X(viewport) +palcommon:get_X(partyoffset)-- print('run 122')ySource =palcommon:get_Y(viewport) +palcommon:get_Y(partyoffset)-- print('run 13')xTarget =xSource +xOffsetyTarget =ySource +Direction =dir--Check for obstacles zhangaiwu on the destination location--print('run 14')ifself:PAL_CheckObstacleV2(d,{pos =palcommon:pal_XY(xTarget, yTarget),fCheckEventObjects =TRUE,wSelfObject =0}) ==0then--if PAL_CheckObstacle(, TRUE, 0) ==0 then--Player will actually be moved. Store trail-- print('run 141')fori =3, 0, -1do-- print('run 142')curr_trail =gpGlobals:getTrailItem(i)--print('run 143',ilItem)gpGlobals:setTrailItem(i +1,curr_trail)

t [0x0020]=remove_item_from_inventory --d .i =9999t [0x0021]=inflict_damage_to_one_enemy --battle serire need to bindt [0x0022]=revive_player --need to bind newfunctiont [0x0023]=player_remove_equipmentt [0x0024]=evtobj_set_auto_entry_addrt [0x0025]=evtobj_set_trigger__entry_addrt [0x0026]=menu_buy_item_showt [0x0027]=menu_sell_item_showt [0x0028]=enemy_apply_poison --g_Battle (rgObject,getPoison )(get_rgEnemy,getPoisonItem )t [0x0029]=player_apply_poison --must look PAL_RunTriggerbelowt [0x002a]=enemy_cure_poison --Curepoison by object IDforenemyt [0x002b]=player_cure_poison_by_idt [0x002c]=player_cure_poison_by_levelt [0x002d]=player_set_statust [0x002e]=enemy_set_statust [0x002f]=player_remove_statust [0x0030]=palyer_increase_stat_by_percent --temporarilyt [0x0031]=player_change_battle_sprite--t [0x0032]=t [0x0033]=enemy_collect_itemst [0x0034]=enemy_transform_collected_into_itemst [0x0035]=screen_shaket [0x0036]=RNG_set_current_playering_animationt [0x0037]=RNG_play_animationt [0x0038]=party_teleport_out_of_scenet [0x0039]=enemy_drain_HPt [0x003a]=player_flee_frome_battle

t [0x003a]=player_flee_frome_battle--t [0x003b]=--t [0x003c]=--t [0x003d]=--t [0x003e]=t [0x003f]=evtobj_rided_to_pos_low_speed --at low speedt [0x0040]=evtobj_set_trigger_methodt [0x0041]=_marked_as_faildt [0x0042]=player_simulate_a_magict [0x0043]=music_set_backgroundt [0x0044]=evtobj_rided_to_pos_normal_speedt [0x0045]=music_set_battlet [0x0046]=party_set_pos_on_mapt [0x0047]=sound_play_effect--[0x0048]=t [0x0049]=evtobj_set_statet [0x004a]=battle_set_current_fieldt [0x004b]=evtobj_set_nullify_short_whilet [0x004c]=monster_chase_playert [0x004d]=sys_wait_for_any_keyt [0x004e]=sys_load_last_saved_gamet [0x004f]=sys_fade_screen_to_red_color --game overt [0x0050]=screen_fade_outt [0x0051]=screen_fade_int [0x0052]=evtobj_set_hide_for_a_whilet [0x0053]=palette_use_white_dayt [0x0054]=palette_use_night

t [0x0055]=player_add_magict [0x0056]=player_remove_magict [0x0057]=magic_set_base_damage --according to MPvaluet [0x0058]=entry_jump_if_less_than_item_number --inventoryt [0x0059]=scene_change_to_specifiedt [0x005a]=player_halve_HPt [0x005b]=enemy_halve_HPt [0x005c]=battle_hide_a_whilet [0x005d]=entry_jump_if_player_no_have_specified_poisont [0x005e]=entry_jump_if_enemy_no_have_specified_poisont [0x005f]=player_killed_immediatelyt [0x0060]=enemy_Dead_immediatet [0x0061]=entry_jump_if_player_no_poisonedt [0x0062]=enemy_pause_chasing_a_whilet [0x0063]=enemy_speed_up_chasing_a_whilet [0x0064]=entry_jump_if_enemy_HP_more_than_percentaget [0x0065]=player_set_spritet [0x0066]=player_throw_weapon_to_enemyt [0x0067]=enemy_use_magict [0x0068]=entry_jump_if_is_enemy_turnt [0x0069]=enemy_escape_in_battlet [0x006a]=player_steal_from_enemyt [0x006b]=enemy_blow_awayt [0x006c]=NPC_walk_in_one_stept [0x006d]=scene_set_entry_and_teleport_t [0x006e]=player_move_to_pos_in_one_stept [0x006f]=evtobj_sync_state_with_other

t [0x0070]=party_walk_to_post [0x0071]=screen_wave--t [0x0072]=t [0x0073]=screen_fade_to_scenet [0x0074]=entry_jump_if_all_players_no_full_HPt [0x0075]=party_set_playert [0x0076]=FBP_show_picturet [0x0077]=music_stop_current_playingt [0x0078]=no_happend --fix met [0x0079]=entry_jump_if_player_in_partyt [0x007a]=party_walk_to_pos_higher_speedt [0x007b]=party_walk_to_pos_highest_speedt [0x007c]=NPC_walk_straight_to_post [0x007d]=evtobj_movet [0x007e]=evtobj_set_layert [0x007f]=viewport_movet [0x0080]=palette_toggle_day_or_nightt [0x0081]=entry_jump_if_player_not_facing_evtobjt [0x0082]=NPC_walk_straight_to_pos_high_speedt [0x0083]=entry_jump_if_evtobj_not_in_specified_zone_of_curr_evtobjt [0x0084]=player_place_item_to_scene --item like a event object --found Z itemt [0x0085]=sys_delay_a_periodt [0x0086]=entry_jump_if_item_is_not_equippedt [0x0087]=NPC_Animate_the_evtobjt [0x0088]=magic_set_base_damage_look_at_amount_of_moneyt [0x0089]=battle_set_resultt [0x008a]=battle_set_auto_next

t [0x008a]=battle_set_auto_nextt [0x008b]=palette_change_currentt [0x008c]=color_fade_from_or_tot [0x008d]=player_increase_level--t [0x008e]=t [0x008f]=cash_halve_amountt [0x0090]=object_set_t [0x0091]=entry_jump_if_enemy_not_alonet [0x0092]=player_show_magic_casting_animation_in_battlet [0x0093]=screen_fade_and_update_screen_in_processt [0x0094]=entry_jump_if_evtobj_state_is_specifiedt [0x0095]=entry_jump_if_scene_is_specifiedt [0x0096]=sys_show_ending_animationt [0x0097]=evtobj_rided_to_pos_higher_speedt [0x0098]=party_set_followert [0x0099]=map_change_for_scenet [0x009a]=evtobj_set_state_manyt [0x009b]=scene_fade_to_currentt [0x009c]=enemy_duplicate_itself --copy itself to another just create newself--t [0x009d]=t [0x009e]=enemy_summons_another_monster --Z all humant [0x009f]=enemy_transforms_into_sth_else --wan thing changedt [0x00a0]=sys_quit_gamet [0x00a1]=party_set_pos_to_same_as_first_one --study_firstt [0x00a2]=entry_jump_to_one_in_following_instructions_randomly --jump tot [0x00a3]=music_play_CDt [0x00a4]=FBP_scroll_to_screen

t[ 0x001a] ={func =player_set_stat,name ="player_set_stat"}t[ 0x001b] ={func =player_modify_hp,name ="player_modify_hp"}t[ 0x001c] ={func =player_modify_mp,name ="player_modify_mp"}t[ 0x001d] ={func =player_modify_hp_and_mp,name ="player_modify_hp_and_mp"}t[ 0x001e] ={func =globals_set_cash_amount,name ="globals_set_cash_amount"}t[ 0x001f] ={func =add_item_to_inventory,name ="add_item_to_inventory"}t[ 0x0020] ={func =remove_item_from_inventory,name ="remove_item_from_inventory"} --d.i =9999t[ 0x0021] ={func =inflict_damage_to_one_enemy,name ="inflict_damage_to_one_enemy"} --battle serire need to bindt[ 0x0022] ={func =revive_player,name ="revive_player"} --need to bind new functiont[ 0x0023] ={func =player_remove_equipment,name ="player_remove_equipment"}t[ 0x0024] ={func =evtobj_set_auto_entry_addr,name ="evtobj_set_auto_entry_addr"}t[ 0x0025] ={func =evtobj_set_trigger__entry_addr,name ="evtobj_set_trigger__entry_addr"}t[ 0x0026] ={func =menu_buy_item_show,name ="menu_buy_item_show"}t[ 0x0027] ={func =menu_sell_item_show,name ="menu_sell_item_show"}t[ 0x0028] ={func =enemy_apply_poison,name ="enemy_apply_poison"} --g_Battle (rgObject,getPoison )(get_rgEnemy,getPoisonItem )t[ 0x0029] ={func =player_apply_poison,name ="player_apply_poison"} --must look PAL_RunTrigger belowt[ 0x002a] ={func =enemy_cure_poison,name ="enemy_cure_poison"} --Cure poison by object ID forenemyt[ 0x002b] ={func =player_cure_poison_by_id,name ="player_cure_poison_by_id"}t[ 0x002c] ={func =player_cure_poison_by_level,name ="player_cure_poison_by_level"}t[ 0x002d] ={func =player_set_status,name ="player_set_status"}t[ 0x002e] ={func =enemy_set_status,name ="enemy_set_status"}t[ 0x002f] ={func =player_remove_status,name ="player_remove_status"}t[ 0x0030] ={func =palyer_increase_stat_by_percent,name ="palyer_increase_stat_by_percent"} --temporarilyt[ 0x0031] ={func =player_change_battle_sprite,name ="player_change_battle_sprite"}--t[ 0x0032] =t[ 0x0033] ={func =enemy_collect_items,name ="enemy_collect_items"}

t[ 0x0034] ={func =enemy_transform_collected_into_items,name ="enemy_transform_collected_into_items"}t[ 0x0035] ={func =screen_shake,name ="screen_shake"}t[ 0x0036] ={func =RNG_set_current_playering_animation,name ="RNG_set_current_playering_animation"}t[ 0x0037] ={func =RNG_play_animation,name ="RNG_play_animation"}t[ 0x0038] ={func =party_teleport_out_of_scene,name ="party_teleport_out_of_scene"}t[ 0x0039] ={func =enemy_drain_HP,name ="enemy_drain_HP"}t[ 0x003a] ={func =player_flee_frome_battle,name ="player_flee_frome_battle"}--t[ 0x003b] =--t[ 0x003c] =--t[ 0x003d] =--t[ 0x003e] =t[ 0x003f] ={func =evtobj_rided_to_pos_low_speed,name ="evtobj_rided_to_pos_low_speed"} --at low speedt[ 0x0040] ={func =evtobj_set_trigger_method,name ="evtobj_set_trigger_method"}t[ 0x0041] ={func =_marked_as_faild,name ="_marked_as_faild"}t[ 0x0042] ={func =player_simulate_a_magic,name ="player_simulate_a_magic"}t[ 0x0043] ={func =music_set_background,name ="music_set_background"}t[ 0x0044] ={func =evtobj_rided_to_pos_normal_speed,name ="evtobj_rided_to_pos_normal_speed"}t[ 0x0045] ={func =music_set_battle,name ="music_set_battle"}t[ 0x0046] ={func =party_set_pos_on_map,name ="party_set_pos_on_map"}t[ 0x0047] ={func =sound_play_effect,name ="sound_play_effect"}--[ 0x0048] =t[ 0x0049] ={func =evtobj_set_state,name ="evtobj_set_state"}t[ 0x004a] ={func =battle_set_current_field,name ="battle_set_current_field"}t[ 0x004b] ={func =evtobj_set_nullify_short_while,name ="evtobj_set_nullify_short_while"}t[ 0x004c] ={func =monster_chase_player,name ="monster_chase_player"}t[ 0x004d] ={func =sys_wait_for_any_key,name ="sys_wait_for_any_key"}t[ 0x004e] ={func =sys_load_last_saved_game,name ="sys_load_last_saved_game"}

t[ 0x004f] ={func =sys_fade_screen_to_red_color,name ="sys_fade_screen_to_red_color"} --game overt[ 0x0050] ={func =screen_fade_out,name ="screen_fade_out"}t[ 0x0051] ={func =screen_fade_in,name ="screen_fade_in"}t[ 0x0052] ={func =evtobj_set_hide_for_a_while,name ="evtobj_set_hide_for_a_while"}t[ 0x0053] ={func =palette_use_white_day,name ="palette_use_white_day"}t[ 0x0054] ={func =palette_use_night,name ="palette_use_night"}t[ 0x0055] ={func =player_add_magic,name ="player_add_magic"}t[ 0x0056] ={func =player_remove_magic,name ="player_remove_magic"}t[ 0x0057] ={func =magic_set_base_damage,name ="magic_set_base_damage"} --according to MP valuet[ 0x0058] ={func =entry_jump_if_less_than_item_number,name ="entry_jump_if_less_than_item_number"} --inventoryt[ 0x0059] ={func =scene_change_to_specified,name ="scene_change_to_specified"}t[ 0x005a] ={func =player_halve_HP,name ="player_halve_HP"}t[ 0x005b] ={func =enemy_halve_HP,name ="enemy_halve_HP"}t[ 0x005c] ={func =battle_hide_a_while,name ="battle_hide_a_while"}t[ 0x005d] ={func =entry_jump_if_player_no_have_specified_poison,name="entry_jump_if_player_no_have_specified_poison"}t[ 0x005e] ={func =entry_jump_if_enemy_no_have_specified_poison,name="entry_jump_if_enemy_no_have_specified_poison"}t[ 0x005f] ={func =player_killed_immediately,name ="player_killed_immediately"}t[ 0x0060] ={func =enemy_Dead_immediate,name ="enemy_Dead_immediate"}t[ 0x0061] ={func =entry_jump_if_player_no_poisoned,name ="entry_jump_if_player_no_poisoned"}t[ 0x0062] ={func =enemy_pause_chasing_a_while,name ="enemy_pause_chasing_a_while"}t[ 0x0063] ={func =enemy_speed_up_chasing_a_while,name ="enemy_speed_up_chasing_a_while"}t[ 0x0064] ={func =entry_jump_if_enemy_HP_more_than_percentage,name="entry_jump_if_enemy_HP_more_than_percentage"}t[ 0x0065] ={func =player_set_sprite,name ="player_set_sprite"}t[ 0x0066] ={func =player_throw_weapon_to_enemy,name ="player_throw_weapon_to_enemy"}t[ 0x0067] ={func =enemy_use_magic,name ="enemy_use_magic"}

t[ 0x0068] ={func =entry_jump_if_is_enemy_turn,name ="entry_jump_if_is_enemy_turn"}t[ 0x0069] ={func =enemy_escape_in_battle,name ="enemy_escape_in_battle"}t[ 0x006a] ={func =player_steal_from_enemy,name ="player_steal_from_enemy"}t[ 0x006b] ={func =enemy_blow_away,name ="enemy_blow_away"}t[ 0x006c] ={func =NPC_walk_in_one_step,name ="NPC_walk_in_one_step"}t[ 0x006d] ={func =scene_set_entry_and_teleport_,name ="scene_set_entry_and_teleport_"}t[ 0x006e] ={func =player_move_to_pos_in_one_step,name ="player_move_to_pos_in_one_step"}t[ 0x006f] ={func =evtobj_sync_state_with_other,name ="evtobj_sync_state_with_other"}t[ 0x0070] ={func =party_walk_to_pos,name ="party_walk_to_pos"}t[ 0x0071] ={func =screen_wave,name ="screen_wave"}--t[ 0x0072] =t[ 0x0073] ={func =screen_fade_to_scene,name ="screen_fade_to_scene"}t[ 0x0074] ={func =entry_jump_if_all_players_no_full_HP,name ="entry_jump_if_all_players_no_full_HP"}t[ 0x0075] ={func =party_set_player,name ="party_set_player"}t[ 0x0076] ={func =FBP_show_picture,name ="FBP_show_picture"}t[ 0x0077] ={func =music_stop_current_playing,name ="music_stop_current_playing"}t[ 0x0078] ={func =no_happend,name ="no_happend"} --fix met[ 0x0079] ={func =entry_jump_if_player_in_party,name ="entry_jump_if_player_in_party"}t[ 0x007a] ={func =party_walk_to_pos_higher_speed,name ="party_walk_to_pos_higher_speed"}t[ 0x007b] ={func =party_walk_to_pos_highest_speed,name ="party_walk_to_pos_highest_speed"}t[ 0x007c] ={func =NPC_walk_straight_to_pos,name ="NPC_walk_straight_to_pos"}t[ 0x007d] ={func =evtobj_move,name ="evtobj_move"}t[ 0x007e] ={func =evtobj_set_layer,name ="evtobj_set_layer"}t[ 0x007f] ={func =viewport_move,name ="viewport_move"}t[ 0x0080] ={func =palette_toggle_day_or_night,name ="palette_toggle_day_or_night"}t[ 0x0081] ={func =entry_jump_if_player_not_facing_evtobj,name ="entry_jump_if_player_not_facing_evtobj"}t[ 0x0082] ={func =NPC_walk_straight_to_pos_high_speed,name ="NPC_walk_straight_to_pos_high_speed"}

t[ 0x0083] ={func =entry_jump_if_evtobj_not_in_specified_zone_of_curr_evtobj,name="entry_jump_if_evtobj_not_in_specified_zone_of_curr_evtobj"}t[ 0x0084] ={func =player_place_item_to_scene,name ="player_place_item_to_scene"} --item like a event object --found Z itemt[ 0x0085] ={func =sys_delay_a_period,name ="sys_delay_a_period"}t[ 0x0086] ={func =entry_jump_if_item_is_not_equipped,name ="entry_jump_if_item_is_not_equipped"}t[ 0x0087] ={func =NPC_Animate_the_evtobj,name ="NPC_Animate_the_evtobj"}t[ 0x0088] ={func =magic_set_base_damage_look_at_amount_of_money,name="magic_set_base_damage_look_at_amount_of_money"}t[ 0x0089] ={func =battle_set_result,name ="battle_set_result"}t[ 0x008a] ={func =battle_set_auto_next,name ="battle_set_auto_next"}t[ 0x008b] ={func =palette_change_current,name ="palette_change_current"}t[ 0x008c] ={func =color_fade_from_or_to,name ="color_fade_from_or_to"}t[ 0x008d] ={func =player_increase_level,name ="player_increase_level"}--t[ 0x008e] =t[ 0x008f] ={func =cash_halve_amount,name ="cash_halve_amount"}t[ 0x0090] ={func =object_set_,name ="object_set_"}t[ 0x0091] ={func =entry_jump_if_enemy_not_alone,name ="entry_jump_if_enemy_not_alone"}t[ 0x0092] ={func =player_show_magic_casting_animation_in_battle,name="player_show_magic_casting_animation_in_battle"}t[ 0x0093] ={func =screen_fade_and_update_screen_in_process,name="screen_fade_and_update_screen_in_process"}t[ 0x0094] ={func =entry_jump_if_evtobj_state_is_specified,name ="entry_jump_if_evtobj_state_is_specified"}t[ 0x0095] ={func =entry_jump_if_scene_is_specified,name ="entry_jump_if_scene_is_specified"}t[ 0x0096] ={func =sys_show_ending_animation,name ="sys_show_ending_animation"}t[ 0x0097] ={func =evtobj_rided_to_pos_higher_speed,name ="evtobj_rided_to_pos_higher_speed"}t[ 0x0098] ={func =party_set_follower,name ="party_set_follower"}t[ 0x0099] ={func =map_change_for_scene,name ="map_change_for_scene"}t[ 0x009a] ={func =evtobj_set_state_many,name ="evtobj_set_state_many"}t[ 0x009b] ={func =scene_fade_to_current,name ="scene_fade_to_current"}

本文标签: 源码部分操作基本菜单