|
Post by gp1628 on Mar 26, 2012 16:18:52 GMT -5
Lets talk about FLAGs.
They are a little mentioned item of the maps commands, but can be very powerful.
There are 4 flag "bits" (also referred to by color). Basically they are a HERE marker on the map. They can mark a spot, or a building, or an area. They can be set by commands or can be set using the map editor. In the editor 1,2,3 set the size of an area you will place. 6 will place red (256), 7 will place green (512), 8 will place blue (1024), and 9 will place yellow (2048). The 5 key is zero (0) so that you can unset a flag you have already set.
Or you can use map commands. squareflag <x> <y> <flag code> flag codes: 256, 512, 1024, 2048 (add together to place multiple flags on a square)
There can be multiple flags marking the same spot. Or areas can overlap.
The triggers can be "if someone enters HERE" or can even be "if someone moves close to HERE". You could have the red flag mark a spot to have an event when someone reaches it. And also have that spot surrounded by yellow flags to display a warning when someone gets close.
The flags can be visible to the players, or invisible.
TIP: even if no flag event is used, setting a flag will add a command to the map file with the X Y location. That can be a helpful reminder of X/Y's for use in non-flag events also
|
|
|
Post by gp1628 on Mar 26, 2012 16:20:05 GMT -5
The ON FLAG trigger looks like this.... onflagevent <player> <flag code> <event code...> the player can be specific such as player 1, or can be made to mean anyone including independents by saying -1
And of course, like any of the triggers, the interesting part comes when you use a trigger with an event.
|
|
|
Post by gp1628 on Mar 26, 2012 16:58:44 GMT -5
onflagevent -1 256 9 25 18 "Soul Stone"
On Flag Event any player reaching 256 (any red flag) triggers a code 9 event of item found in 25 x 18 map location "Soul Stone" so ANY player who hits a red flag will cause a Soul Stone to be found in square 25x18 by anyone who is there even if they are an independent. Obviously this works better if the red flag is in the same square as the item drops, but not necessarily a requirement. It could be used so that when someone reaches a spot, a prize is dropped someplace else for them to go get.
|
|
|
Post by gp1628 on Mar 31, 2012 11:37:00 GMT -5
some notes from my tests...
onflagevent for 256 (red) onflagevent for 512 (green) onflagevent for 2048 (yellow) onflagevent for 2816 (red + green + yellow)
will all be triggered if I move into a square that has all 3 flags. None will trigger again. If I move from the red/green/yellow tile to one that only has yellow then the yellow is considered to have already been triggered for its one shot. That one move has killed everything except for moving onto a tile that has a blue flag.
|
|
|
Post by hunter on Apr 1, 2012 4:17:57 GMT -5
gp, I notice from your second last post that you were able to give someone a "Soul Stone". If I want to give somebody an item that I have seen before, is it just a case of copying the spelling from the game exactly? I suppose a list does not exist?
|
|
|
Post by vladikus on Apr 1, 2012 6:48:15 GMT -5
Yes, you just have to type the exact name of the item (same with adding new units) to give it to a unit. Currently, there is no list that I know of for units or items.
|
|
|
Post by gp1628 on Apr 1, 2012 7:58:33 GMT -5
Actually Edi and I both have lists. Edi is working on a CoE3 version of his wonderful database/spreadsheet like he did for Dom3 which will list everything (units, equipment, spells, sites, etc) While I tend to work in text lists. I have a raw list of the game itself that I work from. With some effort I could provide text lists but so far I apologize that I have been more motivated to play with the possibilities than provide for others. If no one else eventually provides something then I will probably get around to it. I'd like to see a nice list in the Wiki so we can build off of it by providing links for each item. Actually anyone with a linux (and some knowledgeable people with other OSs) have access to the same lists that I work with. strings ./coe3_x86 >strings_coe3.txt
grep Ring strings_coe3.txt will give all "Ring" (specifically the ones that are capitalized) -------- Ring of Invisibility Ring of Protection Coral Ring Ring of Infinite Gold Ring of Water Breathing Torleifur's Ring :Ring of the Dead :Spirit Ring
|
|
|
Post by gp1628 on Apr 1, 2012 10:43:28 GMT -5
OK I was spurred into it. Check the Scenario Template thread up above
|
|