Local variables are reset when c2 starts going through the event sheet again. If you want it to stay throughout the entire game you need to set it to static.
Dasat spartyon you can't put an atual object inside of a dictionary/array, but you can put their UID in there and pick them using that when needed.
Develop games in your browser. Powerful, performant & highly capable.
Just get some badges. 500 rep is very easy to obtain.
That works perfectly fine. In the first one you changed orange to green, not brown. The first object you selected is the one that gets swapped out, and the second option is what it gets replaced with.
Try 'Pick By Comparison'. then pick all doors with PowerCellNumber the same as PowerCell.PowerCellNumber
TheNewGuy Stripped down and commented, enjoy <img src="smileys/smiley4.gif" border="0" align="middle">
TheNewGuy sure thing, give me maybe 10-30 minutes and I'll have it up
These both exist already, don't they? In the Events tab you can search the current event sheet, and if you press R or right click -> replace you can replace the event with another object of the same type.
Clamp will prevent the value from going below the lower bound (second parameter, 0) or above the upper bound (third parameter, arr_mapdata.Width - 1). I just do that to prevent it from trying to place any ores outside of the array.
Ore Veins Here's a small thingy I've been working on with world generation + ores. Right now there's a whole bunch of other stuff in there, if you need me to strip it apart I can do so. The ore generation takes place on the event sheet "World Gen" from events 3-19
You'll need to give more info than that. Post a capx or screenshot of events if its too large.
<img src="smileys/smiley32.gif" border="0" align="middle" />
sent you an email :)
— The OP was asking for rounding up. Yes round(x) would work, but if the decimal is below 5 it will round down. ceil(x) will always round up, and floor(x) will always round down.
Happens to me too sometimes. Very odd.