Rinkoou
Awful-Pun Master
- 54
- Posts
- 8
- Years
- the Internet
- Seen Jul 27, 2018
Hi! I suck at coding and I'm trying to make it where if you pressed the V button, the game would call common event 5. Here is my code:
I tried pbCommonEvent(5) and pbCommonEvent(PNEUMA), Pneuma being the common event name in Settings. Also, I did define V properly. If anybody could help, I'd appreciate it!
Code:
def pbAllowPneuma
$CanToggle = true
end
def pbDisallowPneuma
$CanToggle = false
end
def pbPneuma
if $CanToggle && Input.trigger?(Input::V)
pbCommonEvent(PNEUMA)
end
end
I tried pbCommonEvent(5) and pbCommonEvent(PNEUMA), Pneuma being the common event name in Settings. Also, I did define V properly. If anybody could help, I'd appreciate it!