.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Scenarios, Maps and Mods (http://forum.shrapnelgames.com/forumdisplay.php?f=146)
-   -   Wishlist: Modding shortlist (http://forum.shrapnelgames.com/showthread.php?t=38657)

chrispedersen February 10th, 2009 12:07 PM

Re: Modding shortlist
 
Extended Random Events.

The current random events are limited to 4. Rather than change the code, I'd like to extend it, and I'd like to make it user moddable.

The idea I envision is that these extended luck events are an additional luck event that would only occur after they become turn eligible, and only if provinces have been denied luck events due to the 4 cap.

(Actually, I'd prefer to change the whole mechanism, but this might be easier or a good first step).


I'd like random events to draw from a list (preferably text) like mercenaries do.

Something like the following format:

ScaleMask: ABCDEF Where each ABC... are numbers corresponding to scales.

Terrain Mask: Bit Map corresponding to required terrains.

CommanderSummon1: Commander Summoned.
CommanderSummon2: Ditto.
UnitSummon1: Unit number summoned.
UnitNumbers: How many to summon.
UnitSummon2:
UnitSummon3:

SpellCast: Spell number
SpellParam1:
SpellParam2:

ChangeScale: Mask to change scales. So for example 100000
would increase Turmoil 1.


CapitolEligible: Can this event occur on the capitol province.

TurnStart: What turn the event can occur on.
TurnEnd: What turn the event can no longer occur on.
EventMsg: Text to be displayed on players screen

TempleLabFort: 3 bit mask. 1 turns on, 0 turns off.

AddSite: Site Number.

lch February 12th, 2009 06:49 PM

Re: Modding shortlist
 
Quote:

Originally Posted by Burnsaber (Post 672884)
Just thought of this. Would be a cool way to introduce nation in a deeper level to the game.

Mercenary Modding

#addgroup - adds new group of mercenaries
#name "name" - declares the name of the group
#leader [mon nmbr] - declares who commands the mercenaries
#troops [amount] [mon nmbr] - first number declares how many troops and the other what the monsters are
#startcost [amount] - How much money will they ask when they are available.
#end - always at the end of #addgroup

EricM used a similar modding-inspired way to present his data on mercs, here:
http://forum.shrapnelgames.com/showp...4&postcount=36

No, you can't use those modding commands. ;)

And most stuff in Dom3 is hardcoded instead of being read from some table, so it's hard to make it accessible to modding. There still isn't much that you can do with spell modding, for example, because it's mostly hardcoded.

chrispedersen February 13th, 2009 02:21 PM

Re: Modding shortlist
 
#airbreath

Give a unit the ability to let water breathers breath on land.
Alternately it you could use a negative number with waterbreath


Also, it would be nice if all tags could be used on magic items and sites. Enter to gain water breathing, for example

But J/K and KO - I really think you have seen the enthusiasm of modders. If you opened up the primitives so others could extend with code.. .I think popularity would continue to cincrease as others cotiued to extend the game. So that would be my number 1 choice = )

lch February 13th, 2009 02:44 PM

Re: Modding shortlist
 
Quote:

Originally Posted by chrispedersen (Post 674275)
Also, it would be nice if all tags could be used on magic items and sites. Enter to gain water breathing, for example

I don't think there will be tags for all the effects there are, ever.

But I'd like to have a variable tag for effects on items and units. I know about pretty much all the effect IDs and what they do, and I'll document them so that modders can use them. That would instantly open up some really interesting opportunities for modding.

chrispedersen February 16th, 2009 05:31 AM

Re: Modding shortlist
 
Quote:

Originally Posted by lch (Post 674280)
Quote:

Originally Posted by chrispedersen (Post 674275)
Also, it would be nice if all tags could be used on magic items and sites. Enter to gain water breathing, for example

I don't think there will be tags for all the effects there are, ever.

But I'd like to have a variable tag for effects on items and units. I know about pretty much all the effect IDs and what they do, and I'll document them so that modders can use them. That would instantly open up some really interesting opportunities for modding.

I'm having problems with effect 137.. I can't seem to make it entangle with aoe.

lch February 19th, 2009 04:30 AM

Re: Modding shortlist
 
Quote:

Originally Posted by chrispedersen (Post 674705)
I'm having problems with effect 137.. I can't seem to make it entangle with aoe.

I'm not sure if we're talking with the same terminology here, but for me entangle like given by the Vine Shield is effect number 128, while 137 is used by items for assassination attempt. I didn't look into what the spells use yet.

Jazzepi March 11th, 2009 09:06 PM

Re: Modding shortlist
 
I'd really like to see a general tag #domEffect <% chance that it happens per candle> <effect number from spell list> that would allow you to add, or take away, effects created by the dominion. So that you could create a dominion that not only diseases enemies, but maybe you could make a dominion that heals enemies, and allies. Or maybe one that slowly makes your commanders/troops more experienced, or that occasionally turns people into werewolves.

It would have the #clear functions of other tags which would allow you to take LA Ermor, clear the nation of the pop-kill, and then add in your own.

You'd also be able to #domPopGrowth <% amount> <per this many candles, rounded up>, #domGoldIncome, #domResourcesIncome, #domGemIncome which would allow you to increase or decrease things under the dominion of the controller by a given percentage point. You just use negative for decrease and positive for increase. You could also specify the number of candles needed for a stronger effect. Maybe you have to reach Dom 10 to get %5 more gems from your sites.

This would allow you to easily replicate C'Tis miasma with #domEffect and then some disease effect from the spell list + #domGoldIncome 1 1 which would give you 1% increase in income per 1 candle.

Just a thought!

Jazzepi

Jazzepi March 15th, 2009 11:48 AM

Re: Modding shortlist
 
I have a simple one this time D:

I'd really like to be able to add an effect that goes off "on death" centered at the unit that dies.
Code:

#ondeath (effect #) (size) (percent chance)
Jazzepi

chrispedersen March 16th, 2009 12:27 PM

Re: Modding shortlist
 
well, there probably is one. Pearls of vengeance blow up when you die.

lch March 17th, 2009 03:58 AM

Re: Modding shortlist
 
Again, I don't really know if you can use generic spell/item effect values... Do you? In that case, 135 is the one from amulet of vengeance and 204 is the death wail of R'lyeh's more powerful units.


All times are GMT -4. The time now is 04:58 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.