Floating Text upon Plot

LastSword

Prince
Joined
Feb 24, 2013
Messages
1,129
LUA.
1. How to make a floating text upon certain plot? (examples: gold gain after killing unit, faith conversion; white +1000, culture gain from killing barbs)

Extra question: Is it possible to pick every city in the map and do (actions)? Something like "for City in Player:Cities()", except that global.
 
Extra question: Is it possible to pick every city in the map and do (actions)? Something like "for City in Player:Cities()", except that global.

Loop through every player, then all of his cities.
 
To answer the other question, the "floating text" (eg culture from barb kills) is done in C++ with

Code:
DLLUI->AddPopupText(iX, iY, sText, fDelay);

but I'm pretty sure there is no Lua interface to this (unlike the notifications that slide down the right-hand side of the screen)
 
Back
Top Bottom