PunkPhantom
"midna's a cat" -vinny, vinesauce
- 78
- Posts
- 11
- Years
- Age 30
- Seen Nov 20, 2016
I wanted to have Deerling and Sawsbuck's forms be based on location in my game, but I wasn't really sure how to do it. I tried to use Shellos's form scripting as a base, but since I don't really know how to script in Ruby, I couldn't figure how to get the syntax right for 4 different forms.
This was my start
and it obviously doesn't work.
I don't think it would be something too complicated though.
This was my start
Code:
MultipleForms.register(:DEERLING,{
"getFormOnCreation"=>proc{|pokemon|
maps=[2,5,39,41,44,69] # Map IDs for second form
if $game_map && maps.include?($game_map.map_id)
next 3
else
maps=[86,43] # Map IDs for autumn form
if $game_map && maps.include?($game_map.map_id)
next 2
else
next 1
else
next 0
end
}
})
MultipleForms.copy(:DEERLING,:SAWSBUCK)
I don't think it would be something too complicated though.