How do I init custom variables for link?
Posted: Sun Jun 25, 2017 3:06 pm
hello I am currently wanting to make a modification of SMBX link to make him more like his Z2 counterpart but I'm not sure how to start.
first of all I need to know how to exactly set this script up. do I create a character api or just modify him globally?
I also need to know how to run code when the character switches to link and not at the start of the script.
this is my current code
first of all I need to know how to exactly set this script up. do I create a character api or just modify him globally?
I also need to know how to run code when the character switches to link and not at the start of the script.
this is my current code
Code: Select all
function onStart()
if (player == CHARACTER_LINK)
Defines.jumpheight = 6
Defines.jumpheight_bounce = 2
Defines.player_runspeed = 5
Defines.player_link_fairyVineEnabled = false
player:mem(0x14, FIELD_WORD, 0.1)
end
end