Skip to main content

apiverve_gamecharacter 1.2.3 copy "apiverve_gamecharacter: ^1.2.3" to clipboard
apiverve_gamecharacter: ^1.2.3 copied to clipboard

Generate complete RPG-style characters with race, class, background, stats, and personality.

Game Character Generator API - Dart/Flutter Client #

Generate complete RPG-style characters with race, class, background, stats, and personality.

pub package License: MIT

This is the Dart/Flutter client for the Game Character Generator API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_gamecharacter: ^1.2.3

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_gamecharacter/apiverve_gamecharacter.dart';

void main() async {
  final client = GamecharacterClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'race': 'elf',
      'class': 'mage'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "name": "Nimara Goldenbough",
    "race": {
      "name": "Elf",
      "traits": [
        "Graceful",
        "Keen Senses",
        "Long-lived"
      ]
    },
    "class": {
      "name": "Mage",
      "description": "Wielder of arcane magic",
      "primaryStat": "intelligence",
      "hitDie": "d6"
    },
    "background": "Criminal",
    "personality": "Ambitious and driven",
    "motivation": "Protect the innocent",
    "stats": {
      "strength": {
        "value": 13,
        "modifier": 1
      },
      "dexterity": {
        "value": 12,
        "modifier": 1
      },
      "constitution": {
        "value": 9,
        "modifier": -1
      },
      "intelligence": {
        "value": 11,
        "modifier": 0
      },
      "wisdom": {
        "value": 4,
        "modifier": -3
      },
      "charisma": {
        "value": 8,
        "modifier": -1
      }
    },
    "hp": 5,
    "totalStatPoints": 57,
    "highestStat": "strength",
    "lowestStat": "wisdom"
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
0
points
824
downloads

Publisher

unverified uploader

Weekly Downloads

Generate complete RPG-style characters with race, class, background, stats, and personality.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_gamecharacter