46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
// Item script
|
|
|
|
#include "./Kevin_ItemConst.txt"
|
|
#include "./Kevin_ItemLib.txt"
|
|
//#include "./Kevin_ItemData.txt"
|
|
|
|
@Initialize{
|
|
SetAutoDeleteObject(true);
|
|
SetDefaultBonusItemEnable(true);
|
|
LoadItemData(GetCurrentScriptDirectory ~ "./Kevin_ItemData.txt");
|
|
}
|
|
|
|
@MainLoop{
|
|
yield;
|
|
}
|
|
|
|
@Event
|
|
{
|
|
alternative (GetEventType)
|
|
case (EV_GET_ITEM){
|
|
|
|
let obj = GetEventArgument(0);
|
|
|
|
alternative(obj)
|
|
|
|
case(POINT_REGULAR){ AddScore(GetAreaCommonData("PIV", "currentvalue", 0));}
|
|
case(POINT_BHESTIE){ AddScore(2*GetAreaCommonData("PIV", "currentvalue", 0));}
|
|
case(EXTEND_LIFE){ AddScore(50000); SetPlayerLife(GetPlayerLife()+1);}
|
|
case(EXTEND_SPELL){ AddScore(50000); SetPlayerSpell(GetPlayerSpell()+1);}
|
|
case(PIV_100){ SetAreaCommonData("PIV", "currentvalue", GetAreaCommonData("PIV", "currentvalue", 0)+100);}
|
|
case(PIV_250){ SetAreaCommonData("PIV", "currentvalue", GetAreaCommonData("PIV", "currentvalue", 0)+250);}
|
|
case(PIV_500){ SetAreaCommonData("PIV", "currentvalue", GetAreaCommonData("PIV", "currentvalue", 0)+500);}
|
|
|
|
}
|
|
|
|
case (EV_DELETE_SHOT_TO_ITEM){
|
|
|
|
}
|
|
|
|
case (EV_COLLECT_ITEM){
|
|
let obj = GetEventArgument(1);
|
|
ObjMove_SetAcceleration(obj, 0.85);
|
|
ObjMove_SetMaxSpeed(obj, 12);
|
|
}
|
|
|
|
} |