- Joined
- Jun 3, 2018
- Messages
- 8
- Reaction score
- 1
- First Language
- english
- Primarily Uses
- RMMV
Hello,
These 2 script calls appear to be causing errors, I assume syntax is the issue, any help would be appreciated.
1.
Objective: Set Actor (event ID - 10) Hp to event x coordinate
$gameActors.actor((this.character(0)-10)).setHp(this.character(0).x)
2.
Objective: Set Actor 25's Tp to price of item using Actor 25's Hp as the item ID
$gameActors.actor(25).setTp($dataItems(($gameActors.actor(25).Hp)).price)
Thanks
These 2 script calls appear to be causing errors, I assume syntax is the issue, any help would be appreciated.
1.
Objective: Set Actor (event ID - 10) Hp to event x coordinate
$gameActors.actor((this.character(0)-10)).setHp(this.character(0).x)
2.
Objective: Set Actor 25's Tp to price of item using Actor 25's Hp as the item ID
$gameActors.actor(25).setTp($dataItems(($gameActors.actor(25).Hp)).price)
Thanks