-
Notifications
You must be signed in to change notification settings - Fork 0
Map util
Pival edited this page Jul 17, 2021
·
10 revisions
A module holding several useful functions for generation of map and event pages.
Type: Dict (String, Skill object)
Type: List (String)
MapImage(field, simpleMap, useDebris, units)
| Parameter | Type | Default |
|---|---|---|
| field |
SRPGMap.Field object + 2 Lists ( {"x": Integer, "y": Integer}) |
|
| simpleMap | Boolean | False |
| useDebris | Boolean | False |
| units | SRPGMap.Units object | None |
Return: String
MapInfobox(obj, restricted)
| Parameter | Type | Default |
|---|---|---|
| obj | Object (See below) | |
| restricted | Boolean | False |
Return: String
Availability(avail, notification, type)
| Parameter | Type | Default |
|---|---|---|
| avail | Availability object | |
| notification | String | "" |
| type | String | "event" |
Return: String
MapAvailability(avail, notification, type)
| Parameter | Type | Default |
|---|---|---|
| avail | Availability object | |
| notification | String | None |
| type | String | "map" |
Return: String
UnitData(SRPGMap)
| Parameter | Type |
|---|---|
| SRPGMap | SRPGMap object |
Return: String
InOtherLanguage(ids, mapName, reorder)
| Parameter | Type | Default |
|---|---|---|
| ids | String / List (String) | |
| mapName | String | None |
| reorder | Boolean | True |
Return: String
python3 mapUtil.py tag1 [tag2]Type: Dict (Integer, String)
Type: List (String)
Type: List (String)
Type: Dict (String, Language object)
{
"USEN": String,
"JPJA": String,
"EUDE": String,
"EUES": String,
"USES": String,
"EUFR": String,
"EUIT": String,
"TWZH": String,
"USPT": String,
} needBackdrop(mapId)
| Parameter | Type |
|---|---|
| mapId | String |
Return: Boolean
containDebris(terrain)
| Parameter | Type |
|---|---|
| terrain | List (List (Integer)) |
Return: Boolean
mapTerrain(terrain, wallStyle, x, y, useDebris)
| Parameter | Type |
|---|---|
| terrain | List (List (Integer)) |
| wallStyle | String |
| x | Integer |
| y | Integer |
| useDebris | Boolean |
Return: String
- Util
- Maps
- StoryParalogue.py
- TD.py (Tactics Drills)
- HO.py (Heroic Ordeal)
- DerivedMap.py
- HB.py (* Hero Battle)
- RD.py (Rival Domains)
- EventMap.py
- Events
- Others
- REUtil.py
- Reverse.py
- Events
- RevVG.py
- RevTT.py
- RevTB.py
- RevGC.py
- RevFB.py
- RevRS.py
- RevLL.py
- RevHoF.py
- RevMS.py
- RevFP.py
- RevPoL.py
- Others
- RevData.py
- RevMap.py
- RevQuests.py
- RevSound.py
- RevUnit.py