rocklikeafool
Warmaster
Is there a tutorial for how to do basic lua functions in CivV? For example, giving a unit promotion through a specific call? Or summoning a unit (like a skeleton or demon for one turn)? I'm wondering, because it comes to mind that creating spells for the Naerality Reborn mod would probably be easiest to do, if I could use the following pseudo-code.
Pseudo-code:
OR
Anyway...what lua tutorials for CivV would you recommend I check into? Thanks.
Moderator Action: 2 threads combined and moved to the main forum.
Because the tutorials subforum is for tutorials only, not for questions
.
Pseudo-code:
Spoiler :
Code:
1. Call promotion (via an executable action, like a spell that can only be used once per turn by the unit casting the spell).
2. Add promotion to units (or units around unit).
3. Promotion fades after a specific set of conditions. (For instance, the promotion only is designed to last 1 turn.)
OR
Code:
1. Call temporary unit (again, via executable spell that can only be used once per turn by the unit casting the spell).
2. Temporary unit (as an example, a fireball) is summoned.
3. Temporary units fades upon fulfilling specific conditions. (For instance, a fireball dies upon attacking, causing collateral damage. Or a summoned skeleton/demon fades after 1-3 turns.)
Anyway...what lua tutorials for CivV would you recommend I check into? Thanks.
Moderator Action: 2 threads combined and moved to the main forum.
Because the tutorials subforum is for tutorials only, not for questions
