| Blockland Forums > Modification Help |
| Player variables |
| << < (3/4) > >> |
| Chrono:
--- Quote from: YourBuddyBill on March 23, 2012, 11:51:22 AM ---You're a genius! Could that work for energy too? --- End quote --- Um, no not exactly. The difference between health and energy is a lot of the health stuff is built into scripted functions where a lot of the energy stuff is built into the engine. |
| YourBuddyBill:
--- Quote from: Chrono on March 23, 2012, 02:41:28 PM ---Um, no not exactly. The difference between health and energy is a lot of the health stuff is built into scripted functions where a lot of the energy stuff is built into the engine. --- End quote --- Ah, ok. Hmmmm... That would be interesting if we ever managed to pull that off. Hey Port, I think this code here would be pretty darn useful for RPGs, do you think we should release it sometime? I added a function for addMaxHealth (to simplify some stuff), and I'm trying to add events for it. Never mind that, it's probably already been privately released. |
| jes00:
--- Quote from: Chrono on March 23, 2012, 02:41:28 PM ---Um, no not exactly. The difference between health and energy is a lot of the health stuff is built into scripted functions where a lot of the energy stuff is built into the engine. --- End quote --- But Jorgur has found a way to modify a single player's max health and max energy. |
| YourBuddyBill:
--- Quote from: jes00 on March 23, 2012, 03:00:49 PM ---But Jorgur has found a way to modify a single player's max health and max energy. --- End quote --- That's true, he did! I should ask him about that... Anyways, screw the 'releasing' part, unless I happen to release the thingy I'm using it for. |
| Port:
--- Quote from: YourBuddyBill on March 23, 2012, 02:56:52 PM ---I added a function for addMaxHealth --- End quote --- The one I provided is a minimal version. The version I use normally allows for out-of-mini-game damage, shield power, invincibility and overheal. I could post that one too if you want it. --- Quote from: YourBuddyBill on March 23, 2012, 02:56:52 PM ---Hey Port, I think this code here would be pretty darn useful for RPGs, do you think we should release it sometime? and I'm trying to add events for it. --- End quote --- Well, this could definitely be done, however this does overwrite a few default functions. It does an almost exact imitation of the default behavior, however it also causes the unfortunate side effect that any add-on which modifies damage functions executed before this will break. |
| Navigation |
| Message Index |
| Next page |
| Previous page |