Skip to content

Script calls User API

Pheonix KageDesu edited this page Apr 9, 2022 · 14 revisions

⚠️ Information actual for version 0.6 and above
⚠️ Page is not complete yet...


⚠️ Examples you can find in Demo Project, map uAPI (ID 5) 🗺️

ABS System

  • uAPI.resumeABS();
  • uAPI.pauseABS();

UI

  • uAPI.editUI(); - starts UI editor scene
  • uAPI.showUI();
  • uAPI.hideUI();
  • uAPI.resetUserUISettings(); - reset all UI settings (changed via Editor or Script calls) to defaults (from Plugin Parameters)

Skill Panel

  • uAPI.setSkillToPanel(ID, SLOT_SYMBOL);
  • uAPI.setItemToPanel(ID, SLOT_SYMBOL);

ID - it's skill or item ID from database
SLOT_SYMBOL - it's slot key (1,2 or E...)

For remove item, use 0 instead ID
Example: Remove any skill from Slot 5 uAPI.setSkillToPanel(0, 5);

For add item\skill in any empty skill slot, not use any SLOT_SYMBOL (keep empty)
Example: Add item 10 in any empty slot uAPI.setItemToPanel(10);

  • uAPI.getSkillIdFromPanel(SLOT_SYMBOL);
    - return skill or item ID from skill slot, or 0 if slot is empty

Camera

  • uAPI.enableMapScroll();
  • uAPI.disableMapScroll();
  • uAPI.resetMapScroll(); - reset camera to center

Enemies

  • uAPI.gainExpForEnemyDb( ENEMY_DB_ID, IS_SHOW_NOTIFY );
    - get experience for enemy by his database ID

  • uAPI.gainExpForEnemyEv( EVENT_ID, IS_SHOW_NOTIFY );
    - get experience for enemy by his Event ID on map (only for ABS events)

IS_SHOW_NOTIFY - show popUp? true or false
Example: uAPI.gainExpForEnemyDb(10, true);

⚠️ Examples you can find in Demo Project, map Exp (ID 14) 🗺️


Clone this wiki locally