Guest Access
Go to page : 1, 2, 3
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
np, scripting is fun, one of these winters, (i have loads more free time then) i was thinking about a scripting tut, i feel like it can be taught in like 10 steps when explained in a way that makes you think of the syntax as a tool and not a foreign language. :p
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
ACTIVATED
profile
mchallin
profile
i forget winter has passed.. uk weather seems stuck in winter mode!
wish i could understand scripting better, ive played around with xas abs for so long now i guess i thought i'd be able to figure it out...a script tut would be awesome one day!
any chance you show me how to do the fix you posted me?
wish i could understand scripting better, ive played around with xas abs for so long now i guess i thought i'd be able to figure it out...a script tut would be awesome one day!
any chance you show me how to do the fix you posted me?
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
ok i re-read the first script again, i think this will work.
crtl+shot+f script data base search for XAS_SKILL::WEP_ID_TOOL
when you find it, add this in its place.
XAS_SKILL::WEP_ID_TOOL["the item.id or what ever"] in XAS you wanna check for item.action_id
i noticed that i do infact save the tool id in the item data, but never draw on it for xas. so by checking if the item has ".action_id" will determan wether its a random weapon or not and what data to load. Not tested but sounds solid. :p
[edit] Yea this wasnt "solid" lol :p
crtl+shot+f script data base search for XAS_SKILL::WEP_ID_TOOL
when you find it, add this in its place.
XAS_SKILL::WEP_ID_TOOL["the item.id or what ever"] in XAS you wanna check for item.action_id
- Code:
if item.is_a?(RPG::Weapon) and !item.action_id.nil?
XAS_SKILL::WEP_ID_TOOL["origional info"]
else
XAS_SKILL::WEP_ID_TOOL[item.action_id]
end
i noticed that i do infact save the tool id in the item data, but never draw on it for xas. so by checking if the item has ".action_id" will determan wether its a random weapon or not and what data to load. Not tested but sounds solid. :p
[edit] Yea this wasnt "solid" lol :p
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
ACTIVATED
profile
mchallin
profile
Thanks for the feedback dude. Im still struggling to get it to work though, not totally sure i've put that fix in good either!
think i'll leave it for now...i need wayyy more scripting knowledge!
think i'll leave it for now...i need wayyy more scripting knowledge!
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
Are you any good with events in RMXP? The commands that tell an event what to do are very much like how scripts work.
like what i typed above is simply a conditional branch.
like what i typed above is simply a conditional branch.
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
ACTIVATED
profile
mchallin
profile
I'm not too shabby with events, but its more a case of trial and error...the long way of learning with me lol! I've been using:
if item.is_a?(RPG::Weapon) and !XASITEM_ID.nil?
XAS_SKILL::WEAPON_ID_TOOL[wep_data.id] = tool if xas_xr
else
XAS_SKILL::WEAPON_ID_TOOL[XASITEM_ID] = tool if xas_xr
end
i keep getting undefined local variable for 'item'...
if item.is_a?(RPG::Weapon) and !XASITEM_ID.nil?
XAS_SKILL::WEAPON_ID_TOOL[wep_data.id] = tool if xas_xr
else
XAS_SKILL::WEAPON_ID_TOOL[XASITEM_ID] = tool if xas_xr
end
i keep getting undefined local variable for 'item'...
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
Where did you put it at? and you wont need "if xas_xr" because you already know the script is being used with xas so there is no need.
That conditional branch should be in the Game_Player class edit in XAS. use crtl+shift+f to use the class database search to find XAS_SKILL::WEAPON_ID_TOOL.
You'll get it, once your past the bumps things are much easier. I'd recommend that you check out some advanced event tutorials too.
Now reading error messages and interpreting their meaning helps a lot as well. The one you got that states it cant find a varriable or call method for "item". Meaning where the script call was located "item" was not defined yet.
That conditional branch should be in the Game_Player class edit in XAS. use crtl+shift+f to use the class database search to find XAS_SKILL::WEAPON_ID_TOOL.
You'll get it, once your past the bumps things are much easier. I'd recommend that you check out some advanced event tutorials too.
Now reading error messages and interpreting their meaning helps a lot as well. The one you got that states it cant find a varriable or call method for "item". Meaning where the script call was located "item" was not defined yet.
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
ACTIVATED
profile
mchallin
profile
I've got it in XAS battler 1, the 'Check Equipment ID' section...
ACTIVATED
Show Signature
ACTIVATED
EVENTALIST
EVENTALIST
EVENTALIST
profile
mr_wiggles
profile
I dont have XAS on my computer :/ havent got back to downloading it after i lost quite a bit of data. (Everything but my ABS and Outbreak beta) There where scripts that where in progress and such but alas time move on.
EVENTALIST
Show Signature
EVENTALIST
ACTIVATED
ACTIVATED
ACTIVATED
profile
mchallin
profile
ah damn..can i send it you or anything?
ooo ABS and Outbreak beta?
ooo ABS and Outbreak beta?
ACTIVATED
Show Signature
ACTIVATED
Go to page : 1, 2, 3