[過去ログ]
製作者スレ SRPG Studio 30章 (1002レス)
製作者スレ SRPG Studio 30章 http://mevius.5ch.net/test/read.cgi/gamedev/1551489031/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
566: 名前は開発中のものです。 [sage] 2019/04/26(金) 22:24:31.13 ID:f7TV3KlG var SupportCalculator = { createTotalStatus: function(unit) { var i, x, y, index, targetUnit, indexArray, count; var totalStatus = {}; totalStatus.powerTotal = 0; totalStatus.defenseTotal = 0; totalStatus.hitTotal = 0; totalStatus.avoidTotal = 0; totalStatus.criticalTotal = 0; totalStatus.criticalAvoidTotal = 0; if (this._isStatusDisabled()) { return totalStatus; } indexArray = IndexArray.getBestIndexArray(unit.getMapX(), unit.getMapY(), 1, this._getSupportRange()); count = indexArray.length; // unitの一定範囲(既定3マス)にいるtargetUnitを探す for (i = 0; i < count; i++) { index = indexArray[i]; x = CurrentMap.getX(index); y = CurrentMap.getY(index); targetUnit = PosChecker.getUnitFromPos(x, y); if (targetUnit !== null) { // targetUnitが見つかった場合は、支援データをtotalStatusに加算 this._collectStatus(unit, targetUnit, totalStatus); ↑この上の行を消して代わりにスキルの付与を行う記述を足したりしてるんだけどうまく行かないんだけどさ } } this._collectSkillStatus(unit, totalStatus); return totalStatus; }, http://mevius.5ch.net/test/read.cgi/gamedev/1551489031/566
574: 名前は開発中のものです。 [sage] 2019/04/29(月) 23:22:11.67 ID:E9/l6aQf >>566に関連するんだけど、特定のカスタムスキルを所持したユニットが 特定のマップ上の位置から一定範囲内にいないかfor文で調べて、存在する場合は その位置へ瞬間移動させられなくするとか、その位置にいる時だけ特定の武器タイプの武器が 使用できなくなるといったプラグインを作りたいんだけど、実際に作って入れてゲーム起動すると そのプラグインファイルが該当する行動をユニットにさせようとすると「オーバーフローしました」って出て ゲームが止まってしまうんだけどなんか解決法ないかな? (プログラムは以下のような記述) https://dotup.org/uploda/dotup.org1834424.txt http://mevius.5ch.net/test/read.cgi/gamedev/1551489031/574
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
1.365s*