[RESOLVED]script commands

Started by Shadonking, February 19, 2009, 06:32:40 am

Previous topic - Next topic

Shadonking

February 19, 2009, 06:32:40 am Last Edit: February 21, 2009, 04:34:43 am by Shadonking
I need the script command to turn on a status effect. done

edit

the script command that is simulare to this

for i in 1...$data_items.size

but instead of all items from id 1 and above to stand for "i" i want items from 1 - 22 to be "i"






Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

shdwlink1993

Status Effect? Like a status ailment?

Try this:
$game_actors[$game_party.actors[actor_id]].add_state(state_id)


That should do it.
Stuff I've made:




"Never think you're perfect or else you'll stop improving yourself."

"Some people say the glass is half full... some half empty... I just wanna know who's been drinking my beer."

Shadonking

i got an error,

Game_Actor line 20 no methonerror occurred





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Blizzard

Lol!

$game_actors[actor_id].add_state(state_id)

$game_party.actors[position].add_state(state_id)

Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Shadonking

ok just tried your code blizz and i got an error.

undefined method 'state_add'





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Blizzard

Quote from: Blizzard on February 20, 2009, 04:17:08 am
...add_state...



Let's see if you can figure it out on your own. :P
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Shadonking

lol, thats what i put i just put it wrong in the post.

$game_party.actors[1].add_state(17)

see thats what iv put





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

G_G

How many people are in your party? When it regers to
$game_party
the placement is like this
First Person = 0
Second Person = 1
Third Person = 2
Fourth Person = 3

Shadonking

February 20, 2009, 11:40:57 am #8 Last Edit: February 20, 2009, 12:04:44 pm by Shadonking
if thats the case, then i now what iv done wrong. i'll tell you if i was in a sec

edit

yep i was wrong, i put 1 where 0 should be.

thanks blizz, game_guy and shdw.

edit

i need a script command that is simulare to this

for i in 1...$data_items.size

but instead of all items from id 1 and above to stand for "i" i want items from 1 - 22 to be "i"





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

G_G


Aqua

If you want 1-22 INCLUDING 22, then you use
for i in 1..22


There's a difference between 1..22 & 1...22

Shadonking

thanks aqua it worked

what would 1...22 do. just wondering





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

G_G

I didnt mean to press the . three times it was an accident

shdwlink1993

for i in 1..22 means it does the thing starting with 1 and INCLUDING 22. if you had 1...22, it excludes the last term, so it ends on 21.
Stuff I've made:




"Never think you're perfect or else you'll stop improving yourself."

"Some people say the glass is half full... some half empty... I just wanna know who's been drinking my beer."

Shadonking

i see thanks. yay i know a little pit more about scripting (i know its not much put its a start  :haha: )





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Blizzard

Lol, sorry, I thought you knew about 0 being the first position. xD It's a bit hard to keep track of who knows how much scripting here at the forums.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Shadonking

its ok, i would have figured it out it some point  :haha:.






Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0