Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Summoning System

A topic by dariken created Aug 05, 2023 Views: 201 Replies: 3
Viewing posts 1 to 2

I had an idea that, if possible, you should make a summoning system where actors can summon other actors to fight alongside them in battle.

Developer

You can summon an actor via script call provided that actor is already configured for TBS battle by using the script call:

const x = $gameMap.selectedBattler().x;

const y = $gameMap.selectedBattler().y;

$gameMap.addExtraActor(1, x, y);

This will summon an actor on the current battler location but without any turn limitations as the actor object is currently not returned from this script call to directly add states to it yet.

Do I replace the X and Y with anything or just leave them as X and Y?   I assume the 1 in parentheses stands for the actor id? 

Developer

Yes 1 is actor ID, you can change x and y with map coordinates.