LOGIN
SEARCH
PROFILE
keys: ↑ ↓
LOGOUT
INDEX
MEMBERS
keys: ↑ ↓
HOME
PORTAL
PLAY ALONG
PLAY with WORDS
PLAY with GRAPHICS
PLAY with SOUNDS
PLAY with CODES
PLAY with PROJECTS
keys: ← →
Guest Access
Register:
Members:



View previous topic View next topic Go down Message [Page 1 of 1]

||||||||||
||||||||||
#1 [solved]Need help with script in Xas
Loading

supercow

||||||||||
||||||||||
profile
In Xas v3.8.2
XAS-Command
theres this part of script that i dont understand what its for, i think it might be for next update of XAS and not completed yet
Spoiler:
#--------------------------------------------------------------------------
# XAS - Jump Button Update
#--------------------------------------------------------------------------
def jump_button_update
if (Input.trigger?(XAS_COMMAND::JUMP_ACTION) or
($cybersam_rgss != nil and Kboard.keyboard($R_Key_E))) and
$game_switches[XAS_COMMANDCOMMAND_DISABLE_SWITCH] == false and
...so on....
||||||||||
Show Signature
||||||||||
Administrator
Administrator
#2 Re: [solved]Need help with script in Xas
Loading

G@MeF@Ce

Administrator
Administrator
Administrator
profile
yeah, looks as if MOG is using cybersam's input script for testing or is planning to use it for XAS4. I do know he's been competitive in a showdown with Blizzabs which uses so many keys. I personally like fewer keys/buttons with crazy key combinations, but there are some who prefer the

WASD + HJKL interface

W=up A=LEFT S=DOWN D=RIGHT
H=confirm J=ATTACK K=DASH L=JUMP

or something like that.

I use gamepad controllers (like SNES style)
to test/play my RMXP projects on my arcade projects!
for me playing with a keyboard and mouse feels too much like work
(unless it's Starcraft2 LOL)
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr http://www.youtube.com/user/MrGameface101?feature=watch
||||||||||
||||||||||
#3 Re: [solved]Need help with script in Xas
Loading

supercow

||||||||||
||||||||||
profile
hahaha yeah i use gamepad too Razz
WASD HJKL ???? Shocked how do you press that?

can i ask again? what does this script do? Cool
its in xas-command
Spoiler:

if $game_system.map_interpreter.running? or
$game_temp.message_window_showing or
return false
end

$game_system.map_interpreter.running? = no idea what that is Crying or Very sad
$game_temp.message_window_showing = does it mean when window opened? like choice window?
return false = does it mean its wrong and then try again from start? whats the diff with just [return] ?
thx Razz
||||||||||
Show Signature
||||||||||
Administrator
Administrator
#4 Re: [solved]Need help with script in Xas
Loading

G@MeF@Ce

Administrator
Administrator
Administrator
profile
well I have a long ways to go when it comes to script but from what I've learned:

"if" is like the conditional branch in an event, so the condition is if 'this' is going to happen "or" 'that' is going to happen 'return' (or send it back) and make it false (not on)

when you see a "$" that means this variable is global.
(meaning you can call it from any other script)

so basically I think it's saying if the game system map is on or a message window is on send the method or class above it back and make it not on.


alien

edit: this is assuming you are familiar with class, methods, and variables.
don't worry I'm still learning, I continue to bug mr_wiggles and albertfish and hackel for pointers. I'm certain they could of explained it a whole lot better.
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr http://www.youtube.com/user/MrGameface101?feature=watch
||||||||||
||||||||||
#5 Re: [solved]Need help with script in Xas
Loading

supercow

||||||||||
||||||||||
profile
thats quite helpfull Smile
i think im on to something, i used:
if $game_temp.message_window_showing
return false
end
it prevent the force action, but only for a moment from each jump , is there a command that can skip a def ? gonna look again Cool

btw i tweak and change your script change face HUD for the JUMP hud icon and make it looks turn on and off, and when get close it lower the opacity , hope its okay Razz
||||||||||
Show Signature
||||||||||
||||||||||
||||||||||
#6 Re: [solved]Need help with script in Xas
Loading

supercow

||||||||||
||||||||||
profile
i got it yay cheers
thx gameface , kindda suprised too when i fixed it Razz
hope theres no new bugs Rolling Eyes
||||||||||
Show Signature
||||||||||
EVENTALIST
EVENTALIST
#7 Re: [solved]Need help with script in Xas
Loading

mr_wiggles

EVENTALIST
 EVENTALIST
EVENTALIST
profile
Code:

$game_system.map_interpreter.running?
This is just seeing if there is an event that is running its command list on the map, for the player to not be able to input any commands.
Code:

$game_temp.message_window_showing
This is just seeing if there is a message window on the map, like if the player receives a message they cant move around.
EVENTALIST
Show Signature
EVENTALIST
||||||||||
||||||||||
#8 Re: [solved]Need help with script in Xas
Loading

supercow

||||||||||
||||||||||
profile
system map = event on map? kk thx Razz
i used it too ,just to prevent jumping on auto run Smile
can you help me to give any other explanation as to what kind of event? Razz
thx wiggles Razz
oh and while at it Laughing , can you give me some light as to why xas made 2 kinds of force action? :
force_action
force_action_now
||||||||||
Show Signature
||||||||||
Administrator
Administrator
#9 Re: [solved]Need help with script in Xas
Loading

G@MeF@Ce

Administrator
Administrator
Administrator
profile
force_action <= will activate the tool in proper sequence.

force_action_now <= will make the character use a tool
(regardless of what is happening in the game)

you can make some crazy @$$ combos with this script command
Code:
$game_temp.force_action_now_id = X
Administrator
https://www.dropbox.com/sh/i47rig99qhrvn8s/4m5HvsM2fD http://g4m3f4c3.deviantart.com https://www.facebook.com//pages/Gameface101/332331300127008 https://twitter.com//mr_gameface101 https://soundcloud.com/schurr http://www.youtube.com/user/MrGameface101?feature=watch

Sponsored content

profile

View previous topic View next topic Back to top Message [Page 1 of 1]

 

Chatbox system disabled
Personal messaging disabled