MagicDuel Wiki
Advertisement

mdsi_takeheat

mdsi_takeheat - Takes heat from the player's active heat and stores it in the item.

Description

int mdsi_takeheat(int $heat)

Takes heat from the player's active heat and stores it in the item.

Parameters

heat
How much heat should be taken from the player and stored in the item.
This value must be positive.

Notes

Function can only take as much heat as the player currently have.

Return Values

Returns how much heat was taken.

Examples

example #1

@va = mdsi_takeheat(100);
echo @va . ' heat was taken';

See Also


Advertisement