Skip to content

Commit

Permalink
Start documentation of Built-In Script
Browse files Browse the repository at this point in the history
  • Loading branch information
SydMontague committed Dec 16, 2020
1 parent 2ea8d9a commit d49b0a0
Show file tree
Hide file tree
Showing 31 changed files with 452 additions and 6 deletions.
11 changes: 7 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,14 @@ FIND_PACKAGE(Boost 1.65 REQUIRED COMPONENTS filesystem regex)
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )

# Qt5
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

FIND_PACKAGE(Qt5 COMPONENTS Core Widgets REQUIRED)
FIND_PACKAGE(Qt5 COMPONENTS Core Widgets)

if(Qt5_FOUND)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
endif()

# Include sub-projects.
add_subdirectory ("DSCSTools")
Expand Down
1 change: 1 addition & 0 deletions DSCSTools/DSCSTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include "SaveFile.h"
#include "EXPA.h"

// TODO extract specific files from archive
void printUse() {
std::cout << "Modes:" << std::endl;
std::cout << " --extract <sourceFile> <targetFolder>" << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions DSCSTools/structures/mon_para.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
"EXPx2": "int",
"YEN": "int",
"YENx2": "int",
"itemChance1": "short",
"itemId1": "short",
"itemChance2": "short",
"itemChance1": "short",
"itemId2": "short",
"itemChance2": "short",
"scanRate": "int",
"unk32": "int",
"unk33": "int array"
Expand Down
38 changes: 38 additions & 0 deletions docs/squirrel/builtin/Battle.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
this.Battle.AddAnimation(int charId, int)
this.Battle.AttachAlwaysAvoid(int, bool)
this.Battle.AttachAlwaysAvoid(int)
this.Battle.AttachFixDamage(int, int, int)
this.Battle.AttachNoDamage(int, bool)
this.Battle.AttachReducePenetrate(int, int)
this.Battle.AttachUndead(int, bool)
this.Battle.ChangeGuest(int, int, int)
this.Battle.Encount(int encounterId, int battleMapId)
this.Battle.EventParty(int, int, int)
this.Battle.ForceEnd()
this.Battle.GetDifficulty()
this.Battle.GetParameter(int charId, int)
this.Battle.GetPlayerModelID(int)
this.Battle.GetStatus(int charId, int)
this.Battle.GetTurn(int)
this.Battle.GetTurnCharacter()
this.Battle.IsChangeGuest()
this.Battle.LoadObject(string, string, float, float, float, float, float)
this.Battle.PlayAnimation(int charId, string anim, bool)
this.Battle.SetAnimationFix(int charId, bool)
this.Battle.SetBGM(string track1, string track2)
this.Battle.SetBackAttack()
this.Battle.SetBackgroundMovie(string movieName)
this.Battle.SetCommand(int commandId)
this.Battle.SetCommandTarget(int charId)
this.Battle.SetDispUI(bool)
this.Battle.SetFirstAttack()
this.Battle.SetItemDisable(bool disable)
this.Battle.SetParameter(int charId, int paramId, int value)
this.Battle.SetPlayerInvisible(int, bool)
this.Battle.SetPlayerPosition(float, float, float)
this.Battle.SetRefuseScan(bool)
this.Battle.SetReserveDisable(bool)
this.Battle.SetSkill(int, int)
this.Battle.SetSlotBAnimationNextCommand(string anim)
this.Battle.SetTurnStartActionBuff(int, int, int)
this.Battle.SetTurnStartActionCommand(int, int, int)
28 changes: 28 additions & 0 deletions docs/squirrel/builtin/Common.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
this.Common.AddMoney(int money)
this.Common.AddTP(int)
this.Common.AdvanceStoryProgress()
this.Common.GetCharName(int)
this.Common.GetFieldGuest()
this.Common.GetFieldName(int)
this.Common.GetFreePartyMemory()
this.Common.GetMainStoryPlayerSex()
this.Common.GetModelNameFieldGuest()
this.Common.GetMoney()
this.Common.GetPartyEmptyNum()
this.Common.GetPartyNumExhausted()
this.Common.GetPlayerClothModelName()
this.Common.GetPlayerModelName()
this.Common.GetPlayerSex()
this.Common.GetStoryMode()
this.Common.GetTP()
this.Common.IsDebugGuestAdd()
this.Common.IsExistReverseStorySaveData(int)
this.Common.IsOnMirrorDungeon()
this.Common.IsStoryClearCyberSleuth()
this.Common.IsStoryClearHackersMemory()
this.Common.LearnHackingSkill(int)
this.Common.SendNoticeStoryClearCyberSleuth()
this.Common.SendNoticeStoryClearHackersMemory()
this.Common.SetControlPlayerType(int)
this.Common.SetFieldGuest(int)
this.Common.SetOnMirrorDungeon(bool)
1 change: 1 addition & 0 deletions docs/squirrel/builtin/Costume.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this.Costume.Open()
1 change: 1 addition & 0 deletions docs/squirrel/builtin/DLC.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this.DLC.FlagCheck(int)
2 changes: 2 additions & 0 deletions docs/squirrel/builtin/Debug.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
this.Debug.ClearLog()
this.Debug.Log(string msg)
2 changes: 2 additions & 0 deletions docs/squirrel/builtin/Digilab.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
this.Digilab.OpenDigibank()
this.Digilab.OpenMirrorDungeonSelect()
2 changes: 2 additions & 0 deletions docs/squirrel/builtin/Digiline.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
this.Digiline.Send(int)
this.Digiline.SetEnable(bool)
3 changes: 3 additions & 0 deletions docs/squirrel/builtin/Digimon.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this.Digimon.GetMemory(int digimonId)
this.Digimon.IsFullHpSpAllParty()
this.Digimon.RestoreAllParty()
14 changes: 14 additions & 0 deletions docs/squirrel/builtin/Domination.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
this.Domination.CameraSet(string, int)
this.Domination.ChangeHackersBattleData(int, int, int, int, string)
this.Domination.CharaEffectEnd()
this.Domination.CharaEffectPlay(int, int, int, string)
this.Domination.Encount(int)
this.Domination.GetPlayer()
this.Domination.GetRootRandom(bool)
this.Domination.GetScore(int)
this.Domination.GetTotalScore(int)
this.Domination.SearchPlayer(int)
this.Domination.SearchRootPlayer(int)
this.Domination.SearchRootScore(int)
this.Domination.SearchScore(int)
this.Domination.SetRoot(int)
10 changes: 10 additions & 0 deletions docs/squirrel/builtin/Fade.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
this.Fade.BackIn(int, float)
this.Fade.BackInDetail(int, float, float, float)
this.Fade.BackOut(int, float)
this.Fade.BackOutDetail(int, float, float, float)
this.Fade.CloseLoading()
this.Fade.In(int type, float time)
this.Fade.IsBackEndType(int)
this.Fade.IsEnd()
this.Fade.IsEndType(int type)
this.Fade.Out(int, float)
90 changes: 90 additions & 0 deletions docs/squirrel/builtin/Field.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
this.Field.AddGuestFormal(int, int)
this.Field.AddPartyFormal(int)
this.Field.BackgroundMovieListAdd(string, bool, string, float)
this.Field.BackgroundMovieListGetPlayIndex()
this.Field.BackgroundMovieListGetSize()
this.Field.BackgroundMovieListPlay(int)
this.Field.BackgroundMovieListSetLoop(int, bool)
this.Field.BackgroundMovieListSetSE(int, int, string, bool, int)
this.Field.ChangeField(string map, int area, string loc, int rotation)
this.Field.ChangeScene(int, int)
this.Field.CheckArea(int)
this.Field.CloseUI(bool)
this.Field.ColOff(string)
this.Field.ColOn(string)
this.Field.DeleteNpc(int)
this.Field.EffectVisible(string, bool)
this.Field.ExecuteHitTestEventCollision(string)
this.Field.IconOffID(string, int)
this.Field.IconOnID(string, int, float, float)
this.Field.IsEndAccessMode()
this.Field.IsEndAnimation(string)
this.Field.IsEndCJEffect()
this.Field.IsEndEffect(string)
this.Field.IsEndElevator(string)
this.Field.IsEndFirewallEffect(()
this.Field.IsEndLoadNpc()
this.Field.IsEndNpcAnime(int)
this.Field.IsEndNpcMove(int)
this.Field.IsEndSaveUI()
this.Field.IsEndWarp()
this.Field.IsHitEvent()
this.Field.IsMovePlayer()
this.Field.IsReadyBackgroundMovie()
this.Field.IsScriptCameraEnd()
this.Field.IsStealthHide()
this.Field.LaboToField()
this.Field.LoadNpc(int, string, float, float, float, float)
this.Field.MoveNpcLocator(int, string)
this.Field.MoveOffPlayer()
this.Field.MoveOnPlayer()
this.Field.MovePlayer(string)
this.Field.NpcCompleteDrawMemory(string)
this.Field.NpcLoadSkip(int...)
this.Field.PlayAnimation(string, string, float, bool)
this.Field.PlayBGM(string track, float fadeTime)
this.Field.PlayBGM_CustomSound(string track, fadeTime)
this.Field.PlayEffect(string, int, bool, bool)
this.Field.PlayEffectReverse(string, int, int)
this.Field.PlayEffectSmooth(string, int, bool, int)
this.Field.PlaySE(string, bool)
this.Field.PlayerIconVisible(bool)
this.Field.RemoveGuest(int)
this.Field.ResetStealthHide()
this.Field.SEObjectMute(int, bool)
this.Field.SaveUI(string mapName, int area)
this.Field.ScriptCamera(string, int, bool)
this.Field.ScriptCameraStill(bool)
this.Field.SetAPVisible(string, bool)
this.Field.SetBGSkip(bool)
this.Field.SetDigimonVisible(bool)
this.Field.SetEdenLogOut(int, int, string, int)
this.Field.SetEffect(string, string, float, float, float, bool)
this.Field.SetEffectAnime(string, int, int, int)
this.Field.SetEffectIsCheckRenderAfter(string, bool)
this.Field.SetEnableCheckObject(bool)
this.Field.SetEnableDigimonDraw(bool)
this.Field.SetEnableHackingSkillMenu(bool)
this.Field.SetEnablePasteColorEffect(bool)
this.Field.SetEnableSecurityEffect(bool)
this.Field.SetExecSkip(bool)
this.Field.SetGimmickAnime(string, int)
this.Field.SetGimmickVisible(string, int)
this.Field.SetNpcAnime(int, string, float, bool)
this.Field.SetNpcIcon(string, int)
this.Field.SetNpcKeywordID(string, int)
this.Field.SetNpcVisible(string npcId, bool)
this.Field.SetPlayer(string)
this.Field.SetPlayerRotation(float)
this.Field.SetPlayerVisible(bool)
this.Field.SetTBoxVisible(int, bool)
this.Field.SetVisible(bool)
this.Field.SetWarpEffectOff()
this.Field.StartAccessMode(string)
this.Field.StartCJEffect()
this.Field.StartElevator(string objName, float height, float speed, bool)
this.Field.StartFirewallEffect()
this.Field.StartGimmickAnime(string)
this.Field.TownSelect(int)
this.Field.WarpIn(string, int, bool, bool, bool)
this.Field.WarpOut(string, int, bool, bool, bool)
3 changes: 3 additions & 0 deletions docs/squirrel/builtin/Flag.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this.Flag.Check(int)
this.Flag.Clear(int)
this.Flag.Set(int)
3 changes: 3 additions & 0 deletions docs/squirrel/builtin/Item.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this.Item.Add(int itemId, int amount)
this.Item.Delete(int itemId, int amount)
this.Item.GetNum(int itemId)
19 changes: 19 additions & 0 deletions docs/squirrel/builtin/Keyword.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
this.Keyword.AdvanceProgress(int keyId)
this.Keyword.CloseUseWindow()
this.Keyword.Delete(int)
this.Keyword.EventHappen(int)
this.Keyword.GetActiveID()
this.Keyword.GetMessageID(int keyId, int index, int messageType, int useResult, bool isProgress)
this.Keyword.GetMessageType(int keyId, int msgId)
this.Keyword.GetProgress(int)
this.Keyword.GetResultUseWindow()
this.Keyword.GetTalkDataName()
this.Keyword.IsCompleted(int)
this.Keyword.IsEndCloseUseWindow()
this.Keyword.IsEventHappen(int)
this.Keyword.IsHave(int)
this.Keyword.IsNextUseWindow()
this.Keyword.OpenUseWindow()
this.Keyword.SetNpcKeywordIcon()
this.Keyword.UnlockDirectionCorrect()
this.Keyword.UnlockDirectionIncorrect()
1 change: 1 addition & 0 deletions docs/squirrel/builtin/Math.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
this.Math.Rand(int lower, int upper)
14 changes: 14 additions & 0 deletions docs/squirrel/builtin/Medal.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
this.Medal.AllSell()
this.Medal.CloseList()
this.Medal.GetEstimateSellPrice()
this.Medal.GetLastItemID()
this.Medal.GetLastMedalName()
this.Medal.GetLastMedalNo()
this.Medal.GetLastSellPrice()
this.Medal.GetSellKindNum()
this.Medal.IsCompleteCollection(int collectionId)
this.Medal.IsEndList()
this.Medal.IsLastHaveMedal()
this.Medal.OpenList()
this.Medal.PlayGasha(int)
this.Medal.SellID(int)
6 changes: 6 additions & 0 deletions docs/squirrel/builtin/Movie.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
this.Movie.End()
this.Movie.Exit()
this.Movie.IsPlay()
this.Movie.Play(string, int)
this.Movie.Play(string, string)
this.Movie.Start()
7 changes: 7 additions & 0 deletions docs/squirrel/builtin/PostEffect.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
this.PostEffect.IsEnableBlur()
this.PostEffect.SetEnableBlur(bool)
this.PostEffect.SetEnableRadialBlur(bool)
this.PostEffect.SetEnableSpecialBlur(bool)
this.PostEffect.SetMonoFilter(bool, int, bool, bool)
this.PostEffect.SetNegaFilter(bool, bool)
this.PostEffect.SetSepiaFilter(bool, int, bool, bool)
2 changes: 2 additions & 0 deletions docs/squirrel/builtin/Quake.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
this.Quake.Start(int, float, float, float)
this.Quake.Stop()
11 changes: 11 additions & 0 deletions docs/squirrel/builtin/Quest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
this.Quest.AdvanceProgress(int)
this.Quest.BBSForceReturnField()
this.Quest.Cancel(int questId)
this.Quest.CloseQuestBoard()
this.Quest.DebugComplete(int)
this.Quest.GetCompleteTalkMessageID()
this.Quest.GetCompleteTalkModelName()
this.Quest.GetProgress(int questId)
this.Quest.GetReceiveStatus(int questId)
this.Quest.IsNextQuestBoard()
this.Quest.OpenQuestBoard()
3 changes: 3 additions & 0 deletions docs/squirrel/builtin/Shop.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
this.Shop.Close()
this.Shop.IsEnd()
this.Shop.Open(int shopid)
11 changes: 11 additions & 0 deletions docs/squirrel/builtin/Sound.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
this.Sound.IsPlaySE(string)
this.Sound.IsPlaying(int)
this.Sound.PlayBGM(string trackName, float fadeTime)
this.Sound.PlaySE(string soundName, bool)
this.Sound.PlayVoice(string voiceName)
this.Sound.SetPanSE(string, float)
this.Sound.StopAllSE(float)
this.Sound.StopAllSE()
this.Sound.StopBGM(float)
this.Sound.StopSE(string, float)
this.Sound.StopSE(string)
Loading

0 comments on commit d49b0a0

Please sign in to comment.